Vulnerabilities > CVE-2008-2950 - Code Injection vulnerability in Poppler

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
poppler
CWE-94
nessus
exploit available

Summary

The Page destructor in Page.cc in libpoppler in Poppler 0.8.4 and earlier deletes a pageWidgets object even if it is not initialized by a Page constructor, which allows remote attackers to execute arbitrary code via a crafted PDF document.

Vulnerable Configurations

Part Description Count
Application
Poppler
1

Common Attack Pattern Enumeration and Classification (CAPEC)

  • Leverage Executable Code in Non-Executable Files
    An attack of this type exploits a system's trust in configuration and resource files, when the executable loads the resource (such as an image file or configuration file) the attacker has modified the file to either execute malicious code directly or manipulate the target process (e.g. application server) to execute based on the malicious configuration parameters. Since systems are increasingly interrelated mashing up resources from local and remote sources the possibility of this attack occurring is high. The attack can be directed at a client system, such as causing buffer overrun through loading seemingly benign image files, as in Microsoft Security Bulletin MS04-028 where specially crafted JPEG files could cause a buffer overrun once loaded into the browser. Another example targets clients reading pdf files. In this case the attacker simply appends javascript to the end of a legitimate url for a pdf (http://www.gnucitizen.org/blog/danger-danger-danger/) http://path/to/pdf/file.pdf#whatever_name_you_want=javascript:your_code_here The client assumes that they are reading a pdf, but the attacker has modified the resource and loaded executable javascript into the client's browser process. The attack can also target server processes. The attacker edits the resource or configuration file, for example a web.xml file used to configure security permissions for a J2EE app server, adding role name "public" grants all users with the public role the ability to use the administration functionality. The server trusts its configuration file to be correct, but when they are manipulated, the attacker gains full control.
  • Manipulating User-Controlled Variables
    This attack targets user controlled variables (DEBUG=1, PHP Globals, and So Forth). An attacker can override environment variables leveraging user-supplied, untrusted query variables directly used on the application server without any data sanitization. In extreme cases, the attacker can change variables controlling the business logic of the application. For instance, in languages like PHP, a number of poorly set default configurations may allow the user to override variables.

Exploit-Db

descriptionPoppler <= 0.8.4 libpoppler uninitialized pointer Code Execution PoC. CVE-2008-2950. Local exploit for linux platform
fileexploits/linux/local/6032.py
idEDB-ID:6032
last seen2016-01-31
modified2008-07-08
platformlinux
port
published2008-07-08
reporterFelipe Andres Manzano
sourcehttps://www.exploit-db.com/download/6032/
titlePoppler <= 0.8.4 libpoppler uninitialized pointer Code Execution PoC
typelocal

