Heap-based buffer overflow in CUPS - CVE-2011-2896

 

Heap-based buffer overflow in CUPS - CVE-2011-2896

Published: August 19, 2011 / Updated: July 28, 2020


Vulnerability identifier: #VU32839
CSH Severity: Medium
CVSS v4: 6.3 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N]
CVE-ID: CVE-2011-2896
CWE-ID: CWE-122
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to a boundary error in The LZW decompressor in the LWZReadByte function in giftoppm.c in the David Koblas GIF decoder in PBMPLUS, as used in the gif_read_lzw function in filter/image-gif.c in CUPS before 1.4.7, the LZWReadByte function in plug-ins/common/file-gif-load.c in GIMP 2.6.11 and earlier, the LZWReadByte function in img/gifread.c in XPCE in SWI-Prolog 5.10.4 and earlier, and other products, does not properly handle code words that are absent from the decompression table when encountered, which. A remote attacker can use a crafted compressed stream to trigger heap-based buffer overflow and execute arbitrary code on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.


Affected software

CUPS
cups (Alpine package)
gimp (Alpine package)

How to mitigate CVE-2011-2896

Update to version 1.4.7.

CUPS - update to 1.4.7
cups (Alpine package) - update to 1.4.8-r0
gimp (Alpine package) - addressed in versions 2.6.11-r1, 2.6.11-r2

External References

Related Security Bulletins