CVE-2005-3627: Buffer Overflow
Stream.cc in Xpdf, as used in products such as gpdf, kpdf, pdftohtml, poppler, teTeX, CUPS, libextractor, and others, allows attackers to modify memory and possibly execute arbitrary code via a DCTDecode stream with (1) a large "number of components" value that is not checked by DCTStream::readBaselineSOF or DCTStream::readProgressiveSOF, (2) a large "Huffman table index" value that is not checked by DCTStream::readHuffmanTables, and (3) certain uses of the scanInfo.numComps value by DCTStream::readScanInfo.
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.22-7 - Upgrade
Upgrade
debian/libextractorto a version that resolves this vulnerability.Fixed in 0.5.9-1 - Upgrade
Upgrade
debian/popplerto a version that resolves this vulnerability.Fixed in 0.4.4-1 - Upgrade
Upgrade
debian/xpdfto a version that resolves this vulnerability.Fixed in 3.01-4 - 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-3627?
CVE-2005-3627 is considered a high-severity vulnerability as it allows attackers to modify memory and potentially execute arbitrary code.
How do I fix CVE-2005-3627?
To fix CVE-2005-3627, update to a version of Xpdf or any affected software that has patched this vulnerability.
What products are affected by CVE-2005-3627?
CVE-2005-3627 affects multiple products including Xpdf, gpdf, kpdf, pdftohtml, and poppler.
What type of attack can be carried out using CVE-2005-3627?
Using CVE-2005-3627, an attacker can exploit a DCTDecode stream to modify memory or possibly execute arbitrary code.
Is CVE-2005-3627 a local or remote vulnerability?
CVE-2005-3627 can be exploited remotely through malicious PDF files that utilize affected decoding streams.