CVE-2009-4035: Software Security Vulnerability Vulnerability

HIGH
Advisory Identifier: GHSA-9rm4-mjvc-4m49
CWE-94
Published
Advisory Summary

CVE-2009-4035 is a HIGH security vulnerability vulnerability (CWE-94: Improper Control of Generation of Code ('Code Injection')) affecting Software libraries in the Maven ecosystem. The weakness occurs when the product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.. Remediation is available in the latest vendor maintenance releases.

CVE-2009-4035 at a Glance

CVE Identifier CVE-2009-4035
GHSA Identifier GHSA-9rm4-mjvc-4m49
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-94: Improper Control of Generation of Code ('Code Injection')
Affected Product Software
Package Ecosystem Maven
Published Date
Last Updated

How to Fix CVE-2009-4035

To remediate this vulnerability, upgrade all affected Software dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2009-4035, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree

Analyze the terminal output to locate any version of Software in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.

Note: The mvn dependency:tree command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-94: Improper Control of Generation of Code ('Code Injection'), where the product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment. In Software, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

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.

References

NVD — CVE-2009-4035 NVD
https://nvd.nist.gov/vuln/detail/CVE-2009-4035
bugzilla.redhat.com/show_bug.cgi WEB
https://bugzilla.redhat.com/show_bug.cgi?id=541614
exchange.xforce.ibmcloud.com/vulnerabilities/548... WEB
https://exchange.xforce.ibmcloud.com/vulnerabilities/54831
Software Security Information SECURITY
https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10996
cgit.freedesktop.org/poppler/poppler/dif... WEB
http://cgit.freedesktop.org/poppler/poppler/diff/fofi/FoFiType1.cc?id=4b4fc5c0
cgit.freedesktop.org/poppler/poppler/tre... WEB
http://cgit.freedesktop.org/poppler/poppler/tree/fofi/FoFiType1.cc?id=4b4fc5c017bf147c9069bbce32fc14467bd2a81a
Software Security Information SECURITY
http://lists.opensuse.org/opensuse-security-announce/2010-02/msg00003.html
secunia.com/advisories/37641 WEB
http://secunia.com/advisories/37641
secunia.com/advisories/37781 WEB
http://secunia.com/advisories/37781
secunia.com/advisories/37787 WEB
http://secunia.com/advisories/37787
secunia.com/advisories/37793 WEB
http://secunia.com/advisories/37793
www.redhat.com/support/errata/rhsa... WEB
http://www.redhat.com/support/errata/RHSA-2009-1680.html
www.redhat.com/support/errata/rhsa... WEB
http://www.redhat.com/support/errata/RHSA-2009-1681.html
www.redhat.com/support/errata/rhsa... WEB
http://www.redhat.com/support/errata/RHSA-2009-1682.html
Software Security Information SECURITY
http://www.securityfocus.com/bid/37350
Software Security Information SECURITY
http://www.securitytracker.com/id?1023356
www.vupen.com/english/advisories/... WEB
http://www.vupen.com/english/advisories/2009/3555

Frequently Asked Questions

What is CVE-2009-4035?
CVE-2009-4035 is a security vulnerability in Software classified as a security vulnerability vulnerability under CWE-94: Improper Control of Generation of Code ('Code Injection').
Which Software versions are affected?
Affected versions include releases prior to current release patches.
What version fixes CVE-2009-4035?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
What CWE is associated with CVE-2009-4035?
CVE-2009-4035 is classified under CWE-94: Improper Control of Generation of Code ('Code Injection') (The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.).
How can I check Maven dependencies for CVE-2009-4035?
Run the dependency tree command: 'mvn dependency:tree'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-9rm4-mjvc-4m49",
  "modified" : "2022-05-02T03:50:59Z",
  "published" : "2022-05-02T03:50:59Z",
  "aliases" : [ "CVE-2009-4035" ],
  "details" : "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.",
  "severity" : [ ],
  "affected" : [ ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2009-4035"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=541614"
  }, {
    "type" : "WEB",
    "url" : "https://exchange.xforce.ibmcloud.com/vulnerabilities/54831"
  }, {
    "type" : "WEB",
    "url" : "https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10996"
  }, {
    "type" : "WEB",
    "url" : "http://cgit.freedesktop.org/poppler/poppler/diff/fofi/FoFiType1.cc?id=4b4fc5c0"
  }, {
    "type" : "WEB",
    "url" : "http://cgit.freedesktop.org/poppler/poppler/tree/fofi/FoFiType1.cc?id=4b4fc5c017bf147c9069bbce32fc14467bd2a81a"
  }, {
    "type" : "WEB",
    "url" : "http://lists.opensuse.org/opensuse-security-announce/2010-02/msg00003.html"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/37641"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/37781"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/37787"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/37793"
  }, {
    "type" : "WEB",
    "url" : "http://www.redhat.com/support/errata/RHSA-2009-1680.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.redhat.com/support/errata/RHSA-2009-1681.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.redhat.com/support/errata/RHSA-2009-1682.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.securityfocus.com/bid/37350"
  }, {
    "type" : "WEB",
    "url" : "http://www.securitytracker.com/id?1023356"
  }, {
    "type" : "WEB",
    "url" : "http://www.vupen.com/english/advisories/2009/3555"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-94" ],
    "severity" : "HIGH",
    "github_reviewed" : false,
    "github_reviewed_at" : null,
    "nvd_published_at" : "2009-12-21T21:30:00Z"
  }
}