Description
The FoFiType1::parse function in fofi/FoFiType1.cc in Xpdf 3.0.0, gpdf 2.8.2, kpdf in kdegraphics 3.3.1, and possibly other libraries and versions, does not check the return value of the getNextLine function, which allows context-dependent attackers to execute arbitrary code via a PDF file with a crafted Type 1 font that can produce a negative value, leading to a signed-to-unsigned integer conversion error and a buffer overflow.
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 | poppler | 0.5.1-1 | — |
| Debian 14 | xpdf | 3.01-1 | — |
| Debian 13 | poppler | 0.5.1-1 | — |
| Debian 13 | xpdf | 3.01-1 | — |
| Debian 12 | poppler | 0.5.1-1 | — |
| Debian 12 | xpdf | 3.01-1 | — |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 4 | gpdf | 2.8.2-7.7.2.el4_8.6 | RHSA-2009:1681 |
| RHEL 4 | kdegraphics +1 | 7:3.3.1-17.el4_8.1 | RHSA-2009:1682 |
| RHEL 4 | xpdf | 1:3.00-23.el4_8.1 | RHSA-2009:1680 |
Advisories 3
- RHSA-2009:1682 Red Hat Security Advisory: kdegraphics security update Red Hat Security Advisories (RHSA) · Jun 26, 2026
- RHSA-2009:1680 Red Hat Security Advisory: xpdf security update Red Hat Security Advisories (RHSA) · Jun 26, 2026
- RHSA-2009:1681 Red Hat Security Advisory: gpdf security update Red Hat Security Advisories (RHSA) · Jun 26, 2026
References
- 1023356 vdb-entry
- RHSA-2009:1680 vendor-advisory
- 37350 vdb-entry
- http://cgit.freedesktop.org/poppler/poppler/tree/fofi/FoFiType1.cc?id=4b4fc5c017bf147c9069bbce32fc14467bd2a81a
- 37787 third-party-advisory
- 37793 third-party-advisory
- xpdf-fofitype1parse-bo(54831) vdb-entry
- 37781 third-party-advisory
- RHSA-2009:1682 vendor-advisory
- oval:org.mitre.oval:def:10996 vdb-entry signature
- SUSE-SR:2010:003 vendor-advisory
- http://cgit.freedesktop.org/poppler/poppler/diff/fofi/FoFiType1.cc?id=4b4fc5c0
- RHSA-2009:1681 vendor-advisory
- 37641 third-party-advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=541614
- ADV-2009-3555 vdb-entry