Xpdf DCTStream::readProgressiveSOF() heap buffer overflow

xpdf-dctstream-progressive-bo (23443) The risk level is classified as HighHigh Risk

Description:

Xpdf is vulnerable to a heap-based buffer overflow in the DCTStream::readProgressiveSOF() function. By creating a malicious PDF file with overly large numComps 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.


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 (xpdf):
Refer to RHSA-2005:840-10 for patch, upgrade, or suggested workaround information. See References.

For Red Hat Linux (gpdf):
Refer to RHSA-2005:867-5 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 Red Hat Linux (CUPS):
Refer to RHSA-2005:878-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 Gentoo Linux (Xpdf, GPdf, CUPS, Poppler):
Refer to Gentoo Linux Security Announcement GLSA 2005-12-08 for patch, upgrade, or suggested workaround information. See References.

For Ubuntu Linux:
Refer to USN-227-1 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.
  • Fedora Update Notification FEDORA-2005-1141: Fedora Core 3 Update: cups-1.1.22-0.rc1.8.8.
  • Fedora Update Notification FEDORA-2005-1142: Fedora Core 4 Update: cups-1.1.23-15.2.
  • iDEFENSE Security Advisory 11.15.05: Multiple Vendor xpdf DCTStream Progressive Heap Overflow.
  • 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.
  • Xpdf Web site: Xpdf: Download.
  • ASA-2006-007: cups security update (RHSA-2005-878)
  • ASA-2006-019: tetex security update (RHSA-2006-0160)
  • ASA-2006-094: UnixWare CUPS Multiple Buffer Overflow Vulnerabilities (SCOSA-2006.21)
  • 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-15726: XPDF DCTStream Progressive Remote Heap Buffer Overflow Vulnerability
  • BID-15727: XPDF DCTStream Baseline Remote Heap Buffer Overflow Vulnerability
  • CVE-2005-3191: 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.
  • 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-200512-08: Xpdf, GPdf, CUPS, Poppler: Multiple vulnerabilities
  • GLSA-200601-02: KPdf, KWord: Multiple overflows in included Xpdf code
  • 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-867: gpdf security update
  • RHSA-2005-868: kdegraphics security update
  • RHSA-2005-878: cups security update
  • RHSA-2006-0160: tetex security update
  • SA17897: Xpdf Multiple Buffer Overflow Vulnerabilities
  • SA17908: KOffice KWord PDF Filter Xpdf Buffer Overflow Vulnerabilities
  • SA17912: Poppler Xpdf Buffer Overflow Vulnerabilities
  • SA17916: teTeX Xpdf Buffer Overflow Vulnerabilities
  • SA17920: KDE kpdf Xpdf Buffer Overflow Vulnerabilities
  • SA17921: pdftohtml Xpdf Buffer Overflow Vulnerabilities
  • SA17940: GNOME gpdf Xpdf Buffer Overflow Vulnerabilities
  • SA17976: CUPS xpdf Multiple Buffer Overflow Vulnerabilities
  • SA18303: xpdf Multiple Integer Overflow Vulnerabilities
  • SA18398: libextractor Multiple Xpdf Vulnerabilities
  • SA18674: GNUStep PDFKit Framework Xpdf Multiple Vulnerabilities
  • SA25729: Sun Solaris Gnome PDF Viewer Multiple Vulnerabilities
  • SECTRACK ID: 1015309: Xpdf Buffer Overflows in Processing DCT and JPX Streams May Let Remote Users Execute Arbitrary Code
  • SECTRACK ID: 1015324: KDE KOffice kpdf Buffer Overflows in Processing DCT and JPX Streams May Let Remote Users Execute Arbitrary Code
  • SUSE-SA:2006:001: xpdf various security problems
  • SUSE-SR:2005:029: SUSE Security Summary Report
  • SUSE-SR:2005:030: SUSE Security Summary Report
  • SUSE-SR:2006:001: SUSE Security Summary Report
  • SUSE-SR:2006:002: SUSE Security Summary Report

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:

Dec 05, 2005

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

Return to the main page