Free and open · new CVEs checked every 20 minutesStatusRSSOpen dataContact

CVE-2009-4035: The FoFiType1::parse function in fofi/FoFiType1.cc in Xpdf 3.0.0, gpdf 2.8.2, kpdf in kdegraphics 3.3.1, and p

55
This month
HIGH 9.3DOWNGRADEDOWNGRADEDOWNGRADE

CVE-2009-4035 is a high-severity flaw (CVSS 9.3) affecting gpdf, kdegraphics, kpdf. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.

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.

Why this priority

  • Critical severity

No fix is published yet: follow the downgrade or mitigation steps.

Risk facts

CVSS score9.3 (High)
EPSS exploit chance3.8% (top 10%)
CISA exploited listNo
WeaknessCWE-94
Published2009-12-21
Last modified2026-06-16
Publisher (CNA): Red Hat, Inc. · Vendor: gnome · kde · xpdf

Share: LinkedIn · X · Reddit

Last updated 2026-06-16 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score

Am I affected?

Timeline

gnome gpdf DOWNGRADE
Affected: 2.8.2
Fixed in: no fixed release known
Safe to downgrade to: a release before 2.8.2
1. Check installed version
apt-cache policy gpdf || rpm -q gpdf || gpdf --version
2. No fixed release: DOWNGRADE to a release before 2.8.2 (Debian / Ubuntu)
apt-cache madison gpdf sudo apt install gpdf=<VERSION_BEFORE_2.8.2> sudo apt-mark hold gpdf
2. No fixed release: DOWNGRADE (RHEL / Amazon Linux / Fedora)
dnf --showduplicates list gpdf sudo dnf downgrade gpdf-<VERSION_BEFORE_2.8.2> sudo dnf versionlock add gpdf
Downgrade risk
Downgrading can break dependent software and may reopen older bugs. Read the distro advisory first and test on a non-production host.
After downgrade
Restart the service, and keep the package held until a fixed release ships.
kde kdegraphics DOWNGRADE
Affected: 3.3.1
Fixed in: no fixed release known
Safe to downgrade to: a release before 3.3.1
1. Check installed version
apt-cache policy kdegraphics || rpm -q kdegraphics || kdegraphics --version
2. No fixed release: DOWNGRADE to a release before 3.3.1 (Debian / Ubuntu)
apt-cache madison kdegraphics sudo apt install kdegraphics=<VERSION_BEFORE_3.3.1> sudo apt-mark hold kdegraphics
2. No fixed release: DOWNGRADE (RHEL / Amazon Linux / Fedora)
dnf --showduplicates list kdegraphics sudo dnf downgrade kdegraphics-<VERSION_BEFORE_3.3.1> sudo dnf versionlock add kdegraphics
Downgrade risk
Downgrading can break dependent software and may reopen older bugs. Read the distro advisory first and test on a non-production host.
After downgrade
Restart the service, and keep the package held until a fixed release ships.
kde kpdf DOWNGRADE
Affected: 3.3.1
Fixed in: no fixed release known
Safe to downgrade to: a release before 3.3.1
1. Check installed version
apt-cache policy kpdf || rpm -q kpdf || kpdf --version
2. No fixed release: DOWNGRADE to a release before 3.3.1 (Debian / Ubuntu)
apt-cache madison kpdf sudo apt install kpdf=<VERSION_BEFORE_3.3.1> sudo apt-mark hold kpdf
2. No fixed release: DOWNGRADE (RHEL / Amazon Linux / Fedora)
dnf --showduplicates list kpdf sudo dnf downgrade kpdf-<VERSION_BEFORE_3.3.1> sudo dnf versionlock add kpdf
Downgrade risk
Downgrading can break dependent software and may reopen older bugs. Read the distro advisory first and test on a non-production host.
After downgrade
Restart the service, and keep the package held until a fixed release ships.
xpdf xpdf DOWNGRADE
Affected: 3.0.0
Fixed in: no fixed release known
Safe to downgrade to: a release before 3.0.0
1. Check installed version
apt-cache policy xpdf || rpm -q xpdf || xpdf --version
2. No fixed release: DOWNGRADE to a release before 3.0.0 (Debian / Ubuntu)
apt-cache madison xpdf sudo apt install xpdf=<VERSION_BEFORE_3.0.0> sudo apt-mark hold xpdf
2. No fixed release: DOWNGRADE (RHEL / Amazon Linux / Fedora)
dnf --showduplicates list xpdf sudo dnf downgrade xpdf-<VERSION_BEFORE_3.0.0> sudo dnf versionlock add xpdf
Downgrade risk
Downgrading can break dependent software and may reopen older bugs. Read the distro advisory first and test on a non-production host.
After downgrade
Restart the service, and keep the package held until a fixed release ships.
Verify at the official source NVD · CVE Program · Report a problem with this page
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.

Quick answers

How do I fix CVE-2009-4035?

gpdf: downgrade or apply the listed mitigation; kdegraphics: downgrade or apply the listed mitigation; kpdf: downgrade or apply the listed mitigation. Exact commands for each OS are on this page.

Is CVE-2009-4035 being exploited?

CVE-2009-4035 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.

What does CVE-2009-4035 affect?

CVE-2009-4035 affects gpdf, kdegraphics, kpdf. Severity is high (CVSS 9.3). 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

How urgent is CVE-2009-4035?

Priority 55/100. Critical severity

Related CVEs

References

← Back to latest CVEs

Get the weekly exploited-CVE digest by emailThe CVEs being attacked this week and how to fix them. No spam, unsubscribe any time.