CVE-2015-8242: Software Security Vulnerability Vulnerability

MODERATE
Advisory Identifier: GHSA-f254-qfhg-6649
CWE-119
Published
Advisory Summary

CVE-2015-8242 is a MODERATE security vulnerability vulnerability (CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer) affecting Software libraries in the Maven ecosystem. The weakness occurs when the product performs operations on a memory buffer, but it reads from or writes to a memory location outside the buffer's intended boundary. this may result in read or write operations on unexpected memory locations that could be linked to other variables, data structures, or internal program data.. Remediation is available in the latest vendor maintenance releases.

CVE-2015-8242 at a Glance

CVE Identifier CVE-2015-8242
GHSA Identifier GHSA-f254-qfhg-6649
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer
Affected Product Software
Package Ecosystem Maven
Published Date
Last Updated

How to Fix CVE-2015-8242

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-2015-8242, 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-119: Improper Restriction of Operations within the Bounds of a Memory Buffer, where the product performs operations on a memory buffer, but it reads from or writes to a memory location outside the buffer's intended boundary. this may result in read or write operations on unexpected memory locations that could be linked to other variables, data structures, or internal program data. 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 xmlSAX2TextNode function in SAX2.c in the push interface in the HTML parser in libxml2 before 2.9.3 allows context-dependent attackers to cause a denial of service (stack-based buffer over-read and application crash) or obtain sensitive information via crafted XML data.

References

NVD — CVE-2015-8242 NVD
https://nvd.nist.gov/vuln/detail/CVE-2015-8242
bugzilla.gnome.org/show_bug.cgi WEB
https://bugzilla.gnome.org/show_bug.cgi?id=756372
bugzilla.redhat.com/show_bug.cgi WEB
https://bugzilla.redhat.com/show_bug.cgi?id=1281950
git.gnome.org/browse/libxml2/comm... WEB
https://git.gnome.org/browse/libxml2/commit/?id=8fb4a770075628d6441fb17a1e435100e2f3b1a2
h20566.www2.hpe.com/portal/site/hpsc/pu... WEB
https://h20566.www2.hpe.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c04944172
Software Security Information SECURITY
https://security.gentoo.org/glsa/201701-37
support.apple.com/ht206166 WEB
https://support.apple.com/HT206166
support.apple.com/ht206167 WEB
https://support.apple.com/HT206167
support.apple.com/ht206168 WEB
https://support.apple.com/HT206168
support.apple.com/ht206169 WEB
https://support.apple.com/HT206169
Software Security Information SECURITY
http://lists.apple.com/archives/security-announce/2016/Mar/msg00000.html
Software Security Information SECURITY
http://lists.apple.com/archives/security-announce/2016/Mar/msg00001.html
Software Security Information SECURITY
http://lists.apple.com/archives/security-announce/2016/Mar/msg00002.html
Software Security Information SECURITY
http://lists.apple.com/archives/security-announce/2016/Mar/msg00004.html
lists.opensuse.org/opensuse-updates/20... WEB
http://lists.opensuse.org/opensuse-updates/2015-12/msg00120.html
lists.opensuse.org/opensuse-updates/20... WEB
http://lists.opensuse.org/opensuse-updates/2016-01/msg00031.html
marc.info/ WEB
http://marc.info/?l=bugtraq&m=145382616617563&w=2
rhn.redhat.com/errata/rhsa-2015-25... WEB
http://rhn.redhat.com/errata/RHSA-2015-2549.html
rhn.redhat.com/errata/rhsa-2015-25... WEB
http://rhn.redhat.com/errata/RHSA-2015-2550.html
rhn.redhat.com/errata/rhsa-2016-10... WEB
http://rhn.redhat.com/errata/RHSA-2016-1089.html
Software Security Information SECURITY
http://www.openwall.com/lists/oss-security/2015/11/17/5
Software Security Information SECURITY
http://www.openwall.com/lists/oss-security/2015/11/18/23
Software Security Information SECURITY
http://www.oracle.com/technetwork/topics/security/bulletinjan2016-2867206.html
Software Security Information SECURITY
http://www.oracle.com/technetwork/topics/security/linuxbulletinoct2015-2719645.html
Software Security Information SECURITY
http://www.securityfocus.com/bid/77681
Software Security Information SECURITY
http://www.securitytracker.com/id/1034243
www.ubuntu.com/usn/usn-2834-1 WEB
http://www.ubuntu.com/usn/USN-2834-1
xmlsoft.org/news.html WEB
http://xmlsoft.org/news.html

