CVE-2009-4035

Severity CVSS v4.0:
Pending analysis
Type:
CWE-94 Code Injection
Publication date:
21/12/2009
Last modified:
09/04/2025

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.

Vulnerable products and versions

CPE From Up to
cpe:2.3:a:gnome:gpdf:2.8.2:*:*:*:*:*:*:*
cpe:2.3:a:kde:kdegraphics:3.3.1:*:*:*:*:*:*:*
cpe:2.3:a:kde:kpdf:3.3.1:*:*:*:*:*:*:*
cpe:2.3:a:xpdf:xpdf:3.0.0:*:*:*:*:*:*:*


References to Advisories, Solutions, and Tools