Am I affected?
CVE-2016-10712
In PHP before 5.5.32, 5.6.x before 5.6.18, and 7.x before 7.0.3, all of the return values of stream_get_meta_data can be controlled if the input can be controlled (e.g., during file uploads). For example, a "$uri = stream_get_meta_data(fopen($file, "r"))['uri']" call mishandles the case where $file is data:text/plain;uri=eviluri, -- in other words, metadata can be set by an attacker.
Not in the CISA KEV catalog as of the last sync. That means no confirmed exploitation is listed there, not that it is safe.
Exploit probability (FIRST EPSS): 2.25% chance of exploitation activity in the next 30 days (top 17% of all scored CVEs), scored 2026-11-23. EPSS is a likelihood estimate, not proof of attacks.
Check your PHP version
Fixed versions by branch
| Branch | Affected (NVD) | Fixed in |
|---|---|---|
| PHP 7.0 | 7.0.0 (including) to 7.0.2 (including) | not stated |
| PHP 5.6 | 5.6.0 (including) to 5.6.17 (including) | not stated |
| PHP 5.5 | PHP 5.5 only, before 5.5.31 (including that release) | not stated |
"Fixed in" is shown only when the source gives an exact upper bound. Any later patch in the same branch also has the fix. Linux distributions (Ubuntu, Debian, RHEL) often backport fixes without changing the PHP version number.
Related CVEs
Other PHP CVEs that NVD lists for the same branches.
- CVE-2018-19395 High 7.5 · PHP 7.0, 5.6, 5.5 · 2018-11-20
- CVE-2018-19396 High 7.5 · PHP 7.0, 5.6, 5.5 · 2018-11-20
- CVE-2016-5768 Critical 9.8 · PHP 7.0, 5.6, 5.5 · 2016-08-07
- CVE-2016-5769 Critical 9.8 · PHP 7.0, 5.6, 5.5 · 2016-08-07
- CVE-2016-5770 Critical 9.8 · PHP 7.0, 5.6, 5.5 · 2016-08-07
- CVE-2016-5771 Critical 9.8 · PHP 7.0, 5.6, 5.5 · 2016-08-07
Questions
- Which PHP versions are affected by CVE-2016-10712?
- NVD lists these affected ranges: 7.0.0 (including) to 7.0.2 (including); 5.6.0 (including) to 5.6.17 (including); PHP 5.5 only, before 5.5.31 (including that release).
- Which PHP version fixes CVE-2016-10712?
- NVD does not give an exact fixed release for CVE-2016-10712. Upgrade to the latest patch of a supported PHP branch and check the official advisory.
- Does a version check prove my server is safe from CVE-2016-10712?
- No. The SAPI, web server, operating system, loaded extensions and configuration change whether a bug can be reached, and Linux distributions often backport fixes without changing the upstream version number.
Sources: CVE-2016-10712 on NIST NVD. NVD data synced 2026-11-24T03:47:46.548Z. See all PHP CVEs in the CVE explorer.