CVE-2009-1698: Software Security Vulnerability Vulnerability

HIGH
Advisory Identifier: GHSA-g539-5hv9-9m5x
CWE-94
Published
Advisory Summary

CVE-2009-1698 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-1698 at a Glance

CVE Identifier CVE-2009-1698
GHSA Identifier GHSA-g539-5hv9-9m5x
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-1698

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-1698, 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

WebKit in Apple Safari before 4.0, iPhone OS 1.0 through 2.2.1, and iPhone OS for iPod touch 1.1 through 2.2.1 does not initialize a pointer during handling of a Cascading Style Sheets (CSS) attr function call with a large numerical argument, which allows remote attackers to execute arbitrary code or cause a denial of service (memory corruption and application crash) via a crafted HTML document.

References

NVD — CVE-2009-1698 NVD
https://nvd.nist.gov/vuln/detail/CVE-2009-1698
Software Security Information SECURITY
https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A9484
www.redhat.com/archives/fedora-pac... WEB
https://www.redhat.com/archives/fedora-package-announce/2009-July/msg01177.html
www.redhat.com/archives/fedora-pac... WEB
https://www.redhat.com/archives/fedora-package-announce/2009-July/msg01196.html
www.redhat.com/archives/fedora-pac... WEB
https://www.redhat.com/archives/fedora-package-announce/2009-July/msg01199.html
www.redhat.com/archives/fedora-pac... WEB
https://www.redhat.com/archives/fedora-package-announce/2009-July/msg01200.html
blog.zoller.lu/2009/05/advisory-ap... WEB
http://blog.zoller.lu/2009/05/advisory-apple-safari-remote-code.html
Software Security Information SECURITY
http://lists.apple.com/archives/security-announce/2009/Jun/msg00005.html
Software Security Information SECURITY
http://lists.apple.com/archives/security-announce/2009/jun/msg00002.html
Software Security Information SECURITY
http://lists.opensuse.org/opensuse-security-announce/2011-01/msg00006.html
osvdb.org/55006 WEB
http://osvdb.org/55006
secunia.com/advisories/35379 WEB
http://secunia.com/advisories/35379
secunia.com/advisories/35588 WEB
http://secunia.com/advisories/35588
secunia.com/advisories/36057 WEB
http://secunia.com/advisories/36057
secunia.com/advisories/36062 WEB
http://secunia.com/advisories/36062
secunia.com/advisories/36790 WEB
http://secunia.com/advisories/36790
secunia.com/advisories/37746 WEB
http://secunia.com/advisories/37746
secunia.com/advisories/43068 WEB
http://secunia.com/advisories/43068
Software Security Information SECURITY
http://securitytracker.com/id?1022345
support.apple.com/kb/ht3613 WEB
http://support.apple.com/kb/HT3613
support.apple.com/kb/ht3639 WEB
http://support.apple.com/kb/HT3639
Software Security Information SECURITY
http://www.debian.org/security/2009/dsa-1950
Software Security Information SECURITY
http://www.mandriva.com/security/advisories?name=MDVSA-2009:330
www.redhat.com/support/errata/rhsa... WEB
http://www.redhat.com/support/errata/RHSA-2009-1128.html
Software Security Information SECURITY
http://www.securityfocus.com/archive/1/504173/100/0/threaded
Software Security Information SECURITY
http://www.securityfocus.com/archive/1/504295/100/0/threaded
Software Security Information SECURITY
http://www.securityfocus.com/bid/35260
Software Security Information SECURITY
http://www.securityfocus.com/bid/35318
www.ubuntu.com/usn/usn-822-1 WEB
http://www.ubuntu.com/usn/USN-822-1
www.ubuntu.com/usn/usn-836-1 WEB
http://www.ubuntu.com/usn/USN-836-1
www.ubuntu.com/usn/usn-857-1 WEB
http://www.ubuntu.com/usn/USN-857-1
www.vupen.com/english/advisories/... WEB
http://www.vupen.com/english/advisories/2009/1522
www.vupen.com/english/advisories/... WEB
http://www.vupen.com/english/advisories/2009/1621
www.vupen.com/english/advisories/... WEB
http://www.vupen.com/english/advisories/2011/0212
www.zerodayinitiative.com/advisories/zdi-09-0... WEB
http://www.zerodayinitiative.com/advisories/ZDI-09-032

