Skip to content
Fencer Vulns
critical 9.3

CVE-2004-1125 json

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…

published 2004-12-22 21 y ago modified 2026-06-16 4 mo ago also EUVD-2004-1123

cvss
9.3
version 2.0, NVD
cisa kev
Not listed
not in CISA's catalog
epss
6.6%
EPSS 6.6% chance of exploitation in 30 days, percentile 93%
public exploits
0
none known

Summary

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.

Patch / fix

  • cups Debian 14, Debian 13, Debian 12 1.1.22-2
  • xpdf Debian 14, Debian 13, Debian 12 3.00-11

debian advisories DEBIAN-CVE-2004-1125

  • tetex RHEL 4 2.0.2-22.EL4.4
  • tetex-afm RHEL 4 2.0.2-22.EL4.4
  • tetex-xdvi RHEL 4 2.0.2-22.EL4.4
  • tetex-dvips RHEL 4 2.0.2-22.EL4.4
  • tetex-fonts RHEL 4 2.0.2-22.EL4.4
  • tetex-latex RHEL 4 2.0.2-22.EL4.4
  • kdegraphics RHEL 4 7:3.3.1-3.3
  • gpdf RHEL 4 2.8.2-4.3

red hat advisories RHSA-2005:026RHSA-2005:066RHSA-2005:057RHSA-2005:053RHSA-2005:034RHSA-2005:354

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2004-1125 updated

security flaw

  • Red Hat Desktop version 3 xpdf 2.02-9.4, tetex 1.0.7-67.7, cups 1.1.17-13.3.22, tetex-afm 1.0.7-67.7, tetex-xdvi 1.0.7-67.7, tetex-dvips 1.0.7-67.7, +3 more Red Hat Enterprise Linux AS version 3 xpdf 2.02-9.4, tetex 1.0.7-67.7, cups 1.1.17-13.3.22, tetex-afm 1.0.7-67.7, tetex-xdvi 1.0.7-67.7, tetex-dvips 1.0.7-67.7, +3 more
    fixed: vendor fix RHSA-2005:013
  • Red Hat Enterprise Linux AS version 4 gpdf 2.8.2-4.3, xpdf 3.00-11.5, tetex 2.0.2-22.EL4.4, cups 1.1.22-0.rc1.9.6, kdegraphics 3.3.1-3.3, tetex-afm 2.0.2-22.EL4.4, +5 more Red Hat Enterprise Linux Desktop version 4 gpdf 2.8.2-4.3, xpdf 3.00-11.5, tetex 2.0.2-22.EL4.4, cups 1.1.22-0.rc1.9.6, kdegraphics 3.3.1-3.3, tetex-afm 2.0.2-22.EL4.4, +5 more
    fixed: vendor fix RHSA-2005:053
  • Red Hat Enterprise Linux ES version 3 xpdf 2.02-9.4, tetex 1.0.7-67.7, cups 1.1.17-13.3.22, tetex-afm 1.0.7-67.7, tetex-xdvi 1.0.7-67.7, tetex-dvips 1.0.7-67.7, +3 more
    fixed: vendor fix RHSA-2005:013
  • Red Hat Enterprise Linux ES version 4 gpdf 2.8.2-4.3, xpdf 3.00-11.5, tetex 2.0.2-22.EL4.4, cups 1.1.22-0.rc1.9.6, kdegraphics 3.3.1-3.3, tetex-afm 2.0.2-22.EL4.4, +5 more
    fixed: vendor fix RHSA-2005:053
  • Red Hat Enterprise Linux WS version 3 xpdf 2.02-9.4, tetex 1.0.7-67.7, cups 1.1.17-13.3.22, tetex-afm 1.0.7-67.7, tetex-xdvi 1.0.7-67.7, tetex-dvips 1.0.7-67.7, +3 more
    fixed: vendor fix RHSA-2005:013
  • Red Hat Enterprise Linux WS version 4 gpdf 2.8.2-4.3, xpdf 3.00-11.5, tetex 2.0.2-22.EL4.4, cups 1.1.22-0.rc1.9.6, kdegraphics 3.3.1-3.3, tetex-afm 2.0.2-22.EL4.4, +5 more
    fixed: vendor fix RHSA-2005:053

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Exploit prediction

6.58% chance of exploitation in the next 30 days, higher than 93% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
NVD 2.0 9.3 AV:N/AC:M/Au:N/C:C/I:C/A:C

Classification

Weakness
  • CWE-20 Improper Input Validation

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.