CVE-2015-8865: Software Security Vulnerability Vulnerability

HIGH
Advisory Identifier: GHSA-p546-wvpp-2wvf
CVSS 7.3
CWE-119
Published
Advisory Summary

CVE-2015-8865 is a HIGH (CVSS 7.3) 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-8865 at a Glance

CVE Identifier CVE-2015-8865
GHSA Identifier GHSA-p546-wvpp-2wvf
Severity HIGH
CVSS v3.1 Base Score 7.3
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

Security Impact

CVSS: 7.3

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H).

Attack Vector Local (AV:L)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2015-8865

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-8865, 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 file_check_mem function in funcs.c in file before 5.23, as used in the Fileinfo component in PHP before 5.5.34, 5.6.x before 5.6.20, and 7.x before 7.0.5, mishandles continuation-level jumps, which allows context-dependent attackers to cause a denial of service (buffer overflow and application crash) or possibly execute arbitrary code via a crafted magic file.

References

NVD — CVE-2015-8865 NVD
https://nvd.nist.gov/vuln/detail/CVE-2015-8865
Security Fix Commit FIX COMMIT
https://github.com/file/file/commit/6713ca45e7757297381f4b4cdb9cf5e624a9ad36
bugs.php.net/bug.php WEB
https://bugs.php.net/bug.php?id=71527
h20566.www2.hpe.com/portal/site/hpsc/pu... WEB
https://h20566.www2.hpe.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c05240731
Software Security Information SECURITY
https://security.gentoo.org/glsa/201611-22
Software Security Information SECURITY
https://security.gentoo.org/glsa/201701-42
support.apple.com/ht206567 WEB
https://support.apple.com/HT206567
usn.ubuntu.com/3686-1 WEB
https://usn.ubuntu.com/3686-1
usn.ubuntu.com/3686-2 WEB
https://usn.ubuntu.com/3686-2
bugs.gw.com/view.php WEB
http://bugs.gw.com/view.php?id=522
git.php.net/ WEB
http://git.php.net/?p=php-src.git%3Ba=commit%3Bh=fe13566c93f118a15a96320a546c7878fd0cfc5e
git.php.net/ WEB
http://git.php.net/?p=php-src.git;a=commit;h=fe13566c93f118a15a96320a546c7878fd0cfc5e
Software Security Information SECURITY
http://lists.apple.com/archives/security-announce/2016/May/msg00004.html
Software Security Information SECURITY
http://lists.opensuse.org/opensuse-security-announce/2016-04/msg00057.html
rhn.redhat.com/errata/rhsa-2016-27... WEB
http://rhn.redhat.com/errata/RHSA-2016-2750.html
Software Security Information SECURITY
http://www.debian.org/security/2016/dsa-3560
Software Security Information SECURITY
http://www.openwall.com/lists/oss-security/2016/04/24/1
www.php.net/changelog-5.php WEB
http://www.php.net/ChangeLog-5.php
www.php.net/changelog-7.php WEB
http://www.php.net/ChangeLog-7.php
Software Security Information SECURITY
http://www.securityfocus.com/bid/85802
www.ubuntu.com/usn/usn-2952-1 WEB
http://www.ubuntu.com/usn/USN-2952-1
www.ubuntu.com/usn/usn-2952-2 WEB
http://www.ubuntu.com/usn/USN-2952-2

Frequently Asked Questions

What is CVE-2015-8865?
CVE-2015-8865 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-8865?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
What is the CVSS score of CVE-2015-8865?
CVE-2015-8865 has a CVSS v3.1 base score of 7.3 (HIGH) with vector string CVSS:3.0/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2015-8865?
CVE-2015-8865 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-8865?
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-p546-wvpp-2wvf",
  "modified" : "2025-04-12T13:00:09Z",
  "published" : "2022-05-14T03:15:11Z",
  "aliases" : [ "CVE-2015-8865" ],
  "details" : "The file_check_mem function in funcs.c in file before 5.23, as used in the Fileinfo component in PHP before 5.5.34, 5.6.x before 5.6.20, and 7.x before 7.0.5, mishandles continuation-level jumps, which allows context-dependent attackers to cause a denial of service (buffer overflow and application crash) or possibly execute arbitrary code via a crafted magic file.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2015-8865"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/file/file/commit/6713ca45e7757297381f4b4cdb9cf5e624a9ad36"
  }, {
    "type" : "WEB",
    "url" : "https://bugs.php.net/bug.php?id=71527"
  }, {
    "type" : "WEB",
    "url" : "https://h20566.www2.hpe.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c05240731"
  }, {
    "type" : "WEB",
    "url" : "https://security.gentoo.org/glsa/201611-22"
  }, {
    "type" : "WEB",
    "url" : "https://security.gentoo.org/glsa/201701-42"
  }, {
    "type" : "WEB",
    "url" : "https://support.apple.com/HT206567"
  }, {
    "type" : "WEB",
    "url" : "https://usn.ubuntu.com/3686-1"
  }, {
    "type" : "WEB",
    "url" : "https://usn.ubuntu.com/3686-2"
  }, {
    "type" : "WEB",
    "url" : "http://bugs.gw.com/view.php?id=522"
  }, {
    "type" : "WEB",
    "url" : "http://git.php.net/?p=php-src.git%3Ba=commit%3Bh=fe13566c93f118a15a96320a546c7878fd0cfc5e"
  }, {
    "type" : "WEB",
    "url" : "http://git.php.net/?p=php-src.git;a=commit;h=fe13566c93f118a15a96320a546c7878fd0cfc5e"
  }, {
    "type" : "WEB",
    "url" : "http://lists.apple.com/archives/security-announce/2016/May/msg00004.html"
  }, {
    "type" : "WEB",
    "url" : "http://lists.opensuse.org/opensuse-security-announce/2016-04/msg00057.html"
  }, {
    "type" : "WEB",
    "url" : "http://rhn.redhat.com/errata/RHSA-2016-2750.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.debian.org/security/2016/dsa-3560"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2016/04/24/1"
  }, {
    "type" : "WEB",
    "url" : "http://www.php.net/ChangeLog-5.php"
  }, {
    "type" : "WEB",
    "url" : "http://www.php.net/ChangeLog-7.php"
  }, {
    "type" : "WEB",
    "url" : "http://www.securityfocus.com/bid/85802"
  }, {
    "type" : "WEB",
    "url" : "http://www.ubuntu.com/usn/USN-2952-1"
  }, {
    "type" : "WEB",
    "url" : "http://www.ubuntu.com/usn/USN-2952-2"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-119" ],
    "severity" : "HIGH",
    "github_reviewed" : false,
    "github_reviewed_at" : null,
    "nvd_published_at" : "2016-05-20T10:59:00Z"
  }
}