Frequently Asked Questions

What is CVE-2009-1698?
CVE-2009-1698 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-1698?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
What CWE is associated with CVE-2009-1698?
CVE-2009-1698 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-1698?
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-g539-5hv9-9m5x",
  "modified" : "2025-04-09T04:10:43Z",
  "published" : "2022-05-02T03:27:34Z",
  "aliases" : [ "CVE-2009-1698" ],
  "details" : "WebKit in Apple Safari before 4.0, iPhone OS 1.0 through 2.2.1, and iPhone OS for iPod touch 1.1 through 2.2.1 does not initialize a pointer during handling of a Cascading Style Sheets (CSS) attr function call with a large numerical argument, which allows remote attackers to execute arbitrary code or cause a denial of service (memory corruption and application crash) via a crafted HTML document.",
  "severity" : [ ],
  "affected" : [ ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2009-1698"
  }, {
    "type" : "WEB",
    "url" : "https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A9484"
  }, {
    "type" : "WEB",
    "url" : "https://www.redhat.com/archives/fedora-package-announce/2009-July/msg01177.html"
  }, {
    "type" : "WEB",
    "url" : "https://www.redhat.com/archives/fedora-package-announce/2009-July/msg01196.html"
  }, {
    "type" : "WEB",
    "url" : "https://www.redhat.com/archives/fedora-package-announce/2009-July/msg01199.html"
  }, {
    "type" : "WEB",
    "url" : "https://www.redhat.com/archives/fedora-package-announce/2009-July/msg01200.html"
  }, {
    "type" : "WEB",
    "url" : "http://blog.zoller.lu/2009/05/advisory-apple-safari-remote-code.html"
  }, {
    "type" : "WEB",
    "url" : "http://lists.apple.com/archives/security-announce/2009/Jun/msg00005.html"
  }, {
    "type" : "WEB",
    "url" : "http://lists.apple.com/archives/security-announce/2009/jun/msg00002.html"
  }, {
    "type" : "WEB",
    "url" : "http://lists.opensuse.org/opensuse-security-announce/2011-01/msg00006.html"
  }, {
    "type" : "WEB",
    "url" : "http://osvdb.org/55006"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/35379"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/35588"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/36057"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/36062"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/36790"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/37746"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/43068"
  }, {
    "type" : "WEB",
    "url" : "http://securitytracker.com/id?1022345"
  }, {
    "type" : "WEB",
    "url" : "http://support.apple.com/kb/HT3613"
  }, {
    "type" : "WEB",
    "url" : "http://support.apple.com/kb/HT3639"
  }, {
    "type" : "WEB",
    "url" : "http://www.debian.org/security/2009/dsa-1950"
  }, {
    "type" : "WEB",
    "url" : "http://www.mandriva.com/security/advisories?name=MDVSA-2009:330"
  }, {
    "type" : "WEB",
    "url" : "http://www.redhat.com/support/errata/RHSA-2009-1128.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.securityfocus.com/archive/1/504173/100/0/threaded"
  }, {
    "type" : "WEB",
    "url" : "http://www.securityfocus.com/archive/1/504295/100/0/threaded"
  }, {
    "type" : "WEB",
    "url" : "http://www.securityfocus.com/bid/35260"
  }, {
    "type" : "WEB",
    "url" : "http://www.securityfocus.com/bid/35318"
  }, {
    "type" : "WEB",
    "url" : "http://www.ubuntu.com/usn/USN-822-1"
  }, {
    "type" : "WEB",
    "url" : "http://www.ubuntu.com/usn/USN-836-1"
  }, {
    "type" : "WEB",
    "url" : "http://www.ubuntu.com/usn/USN-857-1"
  }, {
    "type" : "WEB",
    "url" : "http://www.vupen.com/english/advisories/2009/1522"
  }, {
    "type" : "WEB",
    "url" : "http://www.vupen.com/english/advisories/2009/1621"
  }, {
    "type" : "WEB",
    "url" : "http://www.vupen.com/english/advisories/2011/0212"
  }, {
    "type" : "WEB",
    "url" : "http://www.zerodayinitiative.com/advisories/ZDI-09-032"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-94" ],
    "severity" : "HIGH",
    "github_reviewed" : false,
    "github_reviewed_at" : null,
    "nvd_published_at" : "2009-06-10T18:00:00Z"
  }
}