Frequently Asked Questions

What is CVE-2015-8242?
CVE-2015-8242 is a security vulnerability in Software classified as a security vulnerability vulnerability under CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer.
Which Software versions are affected?
Affected versions include releases prior to current release patches.
What version fixes CVE-2015-8242?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
What CWE is associated with CVE-2015-8242?
CVE-2015-8242 is classified under CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer (The product performs operations on a memory buffer, but it reads from or writes to a memory location outside the buffer's intended boundary. This may result in read or write operations on unexpected memory locations that could be linked to other variables, data structures, or internal program data.).
How can I check Maven dependencies for CVE-2015-8242?
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-f254-qfhg-6649",
  "modified" : "2022-05-14T01:23:19Z",
  "published" : "2022-05-14T01:23:19Z",
  "aliases" : [ "CVE-2015-8242" ],
  "details" : "The xmlSAX2TextNode function in SAX2.c in the push interface in the HTML parser in libxml2 before 2.9.3 allows context-dependent attackers to cause a denial of service (stack-based buffer over-read and application crash) or obtain sensitive information via crafted XML data.",
  "severity" : [ ],
  "affected" : [ ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2015-8242"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.gnome.org/show_bug.cgi?id=756372"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=1281950"
  }, {
    "type" : "WEB",
    "url" : "https://git.gnome.org/browse/libxml2/commit/?id=8fb4a770075628d6441fb17a1e435100e2f3b1a2"
  }, {
    "type" : "WEB",
    "url" : "https://h20566.www2.hpe.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c04944172"
  }, {
    "type" : "WEB",
    "url" : "https://security.gentoo.org/glsa/201701-37"
  }, {
    "type" : "WEB",
    "url" : "https://support.apple.com/HT206166"
  }, {
    "type" : "WEB",
    "url" : "https://support.apple.com/HT206167"
  }, {
    "type" : "WEB",
    "url" : "https://support.apple.com/HT206168"
  }, {
    "type" : "WEB",
    "url" : "https://support.apple.com/HT206169"
  }, {
    "type" : "WEB",
    "url" : "http://lists.apple.com/archives/security-announce/2016/Mar/msg00000.html"
  }, {
    "type" : "WEB",
    "url" : "http://lists.apple.com/archives/security-announce/2016/Mar/msg00001.html"
  }, {
    "type" : "WEB",
    "url" : "http://lists.apple.com/archives/security-announce/2016/Mar/msg00002.html"
  }, {
    "type" : "WEB",
    "url" : "http://lists.apple.com/archives/security-announce/2016/Mar/msg00004.html"
  }, {
    "type" : "WEB",
    "url" : "http://lists.opensuse.org/opensuse-updates/2015-12/msg00120.html"
  }, {
    "type" : "WEB",
    "url" : "http://lists.opensuse.org/opensuse-updates/2016-01/msg00031.html"
  }, {
    "type" : "WEB",
    "url" : "http://marc.info/?l=bugtraq&m=145382616617563&w=2"
  }, {
    "type" : "WEB",
    "url" : "http://rhn.redhat.com/errata/RHSA-2015-2549.html"
  }, {
    "type" : "WEB",
    "url" : "http://rhn.redhat.com/errata/RHSA-2015-2550.html"
  }, {
    "type" : "WEB",
    "url" : "http://rhn.redhat.com/errata/RHSA-2016-1089.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2015/11/17/5"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2015/11/18/23"
  }, {
    "type" : "WEB",
    "url" : "http://www.oracle.com/technetwork/topics/security/bulletinjan2016-2867206.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.oracle.com/technetwork/topics/security/linuxbulletinoct2015-2719645.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.securityfocus.com/bid/77681"
  }, {
    "type" : "WEB",
    "url" : "http://www.securitytracker.com/id/1034243"
  }, {
    "type" : "WEB",
    "url" : "http://www.ubuntu.com/usn/USN-2834-1"
  }, {
    "type" : "WEB",
    "url" : "http://xmlsoft.org/news.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-119" ],
    "severity" : "MODERATE",
    "github_reviewed" : false,
    "github_reviewed_at" : null,
    "nvd_published_at" : "2015-12-15T21:59:00Z"
  }
}