Vulnerabilities > CVE-2009-4035 - Code Injection vulnerability in multiple products
Attack vector
NETWORK Attack complexity
MEDIUM Privileges required
NONE Confidentiality impact
COMPLETE Integrity impact
COMPLETE Availability impact
COMPLETE Summary
The FoFiType1::parse function in fofi/FoFiType1.cc in Xpdf 3.0.0, gpdf 2.8.2, kpdf in kdegraphics 3.3.1, and possibly other libraries and versions, does not check the return value of the getNextLine function, which allows context-dependent attackers to execute arbitrary code via a PDF file with a crafted Type 1 font that can produce a negative value, leading to a signed-to-unsigned integer conversion error and a buffer overflow.
Vulnerable Configurations
Part | Description | Count |
---|---|---|
Application | 1 | |
Application | 2 | |
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.
Nessus
NASL family CentOS Local Security Checks NASL id CENTOS_RHSA-2009-1681.NASL description An updated gpdf package that fixes a security issue 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 viewer for Portable Document Format (PDF) files. Petr Gajdos and Christian Kornacker of SUSE reported a buffer overflow flaw in GPdf last seen 2020-06-01 modified 2020-06-02 plugin id 43358 published 2009-12-21 reporter This script is Copyright (C) 2009-2019 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/43358 title CentOS 4 : gpdf (CESA-2009:1681) NASL family SuSE Local Security Checks NASL id SUSE_11_2_LIBPOPPLER-DEVEL-100111.NASL description This update of libpoppler5 fixes various security issues. CVE-2009-0791: Fix multiple integer overflows in last seen 2020-06-01 modified 2020-06-02 plugin id 43856 published 2010-01-12 reporter This script is Copyright (C) 2010-2019 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/43856 title openSUSE Security Update : libpoppler-devel (libpoppler-devel-1735) NASL family SuSE Local Security Checks NASL id SUSE_POPPLER-6751.NASL description This update of poppler fixes two security issues : - Integer overflow in the ObjectStream::ObjectStream function in XRef.cc in Xpdf 3.x before 3.02pl4 and Poppler before 0.12.1, as used in GPdf, kdegraphics KPDF, CUPS pdftops, and teTeX, might allow remote attackers to execute arbitrary code via a crafted PDF document that triggers a heap-based buffer overflow. (CVE-2009-3608) - A indexing error in FoFiType1::parse() was fixed that could be used by attackers to corrupt memory and potentially execute code. (CVE-2009-4035) last seen 2020-06-01 modified 2020-06-02 plugin id 43621 published 2010-01-03 reporter This script is Copyright (C) 2010-2019 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/43621 title SuSE 10 Security Update : poppler (ZYPP Patch Number 6751) NASL family SuSE Local Security Checks NASL id SUSE_11_LIBPOPPLER-DEVEL-091221.NASL description This update of libpoppler4 fixes various security issues. - Fix multiple integer overflows in last seen 2020-06-01 modified 2020-06-02 plugin id 43620 published 2010-01-03 reporter This script is Copyright (C) 2010-2019 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/43620 title SuSE 11 Security Update : libpoppler (SAT Patch Number 1731) NASL family Red Hat Local Security Checks NASL id REDHAT-RHSA-2009-1682.NASL description Updated kdegraphics packages that fix a security issue are 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. The kdegraphics packages contain applications for the K Desktop Environment, including KPDF, a viewer for Portable Document Format (PDF) files. Petr Gajdos and Christian Kornacker of SUSE reported a buffer overflow flaw in KPDF last seen 2020-06-01 modified 2020-06-02 plugin id 43180 published 2009-12-17 reporter This script is Copyright (C) 2009-2019 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/43180 title RHEL 4 : kdegraphics (RHSA-2009:1682) NASL family SuSE Local Security Checks NASL id SUSE_POPPLER-6743.NASL description This update of poppler fixes two security issues : - Integer overflow in the ObjectStream::ObjectStream function in XRef.cc in Xpdf 3.x before 3.02pl4 and Poppler before 0.12.1, as used in GPdf, kdegraphics KPDF, CUPS pdftops, and teTeX, might allow remote attackers to execute arbitrary code via a crafted PDF document that triggers a heap-based buffer overflow. (CVE-2009-3608) - A indexing error in FoFiType1::parse() was fixed that could be used by attackers to corrupt memory and potentially execute code. (CVE-2009-4035) last seen 2020-06-01 modified 2020-06-02 plugin id 49916 published 2010-10-11 reporter This script is Copyright (C) 2010-2019 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/49916 title SuSE 10 Security Update : poppler (ZYPP Patch Number 6743) NASL family SuSE Local Security Checks NASL id SUSE_11_0_LIBPOPPLER-DEVEL-091223.NASL description This update of libpoppler3 fixes various security issues. CVE-2009-0791: Fix multiple integer overflows in last seen 2020-06-01 modified 2020-06-02 plugin id 43616 published 2010-01-03 reporter This script is Copyright (C) 2010-2019 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/43616 title openSUSE Security Update : libpoppler-devel (libpoppler-devel-1740) NASL family Red Hat Local Security Checks NASL id REDHAT-RHSA-2009-1680.NASL description An updated xpdf package that fixes a security issue 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. Xpdf is an X Window System based viewer for Portable Document Format (PDF) files. Petr Gajdos and Christian Kornacker of SUSE reported a buffer overflow flaw in Xpdf last seen 2020-06-01 modified 2020-06-02 plugin id 43178 published 2009-12-17 reporter This script is Copyright (C) 2009-2019 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/43178 title RHEL 4 : xpdf (RHSA-2009:1680) NASL family Oracle Linux Local Security Checks NASL id ORACLELINUX_ELSA-2009-1680.NASL description From Red Hat Security Advisory 2009:1680 : An updated xpdf package that fixes a security issue 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. Xpdf is an X Window System based viewer for Portable Document Format (PDF) files. Petr Gajdos and Christian Kornacker of SUSE reported a buffer overflow flaw in Xpdf last seen 2020-06-01 modified 2020-06-02 plugin id 67976 published 2013-07-12 reporter This script is Copyright (C) 2013-2019 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/67976 title Oracle Linux 4 : xpdf (ELSA-2009-1680) NASL family Gentoo Local Security Checks NASL id GENTOO_GLSA-201402-17.NASL description The remote host is affected by the vulnerability described in GLSA-201402-17 (Xpdf: User-assisted execution of arbitrary code) Multiple vulnerabilities have been discovered in Xpdf. Please review the CVE identifiers referenced below for details. Impact : A context-dependent attacker could execute arbitrary code or cause a Denial of Service condition. Workaround : There is no known workaround at this time. last seen 2020-06-01 modified 2020-06-02 plugin id 72549 published 2014-02-18 reporter This script is Copyright (C) 2014-2018 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/72549 title GLSA-201402-17 : Xpdf: User-assisted execution of arbitrary code NASL family CentOS Local Security Checks NASL id CENTOS_RHSA-2009-1680.NASL description An updated xpdf package that fixes a security issue 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. Xpdf is an X Window System based viewer for Portable Document Format (PDF) files. Petr Gajdos and Christian Kornacker of SUSE reported a buffer overflow flaw in Xpdf last seen 2020-06-01 modified 2020-06-02 plugin id 43357 published 2009-12-21 reporter This script is Copyright (C) 2009-2019 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/43357 title CentOS 4 : xpdf (CESA-2009:1680) NASL family Red Hat Local Security Checks NASL id REDHAT-RHSA-2009-1681.NASL description An updated gpdf package that fixes a security issue 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 viewer for Portable Document Format (PDF) files. Petr Gajdos and Christian Kornacker of SUSE reported a buffer overflow flaw in GPdf last seen 2020-06-01 modified 2020-06-02 plugin id 43179 published 2009-12-17 reporter This script is Copyright (C) 2009-2019 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/43179 title RHEL 4 : gpdf (RHSA-2009:1681) NASL family Oracle Linux Local Security Checks NASL id ORACLELINUX_ELSA-2009-1681.NASL description From Red Hat Security Advisory 2009:1681 : An updated gpdf package that fixes a security issue 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 viewer for Portable Document Format (PDF) files. Petr Gajdos and Christian Kornacker of SUSE reported a buffer overflow flaw in GPdf last seen 2020-06-01 modified 2020-06-02 plugin id 67977 published 2013-07-12 reporter This script is Copyright (C) 2013-2019 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/67977 title Oracle Linux 4 : gpdf (ELSA-2009-1681) NASL family CentOS Local Security Checks NASL id CENTOS_RHSA-2009-1682.NASL description Updated kdegraphics packages that fix a security issue are 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. The kdegraphics packages contain applications for the K Desktop Environment, including KPDF, a viewer for Portable Document Format (PDF) files. Petr Gajdos and Christian Kornacker of SUSE reported a buffer overflow flaw in KPDF last seen 2020-06-01 modified 2020-06-02 plugin id 43359 published 2009-12-21 reporter This script is Copyright (C) 2009-2019 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/43359 title CentOS 4 : kdegraphics (CESA-2009:1682) NASL family SuSE Local Security Checks NASL id SUSE_11_1_LIBPOPPLER-DEVEL-091222.NASL description This update of poppler fixes several security issues : This update of libpoppler4 fixes various security issues. CVE-2009-0791: Fix multiple integer overflows in last seen 2020-06-01 modified 2020-06-02 plugin id 43617 published 2010-01-03 reporter This script is Copyright (C) 2010-2019 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/43617 title openSUSE Security Update : libpoppler-devel (libpoppler-devel-1741) NASL family Scientific Linux Local Security Checks NASL id SL_20091216_XPDF_ON_SL4_X.NASL description Petr Gajdos and Christian Kornacker of SUSE reported a buffer overflow flaw in Xpdf last seen 2020-06-01 modified 2020-06-02 plugin id 60712 published 2012-08-01 reporter This script is Copyright (C) 2012-2019 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/60712 title Scientific Linux Security Update : xpdf on SL4.x i386/x86_64 NASL family Scientific Linux Local Security Checks NASL id SL_20091216_GPDF_ON_SL4_X.NASL description Petr Gajdos and Christian Kornacker of SUSE reported a buffer overflow flaw in GPdf last seen 2020-06-01 modified 2020-06-02 plugin id 60710 published 2012-08-01 reporter This script is Copyright (C) 2012-2019 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/60710 title Scientific Linux Security Update : gpdf on SL4.x i386/x86_64 NASL family Oracle Linux Local Security Checks NASL id ORACLELINUX_ELSA-2009-1682.NASL description From Red Hat Security Advisory 2009:1682 : Updated kdegraphics packages that fix a security issue are 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. The kdegraphics packages contain applications for the K Desktop Environment, including KPDF, a viewer for Portable Document Format (PDF) files. Petr Gajdos and Christian Kornacker of SUSE reported a buffer overflow flaw in KPDF last seen 2020-06-01 modified 2020-06-02 plugin id 67978 published 2013-07-12 reporter This script is Copyright (C) 2013-2019 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/67978 title Oracle Linux 4 : kdegraphics (ELSA-2009-1682) NASL family SuSE Local Security Checks NASL id SUSE_11_2_LIBPOPPLER-DEVEL-091222.NASL description This update of libpoppler5 fixes various security issues. CVE-2009-0791: Fix multiple integer overflows in last seen 2020-06-01 modified 2020-06-02 plugin id 43618 published 2010-01-03 reporter This script is Copyright (C) 2010-2019 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/43618 title SuSE 11.2 Security Update: libpoppler-devel (2009-12-22) NASL family Scientific Linux Local Security Checks NASL id SL_20091216_KDEGRAPHICS_ON_SL4_X.NASL description Petr Gajdos and Christian Kornacker of SUSE reported a buffer overflow flaw in KPDF last seen 2020-06-01 modified 2020-06-02 plugin id 60711 published 2012-08-01 reporter This script is Copyright (C) 2012-2019 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/60711 title Scientific Linux Security Update : kdegraphics on SL4.x i386/x86_64
Oval
accepted | 2013-04-29T04:10:34.427-04:00 | ||||||||||||
class | vulnerability | ||||||||||||
contributors |
| ||||||||||||
definition_extensions |
| ||||||||||||
description | The FoFiType1::parse function in fofi/FoFiType1.cc in Xpdf 3.0.0, gpdf 2.8.2, kpdf in kdegraphics 3.3.1, and possibly other libraries and versions, does not check the return value of the getNextLine function, which allows context-dependent attackers to execute arbitrary code via a PDF file with a crafted Type 1 font that can produce a negative value, leading to a signed-to-unsigned integer conversion error and a buffer overflow. | ||||||||||||
family | unix | ||||||||||||
id | oval:org.mitre.oval:def:10996 | ||||||||||||
status | accepted | ||||||||||||
submitted | 2010-07-09T03:56:16-04:00 | ||||||||||||
title | The FoFiType1::parse function in fofi/FoFiType1.cc in Xpdf 3.0.0, gpdf 2.8.2, kpdf in kdegraphics 3.3.1, and possibly other libraries and versions, does not check the return value of the getNextLine function, which allows context-dependent attackers to execute arbitrary code via a PDF file with a crafted Type 1 font that can produce a negative value, leading to a signed-to-unsigned integer conversion error and a buffer overflow. | ||||||||||||
version | 26 |
Redhat
advisories |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
rpms |
|
References
- http://cgit.freedesktop.org/poppler/poppler/diff/fofi/FoFiType1.cc?id=4b4fc5c0
- http://cgit.freedesktop.org/poppler/poppler/tree/fofi/FoFiType1.cc?id=4b4fc5c017bf147c9069bbce32fc14467bd2a81a
- http://lists.opensuse.org/opensuse-security-announce/2010-02/msg00003.html
- http://secunia.com/advisories/37641
- http://secunia.com/advisories/37781
- http://secunia.com/advisories/37787
- http://secunia.com/advisories/37793
- http://www.redhat.com/support/errata/RHSA-2009-1680.html
- http://www.redhat.com/support/errata/RHSA-2009-1681.html
- http://www.redhat.com/support/errata/RHSA-2009-1682.html
- http://www.securityfocus.com/bid/37350
- http://www.securitytracker.com/id?1023356
- http://www.vupen.com/english/advisories/2009/3555
- https://bugzilla.redhat.com/show_bug.cgi?id=541614
- https://exchange.xforce.ibmcloud.com/vulnerabilities/54831
- https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10996