CVE Catalog

CVE-2005-3627

High
Published: Translated: NVD NIST

Summary

Vulnerability in Xpdf library (Stream.cc) allows attackers to modify memory and potentially execute arbitrary code via specially crafted DCTDecode streams. The issue involves missing validation of values such as 'number of components', 'Huffman table index', and 'scanInfo.numComps' in functions DCTStream::readBaselineSOF, DCTStream::readProgressiveSOF, DCTStream::readHuffmanTables, and DCTStream::readScanInfo.

Risk Assessment

An attacker can remotely exploit this vulnerability by delivering a malicious PDF file, potentially leading to system compromise, data leakage, or service disruption.

Recommendation

Immediately update all products using Xpdf (including gpdf, kpdf, pdftohtml, poppler, teTeX, CUPS, libextractor) to versions containing fixes for CVE-2005-3627. If no patch is available, consider temporarily disabling DCTDecode stream handling or restricting access to PDF processing.

Related vulnerabilities

Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS