Vulnerabilities > CVE-2005-3627 - Improper Restriction of Operations Within the Bounds of A Memory Buffer vulnerability in Xpdf

047910
CVSS 7.5 - HIGH
Attack vector
NETWORK
Attack complexity
LOW
Privileges required
NONE
Confidentiality impact
PARTIAL
Integrity impact
PARTIAL
Availability impact
PARTIAL
network
low complexity
xpdf
CWE-119
nessus

Summary

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.

Vulnerable Configurations

Part Description Count
Application
Xpdf
1

Common Attack Pattern Enumeration and Classification (CAPEC)

  • Buffer Overflow via Environment Variables
    This attack pattern involves causing a buffer overflow through manipulation of environment variables. Once the attacker finds that they can modify an environment variable, they may try to overflow associated buffers. This attack leverages implicit trust often placed in environment variables.
  • Overflow Buffers
    Buffer Overflow attacks target improper or missing bounds checking on buffer operations, typically triggered by input injected by an attacker. As a consequence, an attacker is able to write past the boundaries of allocated buffer regions in memory, causing a program crash or potentially redirection of execution as per the attackers' choice.
  • Client-side Injection-induced Buffer Overflow
    This type of attack exploits a buffer overflow vulnerability in targeted client software through injection of malicious content from a custom-built hostile service.
  • Filter Failure through Buffer Overflow
    In this attack, the idea is to cause an active filter to fail by causing an oversized transaction. An attacker may try to feed overly long input strings to the program in an attempt to overwhelm the filter (by causing a buffer overflow) and hoping that the filter does not fail securely (i.e. the user input is let into the system unfiltered).
  • MIME Conversion
    An attacker exploits a weakness in the MIME conversion routine to cause a buffer overflow and gain control over the mail server machine. The MIME system is designed to allow various different information formats to be interpreted and sent via e-mail. Attack points exist when data are converted to MIME compatible format and back.

