Djvulibre · Djvulibre · CVE-2019-15145
**Name of the Vulnerable Software and Affected Versions**
DjVuLibre version 3.5.27
**Description**
The issue is related to a missing zero-bytes check, which can be exploited by crafting a corrupted JB2 image file. This can cause a denial-of-service attack, leading to an application crash via an out-of-bounds read in the `get direct context` function of `JB2Dict::JB2Codec` in `libdjvu/JB2Image.h`. The vulnerability can be exploited by a remote attacker to cause a denial-of-service.
**Recommendations**
For DjVuLibre version 3.5.27, consider updating to a newer version that includes a fix for the missing zero-bytes check in `libdjvu/GBitmap.h`. As a temporary workaround, avoid using the `get direct context` function of `JB2Dict::JB2Codec` until a patch is available. Restrict access to corrupted JB2 image files to minimize the risk of exploitation.