CVE-2009-4035: Gnome Gpdf
High severity, CVSS 9.3. EPSS: 3.8% chance of exploitation in the next 30 days.
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.
Affected products
- Gnome Gpdf: version 2.8.2 only
- Kde Kdegraphics: version 3.3.1 only
- Kde Kpdf: version 3.3.1 only
- Xpdf Xpdf: version 3.0.0 only
Published 2009-12-21. Last modified 2026-06-16.