CVE-2012-4540: Software Security Vulnerability Vulnerability

MODERATE
Advisory Identifier: GHSA-44v2-cg42-mx34
Published
Advisory Summary

CVE-2012-4540 is a MODERATE security vulnerability vulnerability (General Security Weakness) affecting Software libraries in the Maven ecosystem. Remediation is available in the latest vendor maintenance releases.

CVE-2012-4540 at a Glance

CVE Identifier CVE-2012-4540
GHSA Identifier GHSA-44v2-cg42-mx34
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product Software
Package Ecosystem Maven
Published Date
Last Updated

How to Fix CVE-2012-4540

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-2012-4540, 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 General Security Weakness. 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

Off-by-one error in the invoke function in IcedTeaScriptablePluginObject.cc in IcedTea-Web 1.1.x before 1.1.7, 1.2.x before 1.2.2, 1.3.x before 1.3.1, and 1.4.x before 1.4.1 allows remote attackers to obtain sensitive information, cause a denial of service (crash), or possibly execute arbitrary code via a crafted webpage that triggers a heap-based buffer overflow, related to an error message and a "triggering event attached to applet." NOTE: the 1.4.x versions were originally associated with CVE-2013-4349, but that entry has been MERGED with this one.

References

NVD — CVE-2012-4540 NVD
https://nvd.nist.gov/vuln/detail/CVE-2012-4540
bugzilla.redhat.com/show_bug.cgi WEB
https://bugzilla.redhat.com/show_bug.cgi?id=1007960
bugzilla.redhat.com/show_bug.cgi WEB
https://bugzilla.redhat.com/show_bug.cgi?id=869040
exchange.xforce.ibmcloud.com/vulnerabilities/798... WEB
https://exchange.xforce.ibmcloud.com/vulnerabilities/79894
icedtea.classpath.org/hg/release/icedtea-... WEB
http://icedtea.classpath.org/hg/release/icedtea-web-1.1/file/d759ec560073/NEWS
icedtea.classpath.org/hg/release/icedtea-... WEB
http://icedtea.classpath.org/hg/release/icedtea-web-1.2/rev/596a718be03f
icedtea.classpath.org/hg/release/icedtea-... WEB
http://icedtea.classpath.org/hg/release/icedtea-web-1.3/rev/e7970f3da5fe
Software Security Information SECURITY
http://lists.opensuse.org/opensuse-security-announce/2015-09/msg00019.html
lists.opensuse.org/opensuse-updates/20... WEB
http://lists.opensuse.org/opensuse-updates/2012-11/msg00040.html
lists.opensuse.org/opensuse-updates/20... WEB
http://lists.opensuse.org/opensuse-updates/2013-01/msg00065.html
lists.opensuse.org/opensuse-updates/20... WEB
http://lists.opensuse.org/opensuse-updates/2013-09/msg00071.html
lists.opensuse.org/opensuse-updates/20... WEB
http://lists.opensuse.org/opensuse-updates/2013-09/msg00073.html
mail.openjdk.java.net/pipermail/distro-pk... WEB
http://mail.openjdk.java.net/pipermail/distro-pkg-dev/2012-November/020775.html
mail.openjdk.java.net/pipermail/distro-pk... WEB
http://mail.openjdk.java.net/pipermail/distro-pkg-dev/2013-September/024750.html
rhn.redhat.com/errata/rhsa-2012-14... WEB
http://rhn.redhat.com/errata/RHSA-2012-1434.html
secunia.com/advisories/51206 WEB
http://secunia.com/advisories/51206
secunia.com/advisories/51220 WEB
http://secunia.com/advisories/51220
secunia.com/advisories/51374 WEB
http://secunia.com/advisories/51374
Software Security Information SECURITY
http://security.gentoo.org/glsa/glsa-201406-32.xml
Software Security Information SECURITY
http://www.debian.org/security/2013/dsa-2768
Software Security Information SECURITY
http://www.mandriva.com/security/advisories?name=MDVSA-2012:171
Software Security Information SECURITY
http://www.openwall.com/lists/oss-security/2012/11/07/5
Software Security Information SECURITY
http://www.securityfocus.com/bid/56434
Software Security Information SECURITY
http://www.securityfocus.com/bid/62426
Software Security Information SECURITY
http://www.securitytracker.com/id?1027738
www.ubuntu.com/usn/usn-1625-1 WEB
http://www.ubuntu.com/usn/USN-1625-1

