BreachSpiderVerified, not vibes

CVE-2016-5399 in Php

High 7.8 Public exploit reported

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.

CVSS 3.17.8
EPSS9.8%
EPSS percentile96th
FixSee advisory

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

VendorProductAffected 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

View Vendor Advisory →

Vendor PSIRT: [email protected]

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitReported · 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 IDCVE-2016-5399
BreachSpider IDBS-2017-GLOBAL-161138-H
CVSS vectorCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Published2017-04-21
Last modified2026-06-17
Weakness (CWE)
SourceNVD

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"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.