Xpdf DCTStream::readHuffmanTables() buffer overflow
| xpdf-readhuffmantables-bo (24024) |
Description:
Xpdf is vulnerable to a heap-based buffer overflow in the DCTStream::readHuffmanTables() function. By creating a malicious PDF file with overly large numComps (number of components) value, a remote attacker could overflow a buffer to cause a denial of service and possibly execute arbitrary code on the system with privileges of the Xpdf process. Exploitation of this vulnerability would require the attacker to deliver the malicious PDF file to a potential victim, either by hosting the file on a Web site or sending it to the victim as an email attachment, and then the victim would have to open the file using Xpdf.
Note: This vulnerability affects multiple vendor applications that use the Xpdf code base.
*CVSS:
| Base Score: | 8 |
| Access Vector: | Remote |
| Access Complexity: | High |
| Authentication: | Not Required |
| Confidentiality Impact: | Complete |
| Integrity Impact: | Complete |
| Availability Impact: | Complete |
| Temporal Score: | 5.9 |
| Exploitability: | Unproven |
| Remediation Level: | Official-Fix |
| Report Confidence: | Confirmed |
Consequences:
Gain Access
Remedy:
Upgrade to the latest version of Xpdf (3.01pl1 or later), available from the Xpdf Web site. See References.
For Debian GNU/Linux:
Refer to DSA-962-1, DSA-961-1, DSA-950-1, DSA-940-1, DSA-938-1, DSA-937-1, DSA-936-1, DSA-932-1, and DSA-931-1 for patch, upgrade, or suggested workaround information. See References.
For Red Hat Linux (teTex):
Refer to RHSA-2006:0160-14 for patch, upgrade, or suggested workaround information. See References.
For Red Hat Linux (CUPS):
Refer to RHSA-2006:0163-2 for patch, upgrade, or suggested workaround information. See References.
For Red Hat Linux (gpdf):
Refer to RHSA-2006:0177-5 for patch, upgrade, or suggested workaround information. See References.
For Red Hat Linux (xpdf):
Refer to RHSA-2005:840-10 for patch, upgrade, or suggested workaround information. See References.
For Red Hat Linux (kdegraphics):
Refer to RHSA-2005:868-4 for patch, upgrade, or suggested workaround information. See References.
For Gentoo Linux (KPdf and Kword):
Refer to Gentoo Linux Security Announcement GLSA 2006-01-02 for patch, upgrade, or suggested workaround information. See References.
For Ubuntu Linux:
Refer to USN-236-1 and USN-236-2 for patch, upgrade, or suggested workaround information. See References.
For SUSE Linux:
Refer to SUSE Security Announcement SUSE-SA:2006:001 for patch, upgrade, or suggested workaround information. See References.
For Sun Solaris (gpdf):
Refer to Sun Alert ID: 102972 for patch, upgrade, or suggested workaround information. See References.
For other distributions:
Contact your vendor for upgrade or patch information.
References:
- Chris Evans Security Advisory CESA-2005-003 - rev 2: xpdf (and derivatives) buffer and integer overflows.
- KDE Security Advisory 20051207-2: kpdf/xpdf multiple integer overflows.
- Sun Alert ID: 102972: Multiple Security Vulnerabilities in the Solaris Gnome PDF Viewer (gpdf(1)) may Allow a Denial of Service (DoS) Condition or Lead to Execution of Arbitrary Code.
- ASA-2006-009: cups security update (RHSA-2006-0163)
- ASA-2006-012: gpdf security update (RHSA-2006-0177)
- ASA-2006-019: tetex security update (RHSA-2006-0160)
- ASA-2006-063: kdegraphics security update (RHSA-2006-0262)
- ASA-2007-281: Multiple Security Vulnerabilities in the Solaris Gnome PDF Viewer (gpdf(1)) may Allow a Denial of Service (DoS) Condition or Lead to Execution of Arbitrary Code (SUN 102972)
- BID-16143: KPDF and KWord Multiple Unspecified Buffer and Integer Overflow Vulnerabilities
- CVE-2005-3627: 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.
- DSA-1008: kdegraphics -- buffer overflow
- DSA-931: xpdf -- buffer overflows
- DSA-932: kdegraphics -- buffer overflows
- DSA-936: libextractor -- buffer overflows
- DSA-937: tetex-bin -- buffer overflows
- DSA-938: koffice -- buffer overflows
- DSA-940: gpdf -- buffer overflows
- DSA-950: cupsys -- buffer overflows
- DSA-961: pdfkit.framework -- buffer overflows
- DSA-962: pdftohtml -- buffer overflows
- GLSA-200601-02: KPdf, KWord: Multiple overflows in included Xpdf code
- GLSA-200601-17: Xpdf, Poppler, GPdf, libextractor, pdftohtml: Heap overflows
- MDKSA-2006:008: Updated koffice packages fix several vulnerabilities
- MDKSA-2006:010: Updated cups packages fix several vulnerabilities
- MDKSA-2006:011: Updated tetex packages fix several vulnerabilities
- MDKSA-2006:012: Updated kdegraphics packages fix several vulnerabilities
- RHSA-2005-840: xpdf security update
- RHSA-2005-868: kdegraphics security update
- RHSA-2006-0160: tetex security update
- RHSA-2006-0163: cups security update
- RHSA-2006-0177: gpdf security update
- SA18303: xpdf Multiple Integer Overflow Vulnerabilities
- SA18312: Poppler Xpdf Multiple Integer Overflow Vulnerabilities
- SA18329: teTeX Xpdf Multiple Integer Overflow Vulnerabilities
- SA18332: CUPS xpdf Multiple Integer Overflow Vulnerabilities
- SA18375: GNOME gpdf Xpdf Multiple Integer Overflow Vulnerabilities
- SA18398: libextractor Multiple Xpdf Vulnerabilities
- SA18642: pdftohtml xpdf Multiple Integer Overflow Vulnerabilities
- SA18674: GNUStep PDFKit Framework Xpdf Multiple Vulnerabilities
- SA25729: Sun Solaris Gnome PDF Viewer Multiple Vulnerabilities
- SUSE-SA:2006:001: xpdf various security problems
Platforms Affected:
- Canonical Ubuntu 4.10
- Canonical Ubuntu 5.04
- Canonical Ubuntu 5.10
- Debian Debian Linux 3.0
- Debian Debian Linux 3.1
- Easy Software Products CUPS prior to 1.2svn
- Foolabs Xpdf 3.01
- Gentoo Linux
- KDE KDE 3.5
- KDE KOffice 1.4.2 and prior
- KDE KPDF 0.5
- MandrakeSoft Mandrake Linux 10.1 X86_64
- MandrakeSoft Mandrake Linux 10.1
- MandrakeSoft Mandrake Linux 2006 X86_64
- MandrakeSoft Mandrake Linux 2006
- MandrakeSoft Mandrake Linux LE2005
- MandrakeSoft Mandrake Linux LE2005 X86_64
- MandrakeSoft Mandrake Linux Corporate Server 2.1 X86_64
- MandrakeSoft Mandrake Linux Corporate Server 2.1
- MandrakeSoft Mandrake Linux Corporate Server 3.0 X86_64
- MandrakeSoft Mandrake Linux Corporate Server 3.0
- pdftohtml pdftohtml 0.36 and prior
- Poppler Poppler 0.4.2 and prior
- RedHat Enterprise Linux 2.1 WS
- RedHat Enterprise Linux 2.1 AS
- RedHat Enterprise Linux 2.1 ES
- RedHat Enterprise Linux 3 Desktop
- RedHat Enterprise Linux 3 AS
- RedHat Enterprise Linux 3 ES
- RedHat Enterprise Linux 3 WS
- RedHat Enterprise Linux 4 WS
- RedHat Enterprise Linux 4 Desktop
- RedHat Enterprise Linux 4 ES
- RedHat Enterprise Linux 4 AS
- RedHat Linux Advanced Workstation 2.1 Itanium
- Sun Solaris 10 SPARC
- Sun Solaris 10 x86
- SUSE SuSE Linux 10.0
- SUSE SuSE Linux 9.0
- SUSE SuSE Linux 9.1
- SUSE SuSE Linux 9.2
- SUSE SuSE Linux 9.3
- SuSE SuSE Linux Desktop 1.0
- SuSE SuSE SLES 9
- Thomas Esser teTeX 3.0
- Turbolinux Turbolinux 10 Desktop
- Turbolinux Turbolinux 10 F...
- Turbolinux Turbolinux 10 Server
- Turbolinux Turbolinux 10 Server x64 Ed
- Turbolinux Turbolinux 8 Server
- Turbolinux Turbolinux 8 Workstation
- Turbolinux Turbolinux FUJI
- Turbolinux Turbolinux Home
- Turbolinux Turbolinux Multimedia
- Turbolinux Turbolinux Personal
- Turbolinux Turbolinux Appliance Server 1.0 Hosting Ed
- Turbolinux Turbolinux Appliance Server 1.0 Workgroup Ed
Reported:
Jan 03, 2006
The information within this database may change without notice. Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. In no event shall the author/distributor (IBM Internet Security Systems X-Force) be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.
For corrections or additions please email ignore thisxforceignore this@ignore thisus.ignore thisibm.comignore this
* According to the Forum of Incident Response and Security Teams (FIRST), the Common Vulnerability Scoring System (CVSS) is an "industry open standard designed to convey vulnerability severity and help to determine urgency and priority of response." IBM PROVIDES THE CVSS SCORES "AS IS" WITHOUT WARRANTY OF ANY KIND, INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. CUSTOMERS ARE RESPONSIBLE FOR ASSESSING THE IMPACT OF ANY ACTUAL OR POTENTIAL SECURITY VULNERABILITY.
The information within this database may change without notice. Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. In no event shall IBM be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.