Frequently Asked Questions

What is CVE-2012-4540?
CVE-2012-4540 is a security vulnerability in Software classified as a security vulnerability vulnerability under General Security Weakness.
Which Software versions are affected?
Affected versions include releases prior to current release patches.
What version fixes CVE-2012-4540?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
What CWE is associated with CVE-2012-4540?
CVE-2012-4540 is classified under General Security Weakness.
How can I check Maven dependencies for CVE-2012-4540?
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-44v2-cg42-mx34",
  "modified" : "2022-05-14T02:05:10Z",
  "published" : "2022-05-14T02:05:10Z",
  "aliases" : [ "CVE-2012-4540" ],
  "details" : "Off-by-one error in the invoke function in IcedTeaScriptablePluginObject.cc in IcedTea-Web 1.1.x before 1.1.7, 1.2.x before 1.2.2, 1.3.x before 1.3.1, and 1.4.x before 1.4.1 allows remote attackers to obtain sensitive information, cause a denial of service (crash), or possibly execute arbitrary code via a crafted webpage that triggers a heap-based buffer overflow, related to an error message and a \"triggering event attached to applet.\" NOTE: the 1.4.x versions were originally associated with CVE-2013-4349, but that entry has been MERGED with this one.",
  "severity" : [ ],
  "affected" : [ ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2012-4540"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=1007960"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=869040"
  }, {
    "type" : "WEB",
    "url" : "https://exchange.xforce.ibmcloud.com/vulnerabilities/79894"
  }, {
    "type" : "WEB",
    "url" : "http://icedtea.classpath.org/hg/release/icedtea-web-1.1/file/d759ec560073/NEWS"
  }, {
    "type" : "WEB",
    "url" : "http://icedtea.classpath.org/hg/release/icedtea-web-1.2/rev/596a718be03f"
  }, {
    "type" : "WEB",
    "url" : "http://icedtea.classpath.org/hg/release/icedtea-web-1.3/rev/e7970f3da5fe"
  }, {
    "type" : "WEB",
    "url" : "http://lists.opensuse.org/opensuse-security-announce/2015-09/msg00019.html"
  }, {
    "type" : "WEB",
    "url" : "http://lists.opensuse.org/opensuse-updates/2012-11/msg00040.html"
  }, {
    "type" : "WEB",
    "url" : "http://lists.opensuse.org/opensuse-updates/2013-01/msg00065.html"
  }, {
    "type" : "WEB",
    "url" : "http://lists.opensuse.org/opensuse-updates/2013-09/msg00071.html"
  }, {
    "type" : "WEB",
    "url" : "http://lists.opensuse.org/opensuse-updates/2013-09/msg00073.html"
  }, {
    "type" : "WEB",
    "url" : "http://mail.openjdk.java.net/pipermail/distro-pkg-dev/2012-November/020775.html"
  }, {
    "type" : "WEB",
    "url" : "http://mail.openjdk.java.net/pipermail/distro-pkg-dev/2013-September/024750.html"
  }, {
    "type" : "WEB",
    "url" : "http://rhn.redhat.com/errata/RHSA-2012-1434.html"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/51206"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/51220"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/51374"
  }, {
    "type" : "WEB",
    "url" : "http://security.gentoo.org/glsa/glsa-201406-32.xml"
  }, {
    "type" : "WEB",
    "url" : "http://www.debian.org/security/2013/dsa-2768"
  }, {
    "type" : "WEB",
    "url" : "http://www.mandriva.com/security/advisories?name=MDVSA-2012:171"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2012/11/07/5"
  }, {
    "type" : "WEB",
    "url" : "http://www.securityfocus.com/bid/56434"
  }, {
    "type" : "WEB",
    "url" : "http://www.securityfocus.com/bid/62426"
  }, {
    "type" : "WEB",
    "url" : "http://www.securitytracker.com/id?1027738"
  }, {
    "type" : "WEB",
    "url" : "http://www.ubuntu.com/usn/USN-1625-1"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "MODERATE",
    "github_reviewed" : false,
    "github_reviewed_at" : null,
    "nvd_published_at" : "2012-11-11T13:00:00Z"
  }
}