CVE-2004-1125: 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…
Noroxi assessment
Priority: Monitor (action score 39/100)
- The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
- Probability of exploitation in the next 30 days: 6.5% (FIRST EPSS); higher than 93.9% of all records.
- Fixed version: cups (Debian:12) 1.1.22-2; xpdf (Debian:12) 3.00-11; cupsys (Debian:3.0) 1.1.14-5woody11.
Low priority for now. Upgrade to cups (Debian:12) 1.1.22-2; xpdf (Debian:12) 3.00-11; cupsys (Debian:3.0) 1.1.14-5woody11 or later.
Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it
Primary sources: NVD · CVE.org · FIRST EPSS
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.
- Published
- Jan 10, 2005
- Updated
- Jun 16, 2026
- EPSS
- 6.5% · 93th percentile
- CWE
- CWE-20
Report tools
Action score
39
Low priority for now.
- CVSS
- 37 / 40 · 9.3 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 2 / 30 · 6.5%
Get told when this record changes
- Not in KEV: no record of exploitation in the wild
- No public exploit code on record
- A fix has been released
If any of these changes, we'll tell you in the daily email digest.
Is your version affected? Check itNoroxi analysis
What does it mean in your environment?
The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.
We use this product, ask for helpAffected systems
Is your version affected?
Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.
| Vendor | Product | CPE |
|---|---|---|
| xpdf | xpdf | cpe:2.3:a:xpdf:xpdf |
| easy software products | cups | cpe:2.3:a:easy_software_products:cups |
| kde | kde | cpe:2.3:o:kde:kde |
Affected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- easy software products cups1.1.20
- kde kde3.2.3
- kde kde3.3.2
- xpdf xpdf3.0
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Debian:12 | cups | before 1.1.22-2 | 1.1.22-2 |
| Debian:12 | xpdf | before 3.00-11 | 3.00-11 |
| Debian:3.0 | cupsys | before 1.1.14-5woody11 | 1.1.14-5woody11 |
| Debian:3.0 | xpdf | before 1.00-3.3 | 1.00-3.3 |
| Red Hat:enterprise_linux:3::as | cups | before 1:1.1.17-13.3.22 | 1:1.1.17-13.3.22 |
| Red Hat:enterprise_linux:3::as | cups-debuginfo | before 1:1.1.17-13.3.22 | 1:1.1.17-13.3.22 |
| Red Hat:enterprise_linux:3::as | cups-devel | before 1:1.1.17-13.3.22 | 1:1.1.17-13.3.22 |
| Red Hat:enterprise_linux:3::as | cups-libs | before 1:1.1.17-13.3.22 | 1:1.1.17-13.3.22 |
| Red Hat:enterprise_linux:3::as | tetex | before 0:1.0.7-67.7 | 0:1.0.7-67.7 |
| Red Hat:enterprise_linux:3::as | tetex-afm | before 0:1.0.7-67.7 | 0:1.0.7-67.7 |
| Red Hat:enterprise_linux:3::as | tetex-debuginfo | before 0:1.0.7-67.7 | 0:1.0.7-67.7 |
| Red Hat:enterprise_linux:3::as | tetex-dvips | before 0:1.0.7-67.7 | 0:1.0.7-67.7 |
| Red Hat:enterprise_linux:3::as | tetex-fonts | before 0:1.0.7-67.7 | 0:1.0.7-67.7 |
| Red Hat:enterprise_linux:3::as | tetex-latex | before 0:1.0.7-67.7 | 0:1.0.7-67.7 |
| Red Hat:enterprise_linux:3::as | tetex-xdvi | before 0:1.0.7-67.7 | 0:1.0.7-67.7 |
| Red Hat:enterprise_linux:3::as | xpdf | before 1:2.02-9.4 | 1:2.02-9.4 |
| Red Hat:enterprise_linux:3::as | xpdf-debuginfo | before 1:2.02-9.4 | 1:2.02-9.4 |
| Red Hat:enterprise_linux:4::as | cups | before 1:1.1.22-0.rc1.9.6 | 1:1.1.22-0.rc1.9.6 |
| Red Hat:enterprise_linux:4::as | cups-debuginfo | before 1:1.1.22-0.rc1.9.6 | 1:1.1.22-0.rc1.9.6 |
| Red Hat:enterprise_linux:4::as | cups-devel | before 1:1.1.22-0.rc1.9.6 | 1:1.1.22-0.rc1.9.6 |
| Red Hat:enterprise_linux:4::as | cups-libs | before 1:1.1.22-0.rc1.9.6 | 1:1.1.22-0.rc1.9.6 |
| Red Hat:enterprise_linux:4::as | gpdf | before 0:2.8.2-4.3 | 0:2.8.2-4.3 |
| Red Hat:enterprise_linux:4::as | gpdf-debuginfo | before 0:2.8.2-4.3 | 0:2.8.2-4.3 |
| Red Hat:enterprise_linux:4::as | kdegraphics | before 7:3.3.1-3.3 | 7:3.3.1-3.3 |
+12
Same product
xpdf: all recordsOther highest-scoring records for the same primary product.
- CVE-2004-0889Multiple integer overflows in xpdf 3.0, and other packages that use xpdf code such as CUPS, allow remote attackers to cause a denial of…42Plan
- CVE-2007-5393Heap-based buffer overflow in the CCITTFaxStream::lookChar method in xpdf/Stream.cc in Xpdf 3.02p11 allows remote attackers to execute…39Monitor
- CVE-2007-5392Integer overflow in the DCTStream::reset method in xpdf/Stream.cc in Xpdf 3.02p11 allows remote attackers to execute arbitrary code via a…39Monitor
Published before and after this one in the same product
- ← EarlierCVE-2000-0728Oct 20, 2000 · xpdf PDF viewer client earlier than 0.91 allows local users to overwrite arbitrary files via a symlink attack.28Monitor
- ← EarlierCVE-2002-1384Jan 2, 2003 · Integer overflow in pdftops, as used in Xpdf 2.01 and earlier, xpdf-i, and CUPS before 1.1.18, allows local users to execute arbitrary code…28Monitor
- Later →CVE-2005-0206Apr 27, 2005 · The patch for integer overflow vulnerabilities in Xpdf 2.0 and 3.0 (CVE-2004-0888) is incomplete for 64-bit architectures on certain Linux…31Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| debian:cups | 1.1.22-2 · Debian:12 | Package registry (OSV) |
| debian:cupsys | 1.1.14-5woody11 · Debian:3.0 | Package registry (OSV) |
| debian:xpdf | 3.00-11 · Debian:12 | Package registry (OSV) |
| red hat:cups | 1:1.1.17-13.3.22 · Red Hat:enterprise_linux:3::as | Package registry (OSV) |
| red hat:cups-debuginfo | 1:1.1.17-13.3.22 · Red Hat:enterprise_linux:3::as | Package registry (OSV) |
| red hat:cups-devel | 1:1.1.17-13.3.22 · Red Hat:enterprise_linux:3::as | Package registry (OSV) |
| red hat:cups-libs | 1:1.1.17-13.3.22 · Red Hat:enterprise_linux:3::as | Package registry (OSV) |
| red hat:tetex | 0:2.0.2-22.EL4.4 · Red Hat:enterprise_linux:4::as | Package registry (OSV) |
| red hat:tetex-afm | 0:2.0.2-22.EL4.4 · Red Hat:enterprise_linux:4::as | Package registry (OSV) |
| red hat:tetex-debuginfo | 0:2.0.2-22.EL4.4 · Red Hat:enterprise_linux:4::as | Package registry (OSV) |
| red hat:tetex-doc | 0:2.0.2-22.EL4.4 · Red Hat:enterprise_linux:4::as | Package registry (OSV) |
| red hat:tetex-dvips | 0:2.0.2-22.EL4.4 · Red Hat:enterprise_linux:4::as | Package registry (OSV) |
| red hat:tetex-fonts | 0:2.0.2-22.EL4.4 · Red Hat:enterprise_linux:4::as | Package registry (OSV) |
| red hat:xpdf | 1:2.02-9.4 · Red Hat:enterprise_linux:3::as | Package registry (OSV) |
| red hat:xpdf-debuginfo | 1:2.02-9.4 · Red Hat:enterprise_linux:3::as | Package registry (OSV) |
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
No dated events beyond publication.
Patch and commit links
Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.
Not on record for this CVE: EPSS history · researcher credit · variant or chain candidate · public bounty program.
Technical details
Attack conditions
If successful
- Confidentiality
- C · data can be read
- Integrity
- C · data or configuration can be modified
- Availability
- C · the service can be disrupted
- Attack complexity
- M
- Confidentiality impact
- C
- Integrity impact
- C
- Availability impact
- C
Weakness class (CWE)
CWE-20 · Improper Input ValidationCVSS vector
AV:N/AC:M/Au:N/C:C/I:C/A:C
nvd-primary
Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
Attack patterns (CAPEC)
- Buffer Overflow via Environment VariablesCAPEC-10likelihood: High · High
- Server Side Include (SSI) InjectionCAPEC-101likelihood: High · High
- Cross Zone ScriptingCAPEC-104likelihood: Medium · High
- Command Line Execution through SQL InjectionCAPEC-108likelihood: Low · Very High
- Object Relational Mapping InjectionCAPEC-109likelihood: Low · High
- SQL Injection through SOAP Parameter TamperingCAPEC-110likelihood: High · Very High
- Double EncodingCAPEC-120likelihood: Low · Medium
- Subverting Environment Variable ValuesCAPEC-13likelihood: High · Very High
ATT&CK techniques
- Obfuscated Files or InformationT1027
- Masquerading: Invalid Code SignatureT1036.001
- Steal Web Session CookieT1539
- Subvert Trust Controls: Code SigningT1553.002
- Impair Defenses:Impair Command History LoggingT1562.003
- Hijack Execution Flow:Dynamic Linker HijackingT1574.006
- Hijack Execution Flow:Path Interception by PATH Environment VariableT1574.007
Change log (1)
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
Show all references (19 more)Show less
- ftp://ftp.sco.com/pub/updates/OpenServer/SCOSA-2005.42/SCOSA-2005.42.txt
- distro.conectiva.com.br/atualizacoes/?id=a&anuncio=000921
- lists.grok.org.uk/pipermail/full-disclosure/2004-December/030241.html
- marc.info/?t=110378596500001&r=1&w=2
- secunia.com/advisories/17277
- securitytracker.com/id?1012646
- www.gentoo.org/security/en/glsa/glsa-200412-25.xml
- www.gentoo.org/security/en/glsa/glsa-200501-13.xml
- www.gentoo.org/security/en/glsa/glsa-200501-17.xml
- www.idefense.com/application/poi/display?id=172&type=vulnerabilities
- www.kde.org/info/security/advisory-20041223-1.txt
- www.novell.com/linux/security/advisories/2005_01_sr.html
- www.redhat.com/support/errata/RHSA-2005-013.html
- www.redhat.com/support/errata/RHSA-2005-018.html
- www.redhat.com/support/errata/RHSA-2005-026.html
- www.redhat.com/support/errata/RHSA-2005-034.html
- www.redhat.com/support/errata/RHSA-2005-053.html
- www.redhat.com/support/errata/RHSA-2005-057.html
- www.redhat.com/support/errata/RHSA-2005-066.html
Vendor advisories and official records. Exploit/PoC links are deliberately left out.