Vulnerabilities > CVE-2008-2950 - Code Injection vulnerability in Poppler
Attack vector
NETWORK Attack complexity
LOW Privileges required
NONE Confidentiality impact
PARTIAL Integrity impact
PARTIAL Availability impact
PARTIAL 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 | 1 |
Common Weakness Enumeration (CWE)
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
description | Poppler <= 0.8.4 libpoppler uninitialized pointer Code Execution PoC. CVE-2008-2950. Local exploit for linux platform |
file | exploits/linux/local/6032.py |
id | EDB-ID:6032 |
last seen | 2016-01-31 |
modified | 2008-07-08 |
platform | linux |
port | |
published | 2008-07-08 |
reporter | Felipe Andres Manzano |
source | https://www.exploit-db.com/download/6032/ |
title | Poppler <= 0.8.4 libpoppler uninitialized pointer Code Execution PoC |
type | local |
Nessus
NASL family Fedora Local Security Checks NASL id FEDORA_2008-7104.NASL description Security 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 seen 2020-06-01 modified 2020-06-02 plugin id 33847 published 2008-08-08 reporter This script is Copyright (C) 2008-2019 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/33847 title Fedora 8 : poppler-0.6.2-2.fc8 (2008-7104) NASL family FreeBSD Local Security Checks NASL id FREEBSD_PKG_BC20510F4DD411DD93E70211D880E350.NASL description Felipe 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 seen 2020-06-01 modified 2020-06-02 plugin id 33471 published 2008-07-10 reporter This script is Copyright (C) 2008-2019 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/33471 title FreeBSD : poppler -- uninitialized pointer (bc20510f-4dd4-11dd-93e7-0211d880e350) NASL family Fedora Local Security Checks NASL id FEDORA_2008-7012.NASL description Security 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 seen 2020-06-01 modified 2020-06-02 plugin id 34172 published 2008-09-12 reporter This script is Copyright (C) 2008-2019 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/34172 title Fedora 9 : poppler-0.8.1-2.fc9 (2008-7012) NASL family SuSE Local Security Checks NASL id SUSE_11_0_LIBPOPPLER-DEVEL-080703.NASL description This update fixes an code execution bug. (CVE-2008-2950) last seen 2020-06-01 modified 2020-06-02 plugin id 40041 published 2009-07-21 reporter This script is Copyright (C) 2009-2019 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/40041 title openSUSE Security Update : libpoppler-devel (libpoppler-devel-77) NASL family Mandriva Local Security Checks NASL id MANDRIVA_MDVSA-2008-146.NASL description A 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 seen 2020-06-01 modified 2020-06-02 plugin id 36531 published 2009-04-23 reporter This script is Copyright (C) 2009-2019 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/36531 title Mandriva Linux Security Advisory : poppler (MDVSA-2008:146) NASL family Gentoo Local Security Checks NASL id GENTOO_GLSA-200807-04.NASL description The 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 seen 2020-06-01 modified 2020-06-02 plugin id 33461 published 2008-07-10 reporter This script is Copyright (C) 2008-2019 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/33461 title GLSA-200807-04 : Poppler: User-assisted execution of arbitrary code NASL family Ubuntu Local Security Checks NASL id UBUNTU_USN-631-1.NASL description Felipe 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 seen 2020-06-01 modified 2020-06-02 plugin id 33760 published 2008-07-29 reporter Ubuntu Security Notice (C) 2008-2019 Canonical, Inc. / NASL script (C) 2018 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/33760 title Ubuntu 7.10 / 8.04 LTS : poppler vulnerability (USN-631-1)
Packetstorm
data source | https://packetstormsecurity.com/files/download/68074/poppler-poc.txt |
id | PACKETSTORM:68074 |
last seen | 2016-12-05 |
published | 2008-07-10 |
reporter | Felipe Andres Manzano |
source | https://packetstormsecurity.com/files/68074/poppler-poc.txt.html |
title | poppler-poc.txt |
Seebug
bulletinFamily | exploit |
description | BUGTRAQ 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> |
id | SSV:3570 |
last seen | 2017-11-19 |
modified | 2008-07-08 |
published | 2008-07-08 |
reporter | Root |
title | Poppler PDF渲染库页类远程代码执行漏洞 |
Statements
contributor | Mark J Cox |
lastmodified | 2008-07-08 |
organization | Red Hat |
statement | Not 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. |
References
- http://lists.opensuse.org/opensuse-security-announce/2008-07/msg00006.html
- http://secunia.com/advisories/30963
- http://secunia.com/advisories/31002
- http://secunia.com/advisories/31167
- http://secunia.com/advisories/31267
- http://secunia.com/advisories/31405
- http://security.gentoo.org/glsa/glsa-200807-04.xml
- http://securityreason.com/securityalert/3977
- http://wiki.rpath.com/Advisories:rPSA-2008-0223
- http://www.mandriva.com/security/advisories?name=MDVSA-2008:146
- http://www.ocert.org/advisories/ocert-2008-007.html
- http://www.securityfocus.com/archive/1/493980/100/0/threaded
- http://www.securityfocus.com/archive/1/494142/100/0/threaded
- http://www.securityfocus.com/bid/30107
- http://www.securitytracker.com/id?1020435
- http://www.ubuntu.com/usn/usn-631-1
- http://www.vupen.com/english/advisories/2008/2024/references
- https://exchange.xforce.ibmcloud.com/vulnerabilities/43619
- https://www.exploit-db.com/exploits/6032
- https://www.redhat.com/archives/fedora-package-announce/2008-August/msg00161.html