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.2.x to 3.2.3 and…

published December 22, 2004

CVSS
—
EPSS
7%
Percentile
93.8
In the wild
Unconfirmed
What it is

⚠️ A crafty buffer overflow is lurking in the Gfx::doImage function of xpdf! Just a single rogue PDF can crash your app, or worse, lead to unauthorized code execution! Think of this like a crowded hotel with a faulty fire exit sign; when too many guests try to leave through that exit at once, it causes chaos and could even block the way out completely. This vulnerability allows an attacker to send a specially crafted PDF that pushes the software past its limits, triggering a devastating overflow. With this vulnerability, an attacker could send a malformed PDF file that causes the application to crash, leading to a denial of service. In a worst-case scenario, it may also enable them to execute arbitrary code, opening the door to all sorts of malicious activities!

Put simply

Think of this like a crowded hotel with a faulty fire exit sign; when too many guests try to leave through that exit at once, it causes chaos and could even block the way out completely. This vulnerability allows an attacker to send a specially crafted PDF that pushes the software past its limits, triggering a devastating overflow. The buffer overflow in Gfx::doImage allows for the boundaries of a maskColors array to be exceeded when handling crafted PDF files. This weakness primarily affects xpdf 3.00 and related products, such as tetex-bin and kpdf within certain KDE versions.

What to do

With this vulnerability, an attacker could send a malformed PDF file that causes the application to crash, leading to a denial of service. In a worst-case scenario, it may also enable them to execute arbitrary code, opening the door to all sorts of malicious activities! To mitigate this risk, users should upgrade to the latest version of xpdf and associated software to ensure they are not using vulnerable builds. Regularly audit your software for updates and consider implementing input validation to prevent unknown files from being processed. You've got this! Stay proactive and secure your applications today! 🛡️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.06576 · 93.8th percentile
Published
2004-12-22T05:00Z
EPSS history
Timeline
  • 22 DEC 05:00Z
    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…
    cvelistv5