Vulnerability record · CVE-2016-10712 · published 9 February 2018
CVE-2016-10712: Php improper input validation vulnerability
Php · Php
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.
Description
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.
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Affected products
2 vulnerable configurations from NVD's CPE data, grouped by vendor and product.
References
| Link | Tags |
|---|---|
| https://bugs.php.net/bug.php?id=71323 | ExploitIssue TrackingPatchVendor Advisory |
| https://git.php.net/?p=php-src.git%3Ba=commit%3Bh=6297a117d77fa3a0df2e21ca926a92c231819cd5 | |
| https://usn.ubuntu.com/3566-2/ | |
| https://usn.ubuntu.com/3600-1/ | Third Party Advisory |
| https://bugs.php.net/bug.php?id=71323 | ExploitIssue TrackingPatchVendor Advisory |
| https://git.php.net/?p=php-src.git%3Ba=commit%3Bh=6297a117d77fa3a0df2e21ca926a92c231819cd5 | |
| https://usn.ubuntu.com/3566-2/ | |
| https://usn.ubuntu.com/3600-1/ | Third Party Advisory |
Track CVE-2016-10712 inside VULONE
Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.
Related vulnerabilities
Same products first, then exploited flaws of the same weakness class.
Source: NIST National Vulnerability Database (record CVE-2016-10712), CISA KEV, FIRST EPSS (scores of 2026-11-20). This page is refreshed as NVD updates the record.