Nessus

  • NASL familyFedora Local Security Checks
    NASL idFEDORA_2008-7104.NASL
    descriptionSecurity fix: Add upstream patch for CVE-2008-2950 / oCERT-2008-007 - use of an uninitialized pointer to call free() in Page::~Page (#454277) http://www.ocert.org/advisories/ocert-2008-007.html 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 id33847
    published2008-08-08
    reporterThis script is Copyright (C) 2008-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/33847
    titleFedora 8 : poppler-0.6.2-2.fc8 (2008-7104)
  • NASL familyFreeBSD Local Security Checks
    NASL idFREEBSD_PKG_BC20510F4DD411DD93E70211D880E350.NASL
    descriptionFelipe Andres Manzano reports : The libpoppler pdf rendering library, can free uninitialized pointers, leading to arbitrary code execution. This vulnerability results from memory management bugs in the Page class constructor/destructor.
    last seen2020-06-01
    modified2020-06-02
    plugin id33471
    published2008-07-10
    reporterThis script is Copyright (C) 2008-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/33471
    titleFreeBSD : poppler -- uninitialized pointer (bc20510f-4dd4-11dd-93e7-0211d880e350)
  • NASL familyFedora Local Security Checks
    NASL idFEDORA_2008-7012.NASL
    descriptionSecurity fix: Add upstream patch for CVE-2008-2950 / oCERT-2008-007 - use of an uninitialized pointer to call free() in Page::~Page (#454277) http://www.ocert.org/advisories/ocert-2008-007.html Bug fixes: Fix crash when reading QuadPoints (#448516) Use static FT_Library in CairoOutputDev, as dynamic may trigger use-after-free and crash e.g. evince (#456867) 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 id34172
    published2008-09-12
    reporterThis script is Copyright (C) 2008-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/34172
    titleFedora 9 : poppler-0.8.1-2.fc9 (2008-7012)
  • NASL familySuSE Local Security Checks
    NASL idSUSE_11_0_LIBPOPPLER-DEVEL-080703.NASL
    descriptionThis update fixes an code execution bug. (CVE-2008-2950)
    last seen2020-06-01
    modified2020-06-02
    plugin id40041
    published2009-07-21
    reporterThis script is Copyright (C) 2009-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/40041
    titleopenSUSE Security Update : libpoppler-devel (libpoppler-devel-77)
  • NASL familyMandriva Local Security Checks
    NASL idMANDRIVA_MDVSA-2008-146.NASL
    descriptionA memory management issue was found in libpoppler by Felipe Andres Manzano that could allow for the execution of arbitrary code with the privileges of the user running a poppler-based application, if they opened a specially crafted PDF file (CVE-2008-2950). The updated packages have been patched to correct this issue.
    last seen2020-06-01
    modified2020-06-02
    plugin id36531
    published2009-04-23
    reporterThis script is Copyright (C) 2009-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/36531
    titleMandriva Linux Security Advisory : poppler (MDVSA-2008:146)
  • NASL familyGentoo Local Security Checks
    NASL idGENTOO_GLSA-200807-04.NASL
    descriptionThe remote host is affected by the vulnerability described in GLSA-200807-04 (Poppler: User-assisted execution of arbitrary code) Felipe Andres Manzano reported a memory management issue in the Page class constructor/destructor. Impact : A remote attacker could entice a user to open a specially crafted PDF file with a Poppler-based PDF viewer such as Gentoo
    last seen2020-06-01
    modified2020-06-02
    plugin id33461
    published2008-07-10
    reporterThis script is Copyright (C) 2008-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/33461
    titleGLSA-200807-04 : Poppler: User-assisted execution of arbitrary code
  • NASL familyUbuntu Local Security Checks
    NASL idUBUNTU_USN-631-1.NASL
    descriptionFelipe Andres Manzano discovered that poppler did not correctly initialize certain page widgets. If a user were tricked into viewing a malicious PDF file, a remote attacker could exploit this to crash applications linked against poppler, leading to a denial of service. 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 id33760
    published2008-07-29
    reporterUbuntu Security Notice (C) 2008-2019 Canonical, Inc. / NASL script (C) 2018 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/33760
    titleUbuntu 7.10 / 8.04 LTS : poppler vulnerability (USN-631-1)

Packetstorm

data sourcehttps://packetstormsecurity.com/files/download/68074/poppler-poc.txt
idPACKETSTORM:68074
last seen2016-12-05
published2008-07-10
reporterFelipe Andres Manzano
sourcehttps://packetstormsecurity.com/files/68074/poppler-poc.txt.html
titlepoppler-poc.txt

Seebug

bulletinFamilyexploit
descriptionBUGTRAQ ID: 30107 CVE ID:CVE-2008-2950 CNCVE ID:CNCVE-20082950 Poppler是一款PDF渲染库。 Poppler PDF渲染库存在一个内存管理错误,远程攻击者可以利用漏洞以应用程序权限执行任意代码。 漏洞存在于页类构造/解构中,在特定条件下pageWidgets对象在页构造中不正确初始化,并在之后解构过程中没有检查是否初始化而直接删除,特殊构建的PDF文件可导致分配任意内存而触发此漏洞。可能导致以应用程序权限执行任意代码。 poppler 0.8.4 升级到最新版本: <a href=http://poppler.freedesktop.org/ target=_blank>http://poppler.freedesktop.org/</a>
idSSV:3570
last seen2017-11-19
modified2008-07-08
published2008-07-08
reporterRoot
titlePoppler PDF渲染库页类远程代码执行漏洞

Statements

contributorMark J Cox
lastmodified2008-07-08
organizationRed Hat
statementNot vulnerable. This issue did not affect the versions of poppler as shipped with Red Hat Enterprise Linux 5, or other PDF parsing applications derived from the xpdf code as shipped in Red Hat Enterprise Linux 2.1, 3, 4, or 5.