CVE-2015-1472: Software Security Vulnerability Vulnerability

HIGH
Advisory Identifier: GHSA-7g3j-xr9q-w6cw
CWE-119
Published
Advisory Summary

CVE-2015-1472 is a HIGH 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-1472 at a Glance

CVE Identifier CVE-2015-1472
GHSA Identifier GHSA-7g3j-xr9q-w6cw
Severity HIGH
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-1472

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-1472, 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 ADDW macro in stdio-common/vfscanf.c in the GNU C Library (aka glibc or libc6) before 2.21 does not properly consider data-type size during memory allocation, which allows context-dependent attackers to cause a denial of service (buffer overflow) or possibly have unspecified other impact via a long line containing wide characters that are improperly handled in a wscanf call.

References

NVD — CVE-2015-1472 NVD
https://nvd.nist.gov/vuln/detail/CVE-2015-1472
seclists.org/bugtraq/2019/jun/14 WEB
https://seclists.org/bugtraq/2019/Jun/14
seclists.org/bugtraq/2019/sep/7 WEB
https://seclists.org/bugtraq/2019/Sep/7
Software Security Information SECURITY
https://security.gentoo.org/glsa/201602-02
sourceware.org/git/gitweb.cgi WEB
https://sourceware.org/git/gitweb.cgi?p=glibc.git%3Ba=commit%3Bh=5bd80bfe9ca0d955bfbbc002781bc7b01b6bcb06
sourceware.org/git/gitweb.cgi WEB
https://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=5bd80bfe9ca0d955bfbbc002781bc7b01b6bcb06
sourceware.org/ml/libc-alpha/2015-... WEB
https://sourceware.org/ml/libc-alpha/2015-02/msg00119.html
Software Security Information SECURITY
http://openwall.com/lists/oss-security/2015/02/04/1
Software Security Information SECURITY
http://packetstormsecurity.com/files/153278/WAGO-852-Industrial-Managed-Switch-Series-Code-Execution-Hardcoded-Credentials.html
Software Security Information SECURITY
http://packetstormsecurity.com/files/154361/Cisco-Device-Hardcoded-Credentials-GNU-glibc-BusyBox.html
seclists.org/fulldisclosure/2019... WEB
http://seclists.org/fulldisclosure/2019/Jun/18
seclists.org/fulldisclosure/2019... WEB
http://seclists.org/fulldisclosure/2019/Sep/7
Software Security Information SECURITY
http://www.oracle.com/technetwork/security-advisory/cpujan2018-3236628.html
Software Security Information SECURITY
http://www.oracle.com/technetwork/topics/security/linuxbulletinoct2015-2719645.html
Software Security Information SECURITY
http://www.securityfocus.com/bid/72428
www.ubuntu.com/usn/usn-2519-1 WEB
http://www.ubuntu.com/usn/USN-2519-1

Frequently Asked Questions

What is CVE-2015-1472?
CVE-2015-1472 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-1472?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
What CWE is associated with CVE-2015-1472?
CVE-2015-1472 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-1472?
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-7g3j-xr9q-w6cw",
  "modified" : "2025-04-12T12:46:49Z",
  "published" : "2022-05-14T00:58:26Z",
  "aliases" : [ "CVE-2015-1472" ],
  "details" : "The ADDW macro in stdio-common/vfscanf.c in the GNU C Library (aka glibc or libc6) before 2.21 does not properly consider data-type size during memory allocation, which allows context-dependent attackers to cause a denial of service (buffer overflow) or possibly have unspecified other impact via a long line containing wide characters that are improperly handled in a wscanf call.",
  "severity" : [ ],
  "affected" : [ ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2015-1472"
  }, {
    "type" : "WEB",
    "url" : "https://seclists.org/bugtraq/2019/Jun/14"
  }, {
    "type" : "WEB",
    "url" : "https://seclists.org/bugtraq/2019/Sep/7"
  }, {
    "type" : "WEB",
    "url" : "https://security.gentoo.org/glsa/201602-02"
  }, {
    "type" : "WEB",
    "url" : "https://sourceware.org/git/gitweb.cgi?p=glibc.git%3Ba=commit%3Bh=5bd80bfe9ca0d955bfbbc002781bc7b01b6bcb06"
  }, {
    "type" : "WEB",
    "url" : "https://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=5bd80bfe9ca0d955bfbbc002781bc7b01b6bcb06"
  }, {
    "type" : "WEB",
    "url" : "https://sourceware.org/ml/libc-alpha/2015-02/msg00119.html"
  }, {
    "type" : "WEB",
    "url" : "http://openwall.com/lists/oss-security/2015/02/04/1"
  }, {
    "type" : "WEB",
    "url" : "http://packetstormsecurity.com/files/153278/WAGO-852-Industrial-Managed-Switch-Series-Code-Execution-Hardcoded-Credentials.html"
  }, {
    "type" : "WEB",
    "url" : "http://packetstormsecurity.com/files/154361/Cisco-Device-Hardcoded-Credentials-GNU-glibc-BusyBox.html"
  }, {
    "type" : "WEB",
    "url" : "http://seclists.org/fulldisclosure/2019/Jun/18"
  }, {
    "type" : "WEB",
    "url" : "http://seclists.org/fulldisclosure/2019/Sep/7"
  }, {
    "type" : "WEB",
    "url" : "http://www.oracle.com/technetwork/security-advisory/cpujan2018-3236628.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.oracle.com/technetwork/topics/security/linuxbulletinoct2015-2719645.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.securityfocus.com/bid/72428"
  }, {
    "type" : "WEB",
    "url" : "http://www.ubuntu.com/usn/USN-2519-1"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-119" ],
    "severity" : "HIGH",
    "github_reviewed" : false,
    "github_reviewed_at" : null,
    "nvd_published_at" : "2015-04-08T10:59:00Z"
  }
}