Libtiff · Libtiff · CVE-2018-18557
**Name of the Vulnerable Software and Affected Versions**
LibTIFF versions 3.9.3 through 4.0.9
**Description**
The issue is related to the JBIGDecode function in the LibTIFF library, which decodes arbitrarily-sized JBIG into a buffer, ignoring the buffer size. This leads to an out-of-bounds write in the tif jbig.c JBIGDecode function. The exploitation of this issue may allow an attacker to cause a denial of service or execute arbitrary code using specially crafted image files.
**Recommendations**
For LibTIFF versions 3.9.3 through 4.0.9, consider disabling the JBIG functionality until a patch is available. As a temporary workaround, restrict the use of the JBIGDecode function in the tif jbig.c file to minimize the risk of exploitation. At the moment, there is no information about a newer version that contains a fix for this vulnerability.