CVE-2012-4182: Software Security Vulnerability Vulnerability

HIGH
Advisory Identifier: GHSA-q6jg-67q9-f4hj
CWE-416
Published
Advisory Summary

CVE-2012-4182 is a HIGH security vulnerability vulnerability (CWE-416: Use After Free) affecting Software libraries in the Maven ecosystem. The weakness occurs when the product reuses or references memory after it has been freed. at some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. any operations using the original pointer are no longer valid because the memory "belongs" to the code that operates on the new pointer.. Remediation is available in the latest vendor maintenance releases.

CVE-2012-4182 at a Glance

CVE Identifier CVE-2012-4182
GHSA Identifier GHSA-q6jg-67q9-f4hj
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-416: Use After Free
Affected Product Software
Package Ecosystem Maven
Published Date
Last Updated

How to Fix CVE-2012-4182

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-4182, 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-416: Use After Free, where the product reuses or references memory after it has been freed. at some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. any operations using the original pointer are no longer valid because the memory "belongs" to the code that operates on the new pointer. 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

Use-after-free vulnerability in the nsTextEditRules::WillInsert function in Mozilla Firefox before 16.0, Firefox ESR 10.x before 10.0.8, Thunderbird before 16.0, Thunderbird ESR 10.x before 10.0.8, and SeaMonkey before 2.13 allows remote attackers to execute arbitrary code or cause a denial of service (heap memory corruption) via unspecified vectors.

References

NVD — CVE-2012-4182 NVD
https://nvd.nist.gov/vuln/detail/CVE-2012-4182
bugzilla.mozilla.org/show_bug.cgi WEB
https://bugzilla.mozilla.org/show_bug.cgi?id=788950
exchange.xforce.ibmcloud.com/vulnerabilities/791... WEB
https://exchange.xforce.ibmcloud.com/vulnerabilities/79160
Software Security Information SECURITY
https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A16191
Software Security Information SECURITY
http://lists.opensuse.org/opensuse-security-announce/2012-10/msg00010.html
rhn.redhat.com/errata/rhsa-2012-13... WEB
http://rhn.redhat.com/errata/RHSA-2012-1351.html
secunia.com/advisories/50856 WEB
http://secunia.com/advisories/50856
secunia.com/advisories/50892 WEB
http://secunia.com/advisories/50892
secunia.com/advisories/50904 WEB
http://secunia.com/advisories/50904
secunia.com/advisories/50935 WEB
http://secunia.com/advisories/50935
secunia.com/advisories/50936 WEB
http://secunia.com/advisories/50936
secunia.com/advisories/50984 WEB
http://secunia.com/advisories/50984
secunia.com/advisories/51181 WEB
http://secunia.com/advisories/51181
secunia.com/advisories/55318 WEB
http://secunia.com/advisories/55318
Software Security Information SECURITY
http://www.debian.org/security/2012/dsa-2565
Software Security Information SECURITY
http://www.debian.org/security/2012/dsa-2569
Software Security Information SECURITY
http://www.debian.org/security/2012/dsa-2572
Software Security Information SECURITY
http://www.mandriva.com/security/advisories?name=MDVSA-2012:163
Software Security Information SECURITY
http://www.mozilla.org/security/announce/2012/mfsa2012-85.html
www.ubuntu.com/usn/usn-1611-1 WEB
http://www.ubuntu.com/usn/USN-1611-1

Frequently Asked Questions

What is CVE-2012-4182?
CVE-2012-4182 is a security vulnerability in Software classified as a security vulnerability vulnerability under CWE-416: Use After Free.
Which Software versions are affected?
Affected versions include releases prior to current release patches.
What version fixes CVE-2012-4182?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
What CWE is associated with CVE-2012-4182?
CVE-2012-4182 is classified under CWE-416: Use After Free (The product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory "belongs" to the code that operates on the new pointer.).
How can I check Maven dependencies for CVE-2012-4182?
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-q6jg-67q9-f4hj",
  "modified" : "2022-05-13T01:23:41Z",
  "published" : "2022-05-13T01:23:41Z",
  "aliases" : [ "CVE-2012-4182" ],
  "details" : "Use-after-free vulnerability in the nsTextEditRules::WillInsert function in Mozilla Firefox before 16.0, Firefox ESR 10.x before 10.0.8, Thunderbird before 16.0, Thunderbird ESR 10.x before 10.0.8, and SeaMonkey before 2.13 allows remote attackers to execute arbitrary code or cause a denial of service (heap memory corruption) via unspecified vectors.",
  "severity" : [ ],
  "affected" : [ ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2012-4182"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.mozilla.org/show_bug.cgi?id=788950"
  }, {
    "type" : "WEB",
    "url" : "https://exchange.xforce.ibmcloud.com/vulnerabilities/79160"
  }, {
    "type" : "WEB",
    "url" : "https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A16191"
  }, {
    "type" : "WEB",
    "url" : "http://lists.opensuse.org/opensuse-security-announce/2012-10/msg00010.html"
  }, {
    "type" : "WEB",
    "url" : "http://rhn.redhat.com/errata/RHSA-2012-1351.html"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/50856"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/50892"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/50904"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/50935"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/50936"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/50984"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/51181"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/55318"
  }, {
    "type" : "WEB",
    "url" : "http://www.debian.org/security/2012/dsa-2565"
  }, {
    "type" : "WEB",
    "url" : "http://www.debian.org/security/2012/dsa-2569"
  }, {
    "type" : "WEB",
    "url" : "http://www.debian.org/security/2012/dsa-2572"
  }, {
    "type" : "WEB",
    "url" : "http://www.mandriva.com/security/advisories?name=MDVSA-2012:163"
  }, {
    "type" : "WEB",
    "url" : "http://www.mozilla.org/security/announce/2012/mfsa2012-85.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.ubuntu.com/usn/USN-1611-1"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-416" ],
    "severity" : "HIGH",
    "github_reviewed" : false,
    "github_reviewed_at" : null,
    "nvd_published_at" : "2012-10-10T17:55:00Z"
  }
}