Nessus

  • NASL familyCentOS Local Security Checks
    NASL idCENTOS_RHSA-2006-0177.NASL
    descriptionAn updated gpdf package that fixes several security issues is now available for Red Hat Enterprise Linux 4. This update has been rated as having important security impact by the Red Hat Security Response Team. gpdf is a GNOME based viewer for Portable Document Format (PDF) files. Chris Evans discovered several flaws in the way gpdf processes PDF files. An attacker could construct a carefully crafted PDF file that could cause gpdf to crash or possibly execute arbitrary code when opened. The Common Vulnerabilities and Exposures project assigned the names CVE-2005-3624, CVE-2005-3625, CVE-2005-3626, and CVE-2005-3627 to these issues. Users of gpdf should upgrade to this updated package, which contains a backported patch to resolve these issues.
    last seen2020-06-01
    modified2020-06-02
    plugin id21980
    published2006-07-05
    reporterThis script is Copyright (C) 2006-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/21980
    titleCentOS 4 : gpdf (CESA-2006:0177)
  • NASL familyDebian Local Security Checks
    NASL idDEBIAN_DSA-950.NASL
    description'infamous41md
    last seen2020-06-01
    modified2020-06-02
    plugin id22816
    published2006-10-14
    reporterThis script is Copyright (C) 2006-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/22816
    titleDebian DSA-950-1 : cupsys - buffer overflows
  • NASL familyMandriva Local Security Checks
    NASL idMANDRAKE_MDKSA-2006-008.NASL
    descriptionMultiple heap-based buffer overflows in the DCTStream::readProgressiveSOF and DCTStream::readBaselineSOF functions in the DCT stream parsing code (Stream.cc) in xpdf 3.01 and earlier, allow user-complicit 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. (CVE-2005-3191) Heap-based buffer overflow in the StreamPredictor function in Xpdf 3.01 allows remote attackers to execute arbitrary code via a PDF file with an out-of-range numComps (number of components) field. (CVE-2005-3192) Heap-based buffer overflow in the JPXStream::readCodestream function in the JPX stream parsing code (JPXStream.c) for xpdf 3.01 and earlier allows user-complicit attackers to cause a denial of service (heap corruption) and possibly execute arbitrary code via a crafted PDF file with large size values that cause insufficient memory to be allocated. (CVE-2005-3193) An additional patch re-addresses memory allocation routines in goo/gmem.c (Martin Pitt/Canonical, Dirk Mueller/KDE). In addition, Chris Evans discovered several other vulnerabilities in the xpdf code base : Out-of-bounds heap accesses with large or negative parameters to
    last seen2020-06-01
    modified2020-06-02
    plugin id20474
    published2006-01-15
    reporterThis script is Copyright (C) 2006-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/20474
    titleMandrake Linux Security Advisory : koffice (MDKSA-2006:008)
  • NASL familyMandriva Local Security Checks
    NASL idMANDRAKE_MDKSA-2006-011.NASL
    descriptionMultiple heap-based buffer overflows in the DCTStream::readProgressiveSOF and DCTStream::readBaselineSOF functions in the DCT stream parsing code (Stream.cc) in xpdf 3.01 and earlier, allow user-complicit 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. (CVE-2005-3191) Heap-based buffer overflow in the StreamPredictor function in Xpdf 3.01 allows remote attackers to execute arbitrary code via a PDF file with an out-of-range numComps (number of components) field. (CVE-2005-3192) Heap-based buffer overflow in the JPXStream::readCodestream function in the JPX stream parsing code (JPXStream.c) for xpdf 3.01 and earlier allows user-complicit attackers to cause a denial of service (heap corruption) and possibly execute arbitrary code via a crafted PDF file with large size values that cause insufficient memory to be allocated. (CVE-2005-3193) An additional patch re-addresses memory allocation routines in goo/gmem.c (Martin Pitt/Canonical, Dirk Mueller/KDE). In addition, Chris Evans discovered several other vulnerabilities in the xpdf code base : Out-of-bounds heap accesses with large or negative parameters to
    last seen2020-06-01
    modified2020-06-02
    plugin id20477
    published2006-01-15
    reporterThis script is Copyright (C) 2006-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/20477
    titleMandrake Linux Security Advisory : tetex (MDKSA-2006:011)
  • NASL familyFedora Local Security Checks
    NASL idFEDORA_2005-000.NASL
    descriptionThe remote host is missing the patch for the advisory FEDORA-2005-000 (cups). The Common UNIX Printing System provides a portable printing layer for UNIX(r) operating systems. It has been developed by Easy Software Products to promote a standard printing solution for all UNIX vendors and users. CUPS provides the System V and Berkeley command-line interfaces. Update Information: This update fixes the pdftops filter's handling of some incorrectly-formed PDF files. Issues fixed are CVE-2005-3625, CVE-2005-3626, and CVE-2005-3627.
    last seen2016-09-26
    modified2016-05-26
    plugin id20396
    published2006-01-11
    reporterTenable
    sourcehttps://www.tenable.com/plugins/index.php?view=single&id=20396
    titleFedora Core 3 2005-000: cups
  • NASL familyCentOS Local Security Checks
    NASL idCENTOS_RHSA-2005-868.NASL
    descriptionUpdated kdegraphics packages that resolve several security issues in kpdf are now available. This update has been rated as having important security impact by the Red Hat Security Response Team. The kdegraphics packages contain applications for the K Desktop Environment including kpdf, a pdf file viewer. Several flaws were discovered in kpdf. An attacker could construct a carefully crafted PDF file that could cause kpdf to crash or possibly execute arbitrary code when opened. The Common Vulnerabilities and Exposures project assigned the names CVE-2005-3191, CVE-2005-3192, and CVE-2005-3193 to these issues. Users of kpdf should upgrade to these updated packages, which contain a backported patch to resolve these issues.
    last seen2020-06-01
    modified2020-06-02
    plugin id21972
    published2006-07-05
    reporterThis script is Copyright (C) 2006-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/21972
    titleCentOS 4 : kdegraphics (CESA-2005:868)
  • NASL familyDebian Local Security Checks
    NASL idDEBIAN_DSA-940.NASL
    description'infamous41md
    last seen2020-06-01
    modified2020-06-02
    plugin id22806
    published2006-10-14
    reporterThis script is Copyright (C) 2006-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/22806
    titleDebian DSA-940-1 : gpdf - buffer overflows
  • NASL familyFedora Local Security Checks
    NASL idFEDORA_2006-026.NASL
    descriptionChris Evans discovered several flaws in the way poppler processes PDF files. An attacker could construct a carefully crafted PDF file that could cause poppler to crash or possibly execute arbitrary code when opened. The Common Vulnerabilities and Exposures project assigned the names CVE-2005-3624, CVE-2005-3625, CVE-2005-3626, and CVE-2005-3627 to these issues. Note that Tenable Network Security has extracted the preceding description block directly from the Fedora security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen2020-06-01
    modified2020-06-02
    plugin id20407
    published2006-01-15
    reporterThis script is Copyright (C) 2006-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/20407
    titleFedora Core 4 : poppler-0.4.4-1.1 (2006-026)
  • NASL familyDebian Local Security Checks
    NASL idDEBIAN_DSA-932.NASL
    description'infamous41md
    last seen2020-06-01
    modified2020-06-02
    plugin id22798
    published2006-10-14
    reporterThis script is Copyright (C) 2006-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/22798
    titleDebian DSA-932-1 : kdegraphics - buffer overflows
  • NASL familyDebian Local Security Checks
    NASL idDEBIAN_DSA-938.NASL
    description'infamous41md
    last seen2020-06-01
    modified2020-06-02
    plugin id22804
    published2006-10-14
    reporterThis script is Copyright (C) 2006-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/22804
    titleDebian DSA-938-1 : koffice - buffer overflows
  • NASL familyRed Hat Local Security Checks
    NASL idREDHAT-RHSA-2005-840.NASL
    descriptionAn updated xpdf package that fixes several security issues is now available. This update has been rated as having important security impact by the Red Hat Security Response Team. [Updated 20 Dec 2005] The initial fix for these issues was incomplete. The packages have been updated with a more complete fix. The xpdf package is an X Window System-based viewer for Portable Document Format (PDF) files. Several flaws were discovered in Xpdf. An attacker could construct a carefully crafted PDF file that could cause Xpdf to crash or possibly execute arbitrary code when opened. The Common Vulnerabilities and Exposures project assigned the names CVE-2005-3191, CVE-2005-3192, and CVE-2005-3193 to these issues. Users of Xpdf should upgrade to this updated package, which contains a backported patch to resolve these issues. Red Hat would like to thank Derek B. Noonburg for reporting this issue and providing a patch.
    last seen2020-06-01
    modified2020-06-02
    plugin id20268
    published2005-12-07
    reporterThis script is Copyright (C) 2005-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/20268
    titleRHEL 2.1 / 3 / 4 : xpdf (RHSA-2005:840)
  • NASL familyRed Hat Local Security Checks
    NASL idREDHAT-RHSA-2006-0177.NASL
    descriptionAn updated gpdf package that fixes several security issues is now available for Red Hat Enterprise Linux 4. This update has been rated as having important security impact by the Red Hat Security Response Team. gpdf is a GNOME based viewer for Portable Document Format (PDF) files. Chris Evans discovered several flaws in the way gpdf processes PDF files. An attacker could construct a carefully crafted PDF file that could cause gpdf to crash or possibly execute arbitrary code when opened. The Common Vulnerabilities and Exposures project assigned the names CVE-2005-3624, CVE-2005-3625, CVE-2005-3626, and CVE-2005-3627 to these issues. Users of gpdf should upgrade to this updated package, which contains a backported patch to resolve these issues.
    last seen2020-06-01
    modified2020-06-02
    plugin id20482
    published2006-01-15
    reporterThis script is Copyright (C) 2006-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/20482
    titleRHEL 4 : gpdf (RHSA-2006:0177)
  • NASL familyGentoo Local Security Checks
    NASL idGENTOO_GLSA-200601-17.NASL
    descriptionThe remote host is affected by the vulnerability described in GLSA-200601-17 (Xpdf, Poppler, GPdf, libextractor, pdftohtml: Heap overflows) Chris Evans has reported some integer overflows in Xpdf when attempting to calculate buffer sizes for memory allocation, leading to a heap overflow and a potential infinite loop when handling malformed input files. Impact : By sending a specially crafted PDF file to a victim, an attacker could cause an overflow, potentially resulting in the execution of arbitrary code with the privileges of the user running the application. Workaround : There is no known workaround at this time.
    last seen2020-06-01
    modified2020-06-02
    plugin id20829
    published2006-02-01
    reporterThis script is Copyright (C) 2006-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/20829
    titleGLSA-200601-17 : Xpdf, Poppler, GPdf, libextractor, pdftohtml: Heap overflows
  • NASL familyUbuntu Local Security Checks
    NASL idUBUNTU_USN-236-1.NASL
    descriptionChris Evans discovered several integer overflows in the XPDF code, which is present in xpdf, the Poppler library, and tetex-bin. By tricking an user into opening a specially crafted PDF file, an attacker could exploit this to execute arbitrary code with the privileges of the application that processes the document. The CUPS printing system also uses XPDF code to convert PDF files to PostScript. By attempting to print such a crafted PDF file, a remote attacker could execute arbitrary code with the privileges of the printer server (user
    last seen2020-06-01
    modified2020-06-02
    plugin id20781
    published2006-01-21
    reporterUbuntu Security Notice (C) 2006-2019 Canonical, Inc. / NASL script (C) 2006-2016 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/20781
    titleUbuntu 4.10 / 5.04 / 5.10 : xpdf, poppler, cupsys, tetex-bin vulnerabilities (USN-236-1)
  • NASL familyUbuntu Local Security Checks
    NASL idUBUNTU_USN-236-2.NASL
    descriptionUSN-236-1 fixed several vulnerabilities in xpdf. kpdf and kword contain copies of xpdf code and are thus vulnerable to the same issues. For reference, this is the original advisory : Chris Evans discovered several integer overflows in the XPDF code, which is present in xpdf, the Poppler library, and tetex-bin. By tricking an user into opening a specially crafted PDF file, an attacker could exploit this to execute arbitrary code with the privileges of the application that processes the document. Note that Tenable Network Security has extracted the preceding description block directly from the Ubuntu security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen2020-06-01
    modified2020-06-02
    plugin id20782
    published2006-01-21
    reporterUbuntu Security Notice (C) 2006-2019 Canonical, Inc. / NASL script (C) 2006-2016 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/20782
    titleUbuntu 5.04 / 5.10 : kdegraphics, koffice vulnerabilities (USN-236-2)
  • NASL familyFedora Local Security Checks
    NASL idFEDORA_2005-029.NASL
    descriptionSeveral flaws were discovered in the way teTeX processes PDF files. An attacker could construct a carefully crafted PDF file that could cause poppler to crash or possibly execute arbitrary code when opened. The Common Vulnerabilities and Exposures project assigned the names CVE-2005-3624, CVE-2005-3625, CVE-2005-3626, and CVE-2005-3627 to these issues.
    last seen2017-10-29
    modified2012-10-01
    plugin id62251
    published2012-09-24
    reporterTenable
    sourcehttps://www.tenable.com/plugins/index.php?view=single&id=62251
    titleFedora Core 3 : tetex-2.0.2-21.7.FC3 (2005-029)
  • NASL familyMandriva Local Security Checks
    NASL idMANDRAKE_MDKSA-2006-012.NASL
    descriptionMultiple heap-based buffer overflows in the DCTStream::readProgressiveSOF and DCTStream::readBaselineSOF functions in the DCT stream parsing code (Stream.cc) in xpdf 3.01 and earlier, allow user-complicit 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. (CVE-2005-3191) Heap-based buffer overflow in the StreamPredictor function in Xpdf 3.01 allows remote attackers to execute arbitrary code via a PDF file with an out-of-range numComps (number of components) field. (CVE-2005-3192) Heap-based buffer overflow in the JPXStream::readCodestream function in the JPX stream parsing code (JPXStream.c) for xpdf 3.01 and earlier allows user-complicit attackers to cause a denial of service (heap corruption) and possibly execute arbitrary code via a crafted PDF file with large size values that cause insufficient memory to be allocated. (CVE-2005-3193) An additional patch re-addresses memory allocation routines in goo/gmem.c (Martin Pitt/Canonical, Dirk Mueller/KDE). In addition, Chris Evans discovered several other vulnerabilities in the xpdf code base : Out-of-bounds heap accesses with large or negative parameters to
    last seen2020-06-01
    modified2020-06-02
    plugin id20478
    published2006-01-15
    reporterThis script is Copyright (C) 2006-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/20478
    titleMandrake Linux Security Advisory : kdegraphics (MDKSA-2006:012)
  • NASL familyFedora Local Security Checks
    NASL idFEDORA_2006-025.NASL
    descriptionChris Evans discovered several flaws in the way CUPS processes PDF files. An attacker could construct a carefully crafted PDF file that could cause CUPS to crash or possibly execute arbitrary code when opened. The Common Vulnerabilities and Exposures project assigned the names CVE-2005-3624, CVE-2005-3625, CVE-2005-3626, and CVE-2005-3627 to these issues. Note that Tenable Network Security has extracted the preceding description block directly from the Fedora security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen2020-06-01
    modified2020-06-02
    plugin id20406
    published2006-01-15
    reporterThis script is Copyright (C) 2006-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/20406
    titleFedora Core 3 : gpdf-2.8.2-7.2 (2006-025)
  • NASL familySlackware Local Security Checks
    NASL idSLACKWARE_SSA_2006-045-09.NASL
    descriptionNew xpdf packages are available for Slackware 9.0, 9.1, 10.0, 10.1, 10.2, and -current to fix security issues.
    last seen2020-06-01
    modified2020-06-02
    plugin id20920
    published2006-02-15
    reporterThis script is Copyright (C) 2006-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/20920
    titleSlackware 10.0 / 10.1 / 10.2 / 9.0 / 9.1 / current : xpdf (SSA:2006-045-09)
  • NASL familyCentOS Local Security Checks
    NASL idCENTOS_RHSA-2005-840.NASL
    descriptionAn updated xpdf package that fixes several security issues is now available. This update has been rated as having important security impact by the Red Hat Security Response Team. [Updated 20 Dec 2005] The initial fix for these issues was incomplete. The packages have been updated with a more complete fix. The xpdf package is an X Window System-based viewer for Portable Document Format (PDF) files. Several flaws were discovered in Xpdf. An attacker could construct a carefully crafted PDF file that could cause Xpdf to crash or possibly execute arbitrary code when opened. The Common Vulnerabilities and Exposures project assigned the names CVE-2005-3191, CVE-2005-3192, and CVE-2005-3193 to these issues. Users of Xpdf should upgrade to this updated package, which contains a backported patch to resolve these issues. Red Hat would like to thank Derek B. Noonburg for reporting this issue and providing a patch.
    last seen2020-06-01
    modified2020-06-02
    plugin id21873
    published2006-07-03
    reporterThis script is Copyright (C) 2006-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/21873
    titleCentOS 3 / 4 : xpdf (CESA-2005:840)
  • NASL familyRed Hat Local Security Checks
    NASL idREDHAT-RHSA-2006-0160.NASL
    descriptionUpdated tetex packages that fix several integer overflows are now available. This update has been rated as having moderate security impact by the Red Hat Security Response Team. TeTeX is an implementation of TeX. TeX takes a text file and a set of formatting commands as input and creates a typesetter-independent .dvi (DeVice Independent) file as output. Several flaws were discovered in the teTeX PDF parsing library. An attacker could construct a carefully crafted PDF file that could cause teTeX to crash or possibly execute arbitrary code when opened. The Common Vulnerabilities and Exposures project assigned the names CVE-2005-3191, CVE-2005-3192, CVE-2005-3193, CVE-2005-3624, CVE-2005-3625, CVE-2005-3626, CVE-2005-3627 and CVE-2005-3628 to these issues. Users of teTeX should upgrade to these updated packages, which contain backported patches and are not vulnerable to these issues.
    last seen2020-06-01
    modified2020-06-02
    plugin id20752
    published2006-01-20
    reporterThis script is Copyright (C) 2006-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/20752
    titleRHEL 2.1 / 3 / 4 : tetex (RHSA-2006:0160)
  • NASL familyRed Hat Local Security Checks
    NASL idREDHAT-RHSA-2006-0262.NASL
    descriptionUpdated kdegraphics packages that fully resolve a security issue in kpdf are now available. This update has been rated as having important security impact by the Red Hat Security Response Team. The kdegraphics packages contain applications for the K Desktop Environment including kpdf, a PDF file viewer. Marcelo Ricardo Leitner discovered that a kpdf security fix, CVE-2005-3627, was incomplete. Red Hat issued kdegraphics packages with this incomplete fix in RHSA-2005:868. An attacker could construct a carefully crafted PDF file that could cause kpdf to crash or possibly execute arbitrary code when opened. The Common Vulnerabilities and Exposures project assigned the name CVE-2006-0746 to this issue. Users of kpdf should upgrade to these updated packages, which contain a backported patch to resolve this issue.
    last seen2020-06-01
    modified2020-06-02
    plugin id21043
    published2006-03-10
    reporterThis script is Copyright (C) 2006-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/21043
    titleRHEL 4 : kdegraphics (RHSA-2006:0262)
  • NASL familyCentOS Local Security Checks
    NASL idCENTOS_RHSA-2006-0160.NASL
    descriptionUpdated tetex packages that fix several integer overflows are now available. This update has been rated as having moderate security impact by the Red Hat Security Response Team. TeTeX is an implementation of TeX. TeX takes a text file and a set of formatting commands as input and creates a typesetter-independent .dvi (DeVice Independent) file as output. Several flaws were discovered in the teTeX PDF parsing library. An attacker could construct a carefully crafted PDF file that could cause teTeX to crash or possibly execute arbitrary code when opened. The Common Vulnerabilities and Exposures project assigned the names CVE-2005-3191, CVE-2005-3192, CVE-2005-3193, CVE-2005-3624, CVE-2005-3625, CVE-2005-3626, CVE-2005-3627 and CVE-2005-3628 to these issues. Users of teTeX should upgrade to these updated packages, which contain backported patches and are not vulnerable to these issues.
    last seen2020-06-01
    modified2020-06-02
    plugin id21885
    published2006-07-03
    reporterThis script is Copyright (C) 2006-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/21885
    titleCentOS 3 / 4 : tetex (CESA-2006:0160)
  • NASL familyRed Hat Local Security Checks
    NASL idREDHAT-RHSA-2005-868.NASL
    descriptionUpdated kdegraphics packages that resolve several security issues in kpdf are now available. This update has been rated as having important security impact by the Red Hat Security Response Team. The kdegraphics packages contain applications for the K Desktop Environment including kpdf, a pdf file viewer. Several flaws were discovered in kpdf. An attacker could construct a carefully crafted PDF file that could cause kpdf to crash or possibly execute arbitrary code when opened. The Common Vulnerabilities and Exposures project assigned the names CVE-2005-3191, CVE-2005-3192, and CVE-2005-3193 to these issues. Users of kpdf should upgrade to these updated packages, which contain a backported patch to resolve these issues.
    last seen2020-06-01
    modified2020-06-02
    plugin id20363
    published2005-12-30
    reporterThis script is Copyright (C) 2005-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/20363
    titleRHEL 4 : kdegraphics (RHSA-2005:868)
  • NASL familyDebian Local Security Checks
    NASL idDEBIAN_DSA-936.NASL
    description'infamous41md
    last seen2020-06-01
    modified2020-06-02
    plugin id22802
    published2006-10-14
    reporterThis script is Copyright (C) 2006-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/22802
    titleDebian DSA-936-1 : libextractor - buffer overflows
  • NASL familyFedora Local Security Checks
    NASL idFEDORA_2006-029.NASL
    descriptionSeveral flaws were discovered in the way teTeX processes PDF files. An attacker could construct a carefully crafted PDF file that could cause poppler to crash or possibly execute arbitrary code when opened. The Common Vulnerabilities and Exposures project assigned the names CVE-2005-3624, CVE-2005-3625, CVE-2005-3626, and CVE-2005-3627 to these issues. Note that Tenable Network Security has extracted the preceding description block directly from the Fedora security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen2020-06-01
    modified2020-06-02
    plugin id20410
    published2006-01-15
    reporterThis script is Copyright (C) 2006-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/20410
    titleFedora Core 3 : tetex-2.0.2-21.7.FC3 (2006-029)
  • NASL familyDebian Local Security Checks
    NASL idDEBIAN_DSA-962.NASL
    description'infamous41md
    last seen2020-06-01
    modified2020-06-02
    plugin id22828
    published2006-10-14
    reporterThis script is Copyright (C) 2006-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/22828
    titleDebian DSA-962-1 : pdftohtml - buffer overflows
  • NASL familyCentOS Local Security Checks
    NASL idCENTOS_RHSA-2006-0163.NASL
    descriptionUpdated CUPS packages that fix multiple security issues are now available for Red Hat Enterprise Linux. This update has been rated as having important security impact by the Red Hat Security Response Team. The Common UNIX Printing System (CUPS) provides a portable printing layer for UNIX(R) operating systems. Chris Evans discovered several flaws in the way CUPS processes PDF files. An attacker could construct a carefully crafted PDF file that could cause CUPS to crash or possibly execute arbitrary code when opened. The Common Vulnerabilities and Exposures project assigned the names CVE-2005-3624, CVE-2005-3625, CVE-2005-3626, and CVE-2005-3627 to these issues. All users of CUPS should upgrade to these updated packages, which contain backported patches to resolve these issues.
    last seen2020-06-01
    modified2020-06-02
    plugin id21886
    published2006-07-03
    reporterThis script is Copyright (C) 2006-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/21886
    titleCentOS 3 / 4 : cups (CESA-2006:0163)
  • NASL familyFedora Local Security Checks
    NASL idFEDORA_2005-028.NASL
    descriptionSeveral flaws were discovered in the way teTeX processes PDF files. An attacker could construct a carefully crafted PDF file that could cause poppler to crash or possibly execute arbitrary code when opened. The Common Vulnerabilities and Exposures project assigned the names CVE-2005-3625, CVE-2005-3626, and CVE-2005-3627 to these issues. This package also updates bindings in texdoc and causes the local texmf tree to be searched first.
    last seen2017-10-29
    modified2012-10-01
    plugin id62250
    published2012-09-24
    reporterTenable
    sourcehttps://www.tenable.com/plugins/index.php?view=single&id=62250
    titleFedora Core 4 : tetex-3.0-9.FC4 (2005-028)
  • NASL familyCentOS Local Security Checks
    NASL idCENTOS_RHSA-2006-0262.NASL
    descriptionUpdated kdegraphics packages that fully resolve a security issue in kpdf are now available. This update has been rated as having important security impact by the Red Hat Security Response Team. The kdegraphics packages contain applications for the K Desktop Environment including kpdf, a PDF file viewer. Marcelo Ricardo Leitner discovered that a kpdf security fix, CVE-2005-3627, was incomplete. Red Hat issued kdegraphics packages with this incomplete fix in RHSA-2005:868. An attacker could construct a carefully crafted PDF file that could cause kpdf to crash or possibly execute arbitrary code when opened. The Common Vulnerabilities and Exposures project assigned the name CVE-2006-0746 to this issue. Users of kpdf should upgrade to these updated packages, which contain a backported patch to resolve this issue.
    last seen2020-06-01
    modified2020-06-02
    plugin id21989
    published2006-07-05
    reporterThis script is Copyright (C) 2006-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/21989
    titleCentOS 4 : kdegraphics (CESA-2006:0262)
  • NASL familyMandriva Local Security Checks
    NASL idMANDRAKE_MDKSA-2006-010.NASL
    descriptionMultiple heap-based buffer overflows in the DCTStream::readProgressiveSOF and DCTStream::readBaselineSOF functions in the DCT stream parsing code (Stream.cc) in xpdf 3.01 and earlier, allow user-complicit 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. (CVE-2005-3191) Heap-based buffer overflow in the StreamPredictor function in Xpdf 3.01 allows remote attackers to execute arbitrary code via a PDF file with an out-of-range numComps (number of components) field. (CVE-2005-3192) Heap-based buffer overflow in the JPXStream::readCodestream function in the JPX stream parsing code (JPXStream.c) for xpdf 3.01 and earlier allows user-complicit attackers to cause a denial of service (heap corruption) and possibly execute arbitrary code via a crafted PDF file with large size values that cause insufficient memory to be allocated. (CVE-2005-3193) An additional patch re-addresses memory allocation routines in goo/gmem.c (Martin Pitt/Canonical, Dirk Mueller/KDE). In addition, Chris Evans discovered several other vulnerabilities in the xpdf code base : Out-of-bounds heap accesses with large or negative parameters to
    last seen2020-06-01
    modified2020-06-02
    plugin id20476
    published2006-01-15
    reporterThis script is Copyright (C) 2006-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/20476
    titleMandrake Linux Security Advisory : cups (MDKSA-2006:010)
  • NASL familyDebian Local Security Checks
    NASL idDEBIAN_DSA-931.NASL
    description'infamous41md
    last seen2020-06-01
    modified2020-06-02
    plugin id22797
    published2006-10-14
    reporterThis script is Copyright (C) 2006-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/22797
    titleDebian DSA-931-1 : xpdf - buffer overflows
  • NASL familyDebian Local Security Checks
    NASL idDEBIAN_DSA-1008.NASL
    descriptionMarcelo Ricardo Leitner noticed that the current patch in DSA 932(CVE-2005-3627 ) for kpdf, the PDF viewer for KDE, does not fix all buffer overflows, still allowing an attacker to execute arbitrary code.
    last seen2020-06-01
    modified2020-06-02
    plugin id22550
    published2006-10-14
    reporterThis script is Copyright (C) 2006-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/22550
    titleDebian DSA-1008-1 : kdegraphics - buffer overflow
  • NASL familyFedora Local Security Checks
    NASL idFEDORA_2005-025.NASL
    description - CVE-2005-0001 Paul Starzetz from isec.pl found an exploitable hole in the x86 SMP page fault handler which could lead to privilege escalation. http://www.isec.pl/vulnerabilities/isec-0022-pagefault.t xt This update additionally fixes a random memory corruption issue present in the previous update, and in addition updates to the latest -ac collection of patches. A full changelog of the update vs the previous -ac8 based release is available at http://lkml.org/lkml/2005/1/13/219 Note that Tenable Network Security has extracted the preceding description block directly from the Fedora security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen2020-06-01
    modified2020-06-02
    plugin id16166
    published2005-01-14
    reporterThis script is Copyright (C) 2005-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/16166
    titleFedora Core 3 : kernel-2.6.10-1.741_FC3 (2005-025)
  • NASL familyDebian Local Security Checks
    NASL idDEBIAN_DSA-961.NASL
    description'infamous41md
    last seen2020-06-01
    modified2020-06-02
    plugin id22827
    published2006-10-14
    reporterThis script is Copyright (C) 2006-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/22827
    titleDebian DSA-961-1 : pdfkit.framework - buffer overflows
  • NASL familySlackware Local Security Checks
    NASL idSLACKWARE_SSA_2006-045-04.NASL
    descriptionNew kdegraphics packages are available for Slackware 10.0, 10.1, 10.2, and -current to fix security issues with kpdf.
    last seen2020-06-01
    modified2020-06-02
    plugin id20915
    published2006-02-15
    reporterThis script is Copyright (C) 2006-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/20915
    titleSlackware 10.0 / 10.1 / 10.2 / current : kdegraphics (SSA:2006-045-04)
  • NASL familyFedora Local Security Checks
    NASL idFEDORA_2006-028.NASL
    descriptionSeveral flaws were discovered in the way teTeX processes PDF files. An attacker could construct a carefully crafted PDF file that could cause poppler to crash or possibly execute arbitrary code when opened. The Common Vulnerabilities and Exposures project assigned the names CVE-2005-3625, CVE-2005-3626, and CVE-2005-3627 to these issues. This package also updates bindings in texdoc and causes the local texmf tree to be searched first. Note that Tenable Network Security has extracted the preceding description block directly from the Fedora security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen2020-06-01
    modified2020-06-02
    plugin id20409
    published2006-01-15
    reporterThis script is Copyright (C) 2006-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/20409
    titleFedora Core 4 : tetex-3.0-9.FC4 (2006-028)
  • NASL familyFedora Local Security Checks
    NASL idFEDORA_2006-010.NASL
    descriptionThis update fixes the pdftops filter
    last seen2020-06-01
    modified2020-06-02
    plugin id62262
    published2012-09-24
    reporterThis script is Copyright (C) 2012-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/62262
    titleFedora Core 4 : cups-1.1.23-15.3 (2006-010)
  • NASL familyFedora Local Security Checks
    NASL idFEDORA_2005-026.NASL
    description - CVE-2005-0001 Paul Starzetz from isec.pl found an exploitable hole in the x86 SMP page fault handler which could lead to privilege escalation. http://www.isec.pl/vulnerabilities/isec-0022-pagefault.t xt This update additionally fixes a random memory corruption issue present in the previous update, and in addition updates to the latest -ac collection of patches. A full changelog of the update vs the previous -ac8 based release is available at http://lkml.org/lkml/2005/1/13/219 Note that Tenable Network Security has extracted the preceding description block directly from the Fedora security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen2020-06-01
    modified2020-06-02
    plugin id16167
    published2005-01-14
    reporterThis script is Copyright (C) 2005-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/16167
    titleFedora Core 2 : kernel-2.6.10-1.9_FC2 (2005-026)
  • NASL familyDebian Local Security Checks
    NASL idDEBIAN_DSA-937.NASL
    description'infamous41md
    last seen2020-06-01
    modified2020-06-02
    plugin id22803
    published2006-10-14
    reporterThis script is Copyright (C) 2006-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/22803
    titleDebian DSA-937-1 : tetex-bin - buffer overflows
  • NASL familyFedora Local Security Checks
    NASL idFEDORA_2006-011.NASL
    descriptionThis update fixes the pdftops filter
    last seen2020-06-01
    modified2020-06-02
    plugin id62263
    published2012-09-24
    reporterThis script is Copyright (C) 2012-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/62263
    titleFedora Core 3 : cups-1.1.22-0.rc1.8.9 (2006-011)
  • NASL familyRed Hat Local Security Checks
    NASL idREDHAT-RHSA-2006-0163.NASL
    descriptionUpdated CUPS packages that fix multiple security issues are now available for Red Hat Enterprise Linux. This update has been rated as having important security impact by the Red Hat Security Response Team. The Common UNIX Printing System (CUPS) provides a portable printing layer for UNIX(R) operating systems. Chris Evans discovered several flaws in the way CUPS processes PDF files. An attacker could construct a carefully crafted PDF file that could cause CUPS to crash or possibly execute arbitrary code when opened. The Common Vulnerabilities and Exposures project assigned the names CVE-2005-3624, CVE-2005-3625, CVE-2005-3626, and CVE-2005-3627 to these issues. All users of CUPS should upgrade to these updated packages, which contain backported patches to resolve these issues.
    last seen2020-06-01
    modified2020-06-02
    plugin id20481
    published2006-01-15
    reporterThis script is Copyright (C) 2006-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/20481
    titleRHEL 3 / 4 : cups (RHSA-2006:0163)
  • NASL familyGentoo Local Security Checks
    NASL idGENTOO_GLSA-200601-02.NASL
    descriptionThe remote host is affected by the vulnerability described in GLSA-200601-02 (KPdf, KWord: Multiple overflows in included Xpdf code) KPdf and KWord both include Xpdf code to handle PDF files. This Xpdf code is vulnerable to several heap overflows (GLSA 200512-08) as well as several buffer and integer overflows discovered by Chris Evans (CESA-2005-003). Impact : An attacker could entice a user to open a specially crafted PDF file with Kpdf or KWord, potentially resulting in the execution of arbitrary code with the rights of the user running the affected application. Workaround : There is no known workaround at this time.
    last seen2020-06-01
    modified2020-06-02
    plugin id20412
    published2006-01-15
    reporterThis script is Copyright (C) 2006-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/20412
    titleGLSA-200601-02 : KPdf, KWord: Multiple overflows in included Xpdf code

Oval

accepted2013-04-29T04:03:22.745-04:00
classvulnerability
contributors
  • nameAharon Chernin
    organizationSCAP.com, LLC
  • nameDragos Prisaca
    organizationG2, Inc.
definition_extensions
  • commentThe operating system installed on the system is Red Hat Enterprise Linux 3
    ovaloval:org.mitre.oval:def:11782
  • commentCentOS Linux 3.x
    ovaloval:org.mitre.oval:def:16651
  • commentThe operating system installed on the system is Red Hat Enterprise Linux 4
    ovaloval:org.mitre.oval:def:11831
  • commentCentOS Linux 4.x
    ovaloval:org.mitre.oval:def:16636
  • commentOracle Linux 4.x
    ovaloval:org.mitre.oval:def:15990
descriptionStream.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.
familyunix
idoval:org.mitre.oval:def:10200
statusaccepted
submitted2010-07-09T03:56:16-04:00
titleStream.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.
version26

Redhat

advisories
  • bugzilla
    id176868
    titleCVE-2005-3624 Additional xpdf issues (CVE-2005-3625 CVE-2005-3626 CVE-2005-3627)
    oval
    OR
    • commentRed Hat Enterprise Linux must be installed
      ovaloval:com.redhat.rhba:tst:20070304026
    • AND
      • commentRed Hat Enterprise Linux 4 is installed
        ovaloval:com.redhat.rhba:tst:20070304025
      • OR
        • AND
          • commentcups-devel is earlier than 1:1.1.22-0.rc1.9.10
            ovaloval:com.redhat.rhsa:tst:20060163001
          • commentcups-devel is signed with Red Hat master key
            ovaloval:com.redhat.rhsa:tst:20060163002
        • AND
          • commentcups-libs is earlier than 1:1.1.22-0.rc1.9.10
            ovaloval:com.redhat.rhsa:tst:20060163003
          • commentcups-libs is signed with Red Hat master key
            ovaloval:com.redhat.rhsa:tst:20060163004
        • AND
          • commentcups is earlier than 1:1.1.22-0.rc1.9.10
            ovaloval:com.redhat.rhsa:tst:20060163005
          • commentcups is signed with Red Hat master key
            ovaloval:com.redhat.rhsa:tst:20060163006
    rhsa
    idRHSA-2006:0163
    released2006-01-11
    severityImportant
    titleRHSA-2006:0163: cups security update (Important)
  • bugzilla
    id176865
    title[RHEL4] CVE-2005-3624 Additional xpdf issues (CVE-2005-3625 CVE-2005-3626 CVE-2005-3627)
    oval
    OR
    • commentRed Hat Enterprise Linux must be installed
      ovaloval:com.redhat.rhba:tst:20070304026
    • AND
      • commentRed Hat Enterprise Linux 4 is installed
        ovaloval:com.redhat.rhba:tst:20070304025
      • commentgpdf is earlier than 0:2.8.2-7.4
        ovaloval:com.redhat.rhsa:tst:20060177001
      • commentgpdf is signed with Red Hat master key
        ovaloval:com.redhat.rhsa:tst:20060177002
    rhsa
    idRHSA-2006:0177
    released2006-01-11
    severityImportant
    titleRHSA-2006:0177: gpdf security update (Important)
  • rhsa
    idRHSA-2006:0160
rpms
  • xpdf-1:2.02-9.8
  • xpdf-1:3.00-11.10
  • xpdf-debuginfo-1:2.02-9.8
  • xpdf-debuginfo-1:3.00-11.10
  • kdegraphics-7:3.3.1-3.6
  • kdegraphics-debuginfo-7:3.3.1-3.6
  • kdegraphics-devel-7:3.3.1-3.6
  • tetex-0:1.0.7-67.9
  • tetex-0:2.0.2-22.EL4.7
  • tetex-afm-0:1.0.7-67.9
  • tetex-afm-0:2.0.2-22.EL4.7
  • tetex-debuginfo-0:1.0.7-67.9
  • tetex-debuginfo-0:2.0.2-22.EL4.7
  • tetex-doc-0:2.0.2-22.EL4.7
  • tetex-dvips-0:1.0.7-67.9
  • tetex-dvips-0:2.0.2-22.EL4.7
  • tetex-fonts-0:1.0.7-67.9
  • tetex-fonts-0:2.0.2-22.EL4.7
  • tetex-latex-0:1.0.7-67.9
  • tetex-latex-0:2.0.2-22.EL4.7
  • tetex-xdvi-0:1.0.7-67.9
  • tetex-xdvi-0:2.0.2-22.EL4.7
  • cups-1:1.1.17-13.3.36
  • cups-1:1.1.22-0.rc1.9.10
  • cups-debuginfo-1:1.1.17-13.3.36
  • cups-debuginfo-1:1.1.22-0.rc1.9.10
  • cups-devel-1:1.1.17-13.3.36
  • cups-devel-1:1.1.22-0.rc1.9.10
  • cups-libs-1:1.1.17-13.3.36
  • cups-libs-1:1.1.22-0.rc1.9.10
  • gpdf-0:2.8.2-7.4
  • gpdf-debuginfo-0:2.8.2-7.4

Seebug

bulletinFamilyexploit
description### Summary An exploitable heap overflow vulnerability exists in the image rendering functionality of Poppler-0.53.0. A specifically crafted PDF can cause an overly large number of color components during image rendering, resulting in heap corruption. An attacker controlled PDF file can be used to trigger this vulnerability. ### Tested Versions Poppler-0.53.0 ### Product URLs https://poppler.freedesktop.org/ ### CVSSv3 Score 7.5 - CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H ### CWE CWE-122: Heap-based Buffer Overflow ### Details Poppler is a shared library for displaying PDF files, used as middleware within different enterprise and opensource solutions alike (e.g. Gimp). It is forked off of XPDF, and is a complete implementation of the PDF ISO standard. The Poppler library, by default, uses a private implementation of reading and rendering images. There is a compilation option for libjpeg support, but the flag is not enabled by default. This private implementation contains assumptions about the JPEG file headers that can lead to heap corruption when broken. This vulnerability was formerly found (CVE-2005-3627) with a fix applied to DCTStream::readBaselineSOF, however the bug was not also fixed in the readProgressiveSOF function. A look at the two functions highlights the vulnerability: There should be a check for: `if (numComps <= 0 || numComps > 4) `at [0] ``` GBool DCTStream::readBaselineSOF() { int length; int prec; int i; int c; length = read16(); prec = str->getChar(); height = read16(); width = read16(); numComps = str->getChar(); if (numComps <= 0 || numComps > 4) { error(errSyntaxError, getPos(), "Bad number of components in DCT stream"); numComps = 0; return gFalse; if (prec != 8) { error(errSyntaxError, getPos(), "Bad DCT precision {0:d}", prec); return gFalse; //... GBool DCTStream::readProgressiveSOF() { int length; int prec; int i; int c; length = read16(); prec = str->getChar(); height = read16(); width = read16(); numComps = str->getChar(); // [0] if (prec != 8) { error(errSyntaxError, getPos(), "Bad DCT precision {0:d}", prec); return gFalse; ``` As there is no check on the numComps variable, the subsequent loop in `DCTStream::readProgressiveSOF` can then write past the intended bounds of compInfo[3], and into heap metadata ``` for (i = 0; i < numComps; ++i) { compInfo[i].id = str->getChar(); c = str->getChar(); compInfo[i].hSample = (c >> 4) & 0x0f; compInfo[i].vSample = c & 0x0f; compInfo[i].quantTable = str->getChar(); if (compInfo[i].hSample < 1 || compInfo[i].hSample > 4 || compInfo[i].vSample < 1 || compInfo[i].vSample > 4) { error(errSyntaxError, getPos(), "Bad DCT sampling factor"); return gFalse; if (compInfo[i].quantTable < 0 || compInfo[i].quantTable > 3) { error(errSyntaxError, getPos(), "Bad DCT quant table selector"); return gFalse; ``` ### Crash Information ``` RAX: 0x7f8c6dfbaf50 --> 0x7f8c6dcb2760 (:~DCTStream()>: 0x530030b6c9058b48) RBX: 0x142dd00 --> 0x1 RCX: 0x8 RDX: 0xffffffff RSI: 0x0 RDI: 0x142cf50 --> 0x7f8c6dfbaf50 --> 0x7f8c6dcb2760 (:~DCTStream()>: 0x530030b6c9058b48) RBP: 0x142de00 --> 0x100000001 RSP: 0x7ffce0c46010 --> 0x142e450 --> 0x7f8cfffffffd RIP: 0x7f8c6dcb15f8 (:close()+40>: 0xe808c383483b8b48) R8 : 0x3 R9 : 0x142c280 --> 0x142c660 --> 0x0 R10: 0x7f8c6d31bbe0 --> 0x0 R11: 0x1 R12: 0x142e100 --> 0x0 R13: 0x142e100 --> 0x0 R14: 0x142cf50 --> 0x7f8c6dfbaf50 --> 0x7f8c6dcb2760 (:~DCTStream()>: 0x530030b6c9058b48) R15: 0x0 EFLAGS: 0x246 (carry PARITY adjust ZERO sign trap INTERRUPT direction overflow) [-------------------------------------code-------------------------------------] 0x7f8c6dcb15e9 <DCTStream::close()+25>: mov r12,r13 0x7f8c6dcb15ec <DCTStream::close()+28>: lea rbp,[rbx+0x100] 0x7f8c6dcb15f3 <DCTStream::close()+35>: nop DWORD PTR [rax+rax*1+0x0] => 0x7f8c6dcb15f8 <DCTStream::close()+40>: mov rdi,QWORD PTR [rbx] 0x7f8c6dcb15fb <DCTStream::close()+43>: add rbx,0x8 0x7f8c6dcb15ff <DCTStream::close()+47>: call 0x7f8c6dbfd7a0 <gfree@plt> 0x7f8c6dcb1604 <DCTStream::close()+52>: mov QWORD PTR [rbx-0x8],0x0 0x7f8c6dcb160c <DCTStream::close()+60>: cmp rbx,rbp [------------------------------------stack-------------------------------------] 0000| 0x7ffce0c46010 --> 0x142e450 --> 0x7f8cfffffffd 0008| 0x7ffce0c46018 --> 0x0 0016| 0x7ffce0c46020 --> 0x142e468 --> 0x8 0024| 0x7ffce0c46028 --> 0x1 0032| 0x7ffce0c46030 --> 0x0 0040| 0x7ffce0c46038 --> 0x7f8c6dc9bdf7 (:getChar(bool)+55>: 0xfff650e1e8e7894c) 0048| 0x7ffce0c46040 --> 0x142e450 --> 0x7f8cfffffffd 0056| 0x7ffce0c46048 --> 0x1429d98 --> 0xd ('\r') [------------------------------------------------------------------------------] Legend: code, data, rodata, value ``` ### Timeline * 2017-05-17 - Vendor Disclosure * 2017-07-07 - Public Release ### CREDIT * Discovered by Lilith Wyatt of Cisco Talos.
idSSV:96476
last seen2017-11-19
modified2017-09-14
published2017-09-14
reporterRoot
titlePoppler PDF Image Display DCTStream::readProgressiveSOF() Code Execution Vulnerability(CVE-2017-2818)

Statements

contributorMark J Cox
lastmodified2007-03-14
organizationRed Hat
statementRed Hat Enterprise Linux 5 is not vulnerable to this issue as it contains a backported patch.

Talos

References