Description
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 allows remote attackers to trigger an infinite loop or a heap-based buffer overflow, and possibly execute arbitrary code, via a crafted compressed stream, a related issue to CVE-2006-1168 and CVE-2011-2895.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | cups | 1.5.0-8 | — |
| Debian 14 | gimp | 2.6.11-5 | — |
| Debian 13 | cups | 1.5.0-8 | — |
| Debian 13 | gimp | 2.6.11-5 | — |
| Debian 12 | cups | 1.5.0-8 | — |
| Debian 12 | gimp | 2.6.11-5 | — |
| Debian 6.0 | cups | 1.4.4-7+squeeze1 | DSA-2354-1 |
| Debian 6.0 | gimp | 2.6.10-1+squeeze3 | DSA-2426-1 |
| Debian 5.0 | cups | 1.3.8-1+lenny10 | DSA-2354-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | swi-prolog | No fix yet | — |
| Ubuntu 26.04 LTS | swi-prolog | No fix yet | — |
| Ubuntu 25.10 | swi-prolog | No fix yet | — |
| Ubuntu 24.04 LTS | swi-prolog | No fix yet | — |
| Ubuntu 22.04 LTS | swi-prolog | No fix yet | — |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | swi-prolog | No fix yet | — |
| Ubuntu 18.04 LTS | swi-prolog | No fix yet | — |
| Ubuntu 16.04 LTS | swi-prolog | No fix yet | — |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 6 | cups +4 | 1:1.4.2-44.el6 | RHSA-2011:1635 |
| RHEL 6 | gimp +4 | 2:2.6.9-4.el6_3.3 | RHSA-2012:1180 |
| RHEL 5 | cups +3 | 1:1.3.7-30.el5 | RHSA-2012:0302 |
| RHEL 5 | gimp +2 | 2:2.2.13-2.0.7.el5_8.5 | RHSA-2012:1181 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | gimp | 2.8.18-1.4 | openSUSE-SU-2024:10294-1 |
Advisories 7
- RHSA-2012:1180 Red Hat Security Advisory: gimp security update Red Hat Security Advisories (RHSA) · Jun 26, 2026
- RHSA-2012:0302 Red Hat Security Advisory: cups security and bug fix update Red Hat Security Advisories (RHSA) · Jun 26, 2026
- RHSA-2011:1635 Red Hat Security Advisory: cups security and bug fix update Red Hat Security Advisories (RHSA) · Jun 26, 2026
- RHSA-2012:1181 Red Hat Security Advisory: gimp security update Red Hat Security Advisories (RHSA) · Jun 26, 2026
- DSA-2426-1 gimp - several Debian Security (DSA / DLA) · Mar 9, 2026
- DSA-2354-1 cups - several Debian Security (DSA / DLA) · Mar 9, 2026
- openSUSE-SU-2024:10294-1 gimp-2.8.18-1.4 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
References
- DSA-2426 vendor-advisory
- FEDORA-2011-11318 vendor-advisory
- GLSA-201209-23 vendor-advisory
- http://cups.org/str.php?L3867
- [oss-security] 20110810 LZW decompression issues mailing-list
- USN-1207-1 vendor-advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=727800
- RHSA-2012:1180 vendor-advisory
- 48308 third-party-advisory
- DSA-2354 vendor-advisory
- 45948 third-party-advisory
- RHSA-2012:1181 vendor-advisory
- 46024 third-party-advisory
- 45900 third-party-advisory
- RHSA-2011:1635 vendor-advisory
- FEDORA-2011-11221 vendor-advisory
- FEDORA-2011-11173 vendor-advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=730338
- 49148 vdb-entry
- MDVSA-2011:146 vendor-advisory
- http://www.swi-prolog.org/bugzilla/show_bug.cgi?id=7#c4
- FEDORA-2011-11305 vendor-advisory
- USN-1214-1 vendor-advisory
- 50737 third-party-advisory
- http://git.gnome.org/browse/gimp/commit/?id=376ad788c1a1c31d40f18494889c383f6909ebfc
- MDVSA-2011:167 vendor-advisory
- FEDORA-2011-11197 vendor-advisory
- FEDORA-2011-11229 vendor-advisory
- 48236 third-party-advisory
- 1025929 vdb-entry
- 45621 third-party-advisory
- 45945 third-party-advisory