CVE-2004-1125: Buffer overflow in the Gfx::doImage function in Gfx.cc for xpdf 3.00, and other products that share code such
CVE-2004-1125 is a high-severity flaw (CVSS 9.3) affecting cups, xpdf, kde. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
Buffer overflow in the Gfx::doImage function in Gfx.cc for xpdf 3.00, and other products that share code such as tetex-bin and kpdf in KDE 3.2.x to 3.2.3 and 3.3.x to 3.3.2, allows remote attackers to cause a denial of service (application crash) and possibly execute arbitrary code via a crafted PDF file that causes the boundaries of a maskColors array to be exceeded.
Why this priority
- Critical severity
- EPSS top 6%: very likely to be exploited
No fix is published yet: follow the downgrade or mitigation steps.
Risk facts
| CVSS score | 9.3 (High) |
| EPSS exploit chance | 6.6% (top 6%) |
| CISA exploited list | No |
| Weakness | CWE-20 |
| Published | 2005-01-10 |
| Last modified | 2026-06-16 |
Last updated 2026-06-16 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
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-2004-1125?
cups: downgrade or apply the listed mitigation; xpdf: downgrade or apply the listed mitigation; kde: mitigate or apply the listed mitigation. Exact commands for each OS are on this page.
Is CVE-2004-1125 being exploited?
CVE-2004-1125 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-2004-1125 affect?
CVE-2004-1125 affects cups, xpdf, kde. Severity is high (CVSS 9.3). Buffer overflow in the Gfx::doImage function in Gfx.cc for xpdf 3.00, and other products that share code such as tetex-bin and kpdf in KDE 3.2.x to 3.2.3 and 3.3.x to 3.3.2, allows remote attackers to cause a denial of service (application
How urgent is CVE-2004-1125?
Priority 56/100. Critical severity; EPSS top 6%: very likely to be exploited
Related CVEs
- CVE-2026-61702 MEDIUM 5.3 UPGRADE OpenPrinting CUPS is an open source printing system for Linux and other Unix-like operating systems
- CVE-2026-39316 MEDIUM 4.0 UPGRADE OpenPrinting CUPS is an open source printing system for Linux and other Unix-like operating systems
- CVE-2026-41079 MEDIUM 4.3 UPGRADE OpenPrinting CUPS is an open source printing system for Linux and other Unix-like operating systems
- CVE-2026-39314 MEDIUM 4.0 UPGRADE OpenPrinting CUPS is an open source printing system for Linux and other Unix-like operating systems
- CVE-2026-107885 LOW 3.3 UPGRADE OpenPrinting CUPS through 2.4.20 contains a resource-exhaustion vulnerability in the submission-timeout handli