CVE-2005-3191: Buffer Overflow
Multiple heap-based buffer overflows in the (1) DCTStream::readProgressiveSOF and (2) DCTStream::readBaselineSOF functions in the DCT stream parsing code (Stream.cc) in xpdf 3.01 and earlier, as used in products such as (a) Poppler, (b) teTeX, (c) KDE kpdf, (d) pdftohtml, (e) KOffice KWord, (f) CUPS, and (g) libextractor allow user-assisted attackers to cause a denial of service (heap corruption) and possibly execute arbitrary code via a crafted PDF file with an out-of-range number of components (numComps), which is used as an array index.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/cupsto a version that resolves this vulnerability.Fixed in 1.1.23-13 - Upgrade
Upgrade
debian/libextractorto a version that resolves this vulnerability.Fixed in 0.5.8-1 - Upgrade
Upgrade
debian/popplerto a version that resolves this vulnerability.Fixed in 0.4.2-1.1 - Upgrade
Upgrade
debian/xpdfto a version that resolves this vulnerability.Fixed in 3.01-3 - Upgrade
Upgrade
debian/cupsto a version that resolves this vulnerability.Fixed in 2.4.2-3+deb12u9Fixed in 2.4.10-3+deb13u2Fixed in 2.4.10-3+deb13u1Fixed in 2.4.20-3 - Upgrade
Upgrade
debian/libextractorto a version that resolves this vulnerability.Fixed in 1:1.11-7Fixed in 1:1.13-8Fixed in 1:1.19-2 - Upgrade
Upgrade
debian/popplerto a version that resolves this vulnerability.Fixed in 22.12.0-2+deb12u2Fixed in 22.12.0-2+deb12u3Fixed in 25.03.0-5+deb13u4Fixed in 25.03.0-5+deb13u3Fixed in 26.07.0-4 - Upgrade
Upgrade
debian/xpdfto a version that resolves this vulnerability.Fixed in 3.04+git20220601-1Fixed in 3.04+git20250304-1Fixed in 3.04+git20260802-1
Event History
Parent advisories
This vulnerability appears in the following advisories.
Frequently Asked Questions
What is the severity of CVE-2005-3191?
CVE-2005-3191 is considered to have a high severity due to multiple heap-based buffer overflows that can be exploited.
How do I fix CVE-2005-3191?
To fix CVE-2005-3191, you should upgrade to a version of Xpdf that is newer than 3.01, which no longer contains this vulnerability.
What software is affected by CVE-2005-3191?
CVE-2005-3191 affects multiple software products including Xpdf, Poppler, and KDE kpdf among others.
What are the potential impacts of exploiting CVE-2005-3191?
Exploiting CVE-2005-3191 may allow an attacker to execute arbitrary code or crash the application.
When was CVE-2005-3191 disclosed?
CVE-2005-3191 was publicly disclosed in 2005, prompting the need for immediate security updates.