CVE Tools

CVE-2015-8865

CVE-2015-8865 is a memory corruption in PHP (CVSS 7.3, High).

No known exploitation. EPSS puts it in the 94th percentile. A vendor fix is available.

Check it yourself

OpenVAS · 19 checks

e.g. OID 1.3.6.1.4.1.25623.1.0.120687

Run the check

Published Updated Sources: CVE.org, NVD, BDU

What to do

The vendor has published a fix. Version details are below where the sources state them.

  • PhpAffected: ≤ 5.5.33Upgrade to: after 5.5.33Stated by: NVD
  • Apple Mac Os XAffected: ≤ 10.11.4Upgrade to: after 10.11.4Stated by: NVD
  • Apple Inc. OS XAffected: before 10.11.3 inclusiveUpgrade to: not statedStated by: BDU

Versions as the sources state them. Full version matrix after sign-in

Steps

Written by AI from the record
  1. Check which PHP version your business is running and whether the Fileinfo functionality is used (for example, any app logic that inspects files using PHP’s fileinfo).
  2. If you are on PHP 5.5.34 or older, PHP 5.6.20 or older, or PHP 7.0.5 or older, plan an upgrade to at least PHP 5.5.34, 5.6.20, or 7.0.5 (or newer).
  3. If you rely on PHP bundled with Apple software, update your macOS / OS X to at least 10.11.5 or newer.
  4. After upgrading, test your file-type detection/inspection paths to ensure fileinfo still works and your app remains stable.

What it is

From the CVE record

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.

In plain language

Written by AI from the record

This PHP bug can make your server crash (and, rarely, potentially run unexpected code) if you use the PHP Fileinfo feature with a specially crafted “magic file”; most small businesses should update PHP to the fixed versions if you’re running vulnerable PHP.

In PHP’s Fileinfo component, CVE-2015-8865 is caused by a memory-handling flaw in the file_check_mem function (CWE-119), where mishandled continuation-level jumps in processing a crafted magic file can trigger a denial of service and, in some cases, lead to code execution—an attacker typically needs a path to influence what PHP processes.

If you're affected

  • Server crashes and downtime
  • Possible malicious code execution
  • Service disruption to customers
  • Incident response and cleanup costs

Exploitation

Where each signal puts this CVE on the scale from published to confirmed exploited.

EPSS94th
CISA KEV

Not in the catalog. CISA has not confirmed exploitation.

Public exploits

No public exploit or proof of concept found in the sources we track.

EPSS

5.5% chance of exploitation activity in the next 30 days, which ranks it in the 94th percentile of scored CVEs.

Exploit Prediction Scoring System, FIRST.org. A probability, not a confirmation.

Lifecycle

23 events over 3778 days, from the signal feeds we watch.

  1. EPSS band changemoderate → 0epss band change
  2. EPSS band change0 → moderateepss band change
  3. EPSS band changemoderate → 0epss band change
  4. EPSS band change0 → moderateepss band change
  5. EPSS band changemoderate → 0epss band change
  6. EPSS band changelow → moderate

Affected products

And 2 more affected products. See all after sign-in

Scale

How widely the affected products are used. This is not a count of vulnerable hosts.

Estimate Public sources, each figure dated. How much of it is already patched is not known.

PHP

Web
  • 69%of websites

    Among websites whose server-side programming language we know.

    W3Techs ↗ · as of 2 Nov 2026 · Medium confidence

Version split · W3Techs · as of 2 Nov 2026

  • 8.323%
  • 7.419%
  • 8.218%
  • 8.19.6%
  • 8.48.3%
  • 5.64.2%
  • Other listed18%

Technical detail

CVSS:3.0/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H

Scored 7.3 by NVD.

How it is reached

  • Attack Vector LocalRequires local access to the vulnerable system (e.g. local login, malicious file)
  • Attack Complexity LowNo special conditions — the attack can be reliably reproduced
  • Privileges Required LowRequires basic user-level privileges
  • User Interaction RequiredA user must click a link, open a file, or perform some action

Scope

  • Scope UnchangedImpact is limited to the vulnerable component itself

Impact if exploited

  • Confidentiality HighTotal information disclosure — all data in the component is compromised
  • Integrity HighTotal loss of integrity — attacker can modify any data in the component
  • Availability HighTotal denial of service — the component is completely unavailable

Weaknesses

ATT&CK techniques

Mapped from the weaknesses above (CWE to ATT&CK), not observed in attacks.

Sources

Questions about CVE-2015-8865

Is CVE-2015-8865 being exploited?
No exploitation is confirmed and no public exploit is known. EPSS puts the chance of exploitation in the next 30 days at 5.5%.
Which versions are affected by CVE-2015-8865?
PHP: ≤ 5.5.33. Mac OS X: ≤ 10.11.4. OS X: before 10.11.3 inclusive.
How do I fix or mitigate CVE-2015-8865?
The vendor has published a fix. The advisory is on lists.apple.com.

Last updated

Related articles

All articles

Watch the software you run.

My Stack ranks new CVEs for your products by real-world exploitation, so the next serious one reaches you without reading every advisory.

We'll flag the next CVE, public exploit or patch for PHP, not every advisory.