CVE-2016-5399 in Php
The bzread function in ext/bz2/bz2.c in PHP before 5.5.38, 5.6.x before 5.6.24, and 7.x before 7.0.9 allows remote attackers to cause a denial of service (out-of-bounds write) or execute arbitrary code via a crafted bz2 archive.
Affects 1 product from 1 vendor. Facts below cite their sources.
Requires local access, low complexity, no authentication required, requires user interaction, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Php | Php | ≤ 5.5.37 ≥ 5.6.0, < 5.6.24 ≥ 7.0.0, < 7.0.9 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
Vendor PSIRT: [email protected]
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Reported · reference |
Official description
The bzread function in ext/bz2/bz2.c in PHP before 5.5.38, 5.6.x before 5.6.24, and 7.x before 7.0.9 allows remote attackers to cause a denial of service (out-of-bounds write) or execute arbitrary code via a crafted bz2 archive.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2016-5399 |
|---|---|
| BreachSpider ID | BS-2017-GLOBAL-161138-H |
| CVSS vector | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| Published | 2017-04-21 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-787: Out-of-Bounds Write
Software writes data past buffer boundaries, corrupting memory and potentially enabling code execution.
Analysis AI-written, not human-reviewed
A vulnerability in the bzread function of PHP versions prior to 5.5.38, 5.6.24, and 7.0.9 allows remote attackers to cause a denial of service or execute arbitrary code through a crafted bz2 archive.
The vulnerability is triggered by a crafted bz2 archive that can lead to an out-of-bounds write, potentially allowing an attacker to execute arbitrary code on the server running the affected PHP version.
Questions
What is CVE-2016-5399?
A vulnerability in the bzread function of PHP versions prior to 5.5.38, 5.6.24, and 7.0.9 allows remote attackers to cause a denial of service or execute arbitrary code through a crafted bz2 archive.
What is the CVSS score for CVE-2016-5399?
CVE-2016-5399 has CVSS 7.8 (High). Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H. EPSS: 9.8%.
Is CVE-2016-5399 actively exploited?
Public exploit available for CVE-2016-5399. Exploitation risk elevated.
How do I remediate CVE-2016-5399?
Priority: IMMEDIATE. Advisory: http://php.net/ChangeLog-5.php PSIRT: [email protected]
What systems are affected by CVE-2016-5399?
CVE-2016-5399 affects Php Php.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Php","product":"Php","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.