CVE Tools

Description

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

AI Worth attention

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.

Executive summary

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 affected, business impact
Server crashes and downtimePossible malicious code executionService disruption to customersIncident response and cleanup costs

What to do now

  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.
Some work to apply

CVSS Vector Breakdown

AV:LAC:LPR:LUI:RS:UC:HI:HA:H
Exploitability
AV:LAttack Vector
Local
AC:LAttack Complexity
Low
PR:LPrivileges Required
Low
UI:RUser Interaction
Required
Scope
S:UScope
Unchanged
Impact
C:HConfidentiality
High
I:HIntegrity
High
A:HAvailability
High

Weaknesses

Affected Products

Apple Inc.
commercial·USaka apple, apple computer
php
oss-project·USaka pear, php language, pecl
PHP Group
oss-projectaka pear, php
PHPLibraryLibrary
OSS Libraries
and 1 more affected products View all →

Exploitability

Official Patch Available

Attack Graph

Products CVE Techniques Tactics

Click technique nodes for MITRE ATT&CK details · drag to pan · Ctrl/ + scroll to zoom, or go fullscreen.

MITRE ATT&CK

2 techniques
Initial Access
Privilege Escalation
View detailed technique mapping

References

and 25 more references View all →

Unlock Complete Vulnerability Intelligence

Get the full picture for CVE-2015-8865 and every CVE in our database. Create a free account — no credit card required.

Create Free Account
Plain-language analysis
Impact assessment and exploitation scenario in plain English
Attack graph visualization
Interactive attack path and kill chain mapping
Exploit details & PoC links
ExploitDB, Metasploit, GitHub PoCs with direct links
Nuclei scanner templates
Ready-to-use vulnerability scanner templates
Full remediation guide
Patch instructions, workarounds, and compliance impact
Interactive AI chat
Ask questions about this vulnerability in natural language
Related vulnerabilities
Semantically similar CVEs and attack patterns
REST API & MCP access
Integrate vulnerability data into your workflows