CVE-2018-18557

HIGH

LibTIFF 3.9.3-4.0.9 - Out-of-bounds Write in JBIG Decoder

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2018-18557. PoCs published by Google Security Research.

AI-analyzed exploit summary This exploit demonstrates a heap-based buffer overflow in libtiff (up to 4.0.9) due to the JBIGDecode function ignoring buffer size constraints. The PoC generates a malformed TIFF file that triggers the vulnerability, allowing arbitrary data to be written beyond allocated buffer boundaries.

Description

LibTIFF 3.9.3, 3.9.4, 3.9.5, 3.9.6, 3.9.7, 4.0.0alpha4, 4.0.0alpha5, 4.0.0alpha6, 4.0.0beta7, 4.0.0, 4.0.1, 4.0.2, 4.0.3, 4.0.4, 4.0.4beta, 4.0.5, 4.0.6, 4.0.7, 4.0.8 and 4.0.9 (with JBIG enabled) decodes arbitrarily-sized JBIG into a buffer, ignoring the buffer size, which leads to a tif_jbig.c JBIGDecode out-of-bounds write.

Exploits (1)

exploitdb WORKING POC VERIFIED
by Google Security Research · cdoslinux
https://www.exploit-db.com/exploits/45694

This exploit demonstrates a heap-based buffer overflow in libtiff (up to 4.0.9) due to the JBIGDecode function ignoring buffer size constraints. The PoC generates a malformed TIFF file that triggers the vulnerability, allowing arbitrary data to be written beyond allocated buffer boundaries.

Classification
Working Poc 95%
Attack Type
Dos
Complexity
Moderate
Reliability
Reliable
Target: libtiff up to and including 4.0.9
No auth needed
Prerequisites: Ability to deliver a malformed TIFF file to the target system
devstral-2 · analyzed Feb 16, 2026 Full analysis →

References (10)

Core 10
Core References
Third Party Advisory vendor-advisory x_refsource_ubuntu
https://usn.ubuntu.com/3864-1/
Third Party Advisory vendor-advisory x_refsource_debian
https://www.debian.org/security/2018/dsa-4349
Exploit, Third Party Advisory, VDB Entry exploit x_refsource_exploit-db
https://www.exploit-db.com/exploits/45694/
Third Party Advisory x_refsource_misc
https://gitlab.com/libtiff/libtiff/merge_requests/38
Mailing List, Third Party Advisory mailing-list x_refsource_mlist
https://lists.debian.org/debian-lts-announce/2018/10/msg00019.html
Vendor Advisory vendor-advisory x_refsource_ubuntu
https://usn.ubuntu.com/3906-2/
Third Party Advisory vendor-advisory x_refsource_gentoo
https://security.gentoo.org/glsa/201904-15
Vendor Advisory vendor-advisory x_refsource_redhat
https://access.redhat.com/errata/RHSA-2019:2053

Scores

CVSS v3 8.8
EPSS 0.2357
EPSS Percentile 96.1%
Attack Vector NETWORK
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Details

CWE
CWE-787
Status published
Products (7)
canonical/ubuntu_linux 14.04
canonical/ubuntu_linux 16.04
canonical/ubuntu_linux 18.04
canonical/ubuntu_linux 18.10
debian/debian_linux 8.0
debian/debian_linux 9.0
libtiff/libtiff 4.0.9
Published Oct 22, 2018
Tracked Since Feb 18, 2026