Skip to main content
Network Thinking Solutions Logo

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) 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.

All CVEs
CVE-2011-2895Published 8/19/2011

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.

Vendor advisory
CVSS9.3Critical

Overview

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.

Published
8/19/2011
Last modified
6/16/2026
CVE assigner
Not available
NVD analysis
Not available

Exploitation

No CISA KEV flag in the saved record

An absent KEV flag does not establish that exploitation has never occurred. Verify current intelligence before prioritizing work.

EPSS predictions and CISA SSVC assessments are not imported here. Review additional intelligence on Cloudflare

Affected products

Affected-version rules published in the advisory. Conditions and uncertain comparisons require verification.

Vendor / productAffected versionsPlatform / conditionsEvidence
freetype
freetype
2.1.9

Verify advisory

Source
libxfont
x
≤ 1.4.3

Verify advisory

Source
libxfont
x
1.2.0

Verify advisory

Source
libxfont
x
1.2.1

Verify advisory

Source
libxfont
x
1.2.2

Verify advisory

Source
libxfont
x
1.2.3

Verify advisory

Source
libxfont
x
1.2.4

Verify advisory

Source
libxfont
x
1.2.5

Verify advisory

Source
libxfont
x
1.2.6

Verify advisory

Source
libxfont
x
1.2.7

Verify advisory

Source
libxfont
x
1.2.8

Verify advisory

Source
libxfont
x
1.2.9

Verify advisory

Source
libxfont
x
1.3.0

Verify advisory

Source
libxfont
x
1.3.1

Verify advisory

Source
libxfont
x
1.3.2

Verify advisory

Source
libxfont
x
1.3.3

Verify advisory

Source
libxfont
x
1.3.4

Verify advisory

Source
libxfont
x
1.4.0

Verify advisory

Source
libxfont
x
1.4.1

Verify advisory

Source
libxfont
x
1.4.2

Verify advisory

Source
freebsd
freebsd
Range not specified — verify advisory

Verify advisory

Source
netbsd
netbsd
Range not specified — verify advisory

Verify advisory

Source
openbsd
openbsd
≤ 3.7

Verify advisory

Source
openbsd
openbsd
2.0

Verify advisory

Source
openbsd
openbsd
2.1

Verify advisory

Source
openbsd
openbsd
2.2

Verify advisory

Source
openbsd
openbsd
2.3

Verify advisory

Source
openbsd
openbsd
2.4

Verify advisory

Source
openbsd
openbsd
2.5

Verify advisory

Source
openbsd
openbsd
2.6

Verify advisory

Source
openbsd
openbsd
2.7

Verify advisory

Source
openbsd
openbsd
2.8

Verify advisory

Source
openbsd
openbsd
2.9

Verify advisory

Source
openbsd
openbsd
3.0

Verify advisory

Source
openbsd
openbsd
3.1

Verify advisory

Source
openbsd
openbsd
3.2

Verify advisory

Source
openbsd
openbsd
3.3

Verify advisory

Source
openbsd
openbsd
3.4

Verify advisory

Source
openbsd
openbsd
3.5

Verify advisory

Source
openbsd
openbsd
3.6

Verify advisory

Source
n/a
n/a
n/a

Verify advisory

Source

Recommended actions

Verify the product, installed version, platform, and advisory prerequisites on each system. Apply the vendor's applicable fixed release or mitigation. An affected-range boundary alone is not a universal update recommendation.

Severity

CVSS describes technical impact. It is separate from exploitation evidence.

Published headline score: 9.3. Score version, vector, and attribution are not available in this record. Additional score details appear when the source record is next refreshed.

Sources & references

Sources: Official CVE List, NVD and cve.now (summaries CC BY 4.0). Uses NVD data; not endorsed by NVD.