CVE-2011-2895Freetype
Critical 9.3 No auth needed
Follow: this CVE · Freetype · Freetype We alert you by email or Slack (account required).
- Priority
- 72
- CVSS 2.0
- 9.3
- EPSS
- 8.4% probability of exploitation in 30 days · percentile 96
- Auth required
- No
- Published
- Aug 19, 2011
- Updated
- Jun 16, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-119
- Vector
AV:N/AC:M/Au:N/C:C/I:C/A:C
What happens
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.
What to do
- Apply the vendor's security update for Freetype.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| freetype | freetype | 2.1.9 |
| x | libxfont | ≤ 1.4.3 |
| x | libxfont | 1.2.0 |
| x | libxfont | 1.2.1 |
| x | libxfont | 1.2.2 |
| x | libxfont | 1.2.3 |
| x | libxfont | 1.2.4 |
| x | libxfont | 1.2.5 |
| x | libxfont | 1.2.6 |
| x | libxfont | 1.2.7 |
| x | libxfont | 1.2.8 |
| x | libxfont | 1.2.9 |
| x | libxfont | 1.3.0 |
| x | libxfont | 1.3.1 |
| x | libxfont | 1.3.2 |
| x | libxfont | 1.3.3 |
| x | libxfont | 1.3.4 |
| x | libxfont | 1.4.0 |
| x | libxfont | 1.4.1 |
| x | libxfont | 1.4.2 |
| freebsd | freebsd | all |
| netbsd | netbsd | all |
| openbsd | openbsd | ≤ 3.7 |
| openbsd | openbsd | 2.0 |
| openbsd | openbsd | 2.1 |
| openbsd | openbsd | 2.2 |
| openbsd | openbsd | 2.3 |
| openbsd | openbsd | 2.4 |
| openbsd | openbsd | 2.5 |
| openbsd | openbsd | 2.6 |
| openbsd | openbsd | 2.7 |
| openbsd | openbsd | 2.8 |
| openbsd | openbsd | 2.9 |
| openbsd | openbsd | 3.0 |
| openbsd | openbsd | 3.1 |
| openbsd | openbsd | 3.2 |
| openbsd | openbsd | 3.3 |
| openbsd | openbsd | 3.4 |
| openbsd | openbsd | 3.5 |
| openbsd | openbsd | 3.6 |
Official sources
References
Links published by the sources. Open them with care.
- cgit.freedesktop.org Patch
- ftp.netbsd.org
- lists.apple.com
- lists.apple.com
- lists.apple.com
- lists.apple.com
- lists.apple.com
- lists.apple.com
- lists.freedesktop.org Patch
- lists.freedesktop.org Patch
- lists.opensuse.org
- lists.opensuse.org
- secunia.com Vendor Advisory
- secunia.com Vendor Advisory
- secunia.com Vendor Advisory
- secunia.com
- secunia.com
- secunia.com
- securitytracker.com
- support.apple.com
- support.apple.com
- www.debian.org
- www.mandriva.com
- www.openbsd.org
- www.openwall.com
- www.redhat.com Vendor Advisory
- www.redhat.com Vendor Advisory
- www.redhat.com Vendor Advisory
- www.redhat.com
- www.securityfocus.com
- www.ubuntu.com
- bugzilla.redhat.com Patch
- bugzilla.redhat.com
- exchange.xforce.ibmcloud.com
- support.apple.com
- support.apple.com
- support.apple.com
- support.apple.com