CVE-2011-2895
The LZW decompressor in (1) the BufCompressedFill function in fontfile/decompress.c in X.Org libXfont before 1.4.4 and (2)…
Check your servers for CVE-2011-2895
The Vulnpocalypse agent sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2011-2895 affects a package, with the command that installs the fix. The free plan covers one server and does not need a credit card.
Description
The LZW decompressor in (1) the BufCompressedFill function in fontfile/decompress.c in X.Org libXfont before 1.4.4 and (2) compress/compress.c in 4.3BSD, as used in zopen.c in OpenBSD before 3.8, FreeBSD, NetBSD 4.0.x and 5.0.x before 5.0.3 and 5.1.x before 5.1.1, FreeType 2.1.9, and other products, does not properly handle code words that are absent from the decompression table when encountered, which allows context-dependent 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-2896.
Exploitation
EPSS 8.35%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 95.7% of all scored CVEs. Scores of 27 Nov 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
|
n/a
n/a
|
affected all versions
|
Is my server affected?
Find the installed version of the package (replace PACKAGE with its name) and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i PACKAGE
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2011-2895 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2011-2895RHEL, Rocky, Alma, Fedora
rpm -q PACKAGE
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2011-2895Alpine
apk list --installed | grep -i PACKAGEWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2011-2895
trivy image --scanners vuln IMAGE | grep CVE-2011-2895
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server or read how to install the agent.
References
Advisories
- https://support.apple.com/HT205635 support.apple.com
- RHSA-2011:1154 redhat.com · vendor advisory
- USN-1191-1 ubuntu.com · vendor advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=725760 bugzilla.redhat.com
- 45544 secunia.com · third party advisory
- https://support.apple.com/HT205637 support.apple.com
- http://support.apple.com/kb/HT5130 support.apple.com
- APPLE-SA-2015-12-08-4 lists.apple.com · vendor advisory
- MDVSA-2011:153 mandriva.com · vendor advisory
- 45599 secunia.com · third party advisory
- RHSA-2011:1155 redhat.com · vendor advisory
- openSUSE-SU-2011:1299 lists.opensuse.org · vendor advisory
20 more
- APPLE-SA-2015-12-08-3 lists.apple.com · vendor advisory
- SUSE-SU-2011:1035 lists.opensuse.org · vendor advisory
- APPLE-SA-2012-02-01-1 lists.apple.com · vendor advisory
- 46127 secunia.com · third party advisory
- 45986 secunia.com · third party advisory
- RHSA-2011:1161 redhat.com · vendor advisory
- RHSA-2011:1834 redhat.com · vendor advisory
- http://www.openbsd.org/cgi-bin/cvsweb/src/usr.bin/compress/zopen.c#rev1.17 openbsd.org
- APPLE-SA-2015-12-08-1 lists.apple.com · vendor advisory
- 45568 secunia.com · third party advisory
- https://support.apple.com/HT205641 support.apple.com
- NetBSD-SA2011-007 ftp.netbsd.org · vendor advisory
- https://support.apple.com/HT205640 support.apple.com
- http://cgit.freedesktop.org/xorg/lib/libXfont/commit/?id=d11ee5886e9d9ec610051a206b135a4cdc1e09a0 cgit.freedesktop.org
- 48951 secunia.com · third party advisory
- APPLE-SA-2015-12-08-2 lists.apple.com · vendor advisory
- http://support.apple.com/kb/HT5281 support.apple.com
- APPLE-SA-2012-05-09-1 lists.apple.com · vendor advisory
- DSA-2293 debian.org · vendor advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=727624 bugzilla.redhat.com
Other references
- [oss-security] 20110810 LZW decompression issues openwall.com · mailing list
- 49124 securityfocus.com · vdb entry
- 1025920 securitytracker.com · vdb entry
- [xorg-announce] 20110810 X.Org security advisory: libXfont LZW decompression heap corruption lists.freedesktop.org · mailing list
- xorg-lzw-bo(69141) exchange.xforce.ibmcloud.com · vdb entry
- [xorg-announce] 20110810 [ANNOUNCE] libXfont 1.4.4 lists.freedesktop.org · mailing list
Source: the record CVE-2011-2895 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse