CVE-2015-8865
No known exploitation. EPSS puts it in the 92nd percentile. A vendor fix is available.
What to do
The vendor has published a fix. Version details are below where the sources state them.
Steps
Written by AI from the record- 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).
- 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).
- If you rely on PHP bundled with Apple software, update your macOS / OS X to at least 10.11.5 or newer.
- 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 recordThis 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.
- 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.4% chance of exploitation activity in the next 30 days, which ranks it in the 92nd percentile of scored CVEs.
Exploit Prediction Scoring System, FIRST.org. A probability, not a confirmation.
- Attention now
Rising.
Lifecycle
23 events over 3778 days, from the signal feeds we watch.
- EPSS band changemoderate → 0epss band change
- EPSS band change0 → moderateepss band change
- EPSS band changemoderate → 0epss band change
- EPSS band change0 → moderateepss band change
- EPSS band changemoderate → 0epss band change
- EPSS band changelow → moderate
Affected products
Technical detail
CVSS 3.0 vector
Open in the CVSS calculatorCVSS: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.
- Initial AccessT1190Exploit Public-Facing Applicationhigh confidence
- Privilege EscalationT1068Exploitation for Privilege Escalationhigh confidence
Sources
References in the record
- bugs.gw.com/view.php?id=522
- git.php.net/?p=php-src.git%3Ba=commit%3Bh=fe13566c93f118a15a96320a546c7878fd0cfc5e
- lists.apple.com/archives/security-announce/2016/May/msg00004.html
And 25 more references. See all after sign-in
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 Mac Os X, not every advisory.
A free account adds
- The full version matrix and every affected product
- Exploit links, proofs of concept and Metasploit modules
- Email alerts for the products you watch
- The same data over REST API, MCP and CLI