National Vulnerability Database

National Vulnerability Database

National Vulnerability
Database

CVE-2016-10712 Detail

Current 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.

Source:  MITRE
View Analysis Description

Severity



CVSS 3.x Severity and Metrics:

NIST CVSS score
NIST: NVD
Base Score: 7.5 HIGH
Vector:  CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

References to Advisories, Solutions, and Tools

By selecting these links, you will be leaving NIST webspace. We have provided these links to other web sites because they may have information that would be of interest to you. No inferences should be drawn on account of other sites being referenced, or not, from this page. There may be other web sites that are more appropriate for your purpose. NIST does not necessarily endorse the views expressed, or concur with the facts presented on these sites. Further, NIST does not endorse any commercial products that may be mentioned on these sites. Please address comments about this page to nvd@nist.gov.

Hyperlink Resource
https://bugs.php.net/bug.php?id=71323 Exploit Issue Tracking Patch Vendor Advisory
https://git.php.net/?p=php-src.git;a=commit;h=6297a117d77fa3a0df2e21ca926a92c231819cd5 Patch Vendor Advisory
https://usn.ubuntu.com/3566-2/
https://usn.ubuntu.com/3600-1/ Third Party Advisory

Weakness Enumeration

CWE-ID CWE Name Source
CWE-20 Improper Input Validation NIST  

Known Affected Software Configurations Switch to CPE 2.2

Configuration 1 ( hide )
 cpe:2.3:a:php:php:*:*:*:*:*:*:*:*
     Show Matching CPE(s)
Up to (including)
5.5.31
 cpe:2.3:a:php:php:*:*:*:*:*:*:*:*
     Show Matching CPE(s)
From (including)
5.6.0
Up to (including)
5.6.17
 cpe:2.3:a:php:php:*:*:*:*:*:*:*:*
     Show Matching CPE(s)
From (including)
7.0.0
Up to (including)
7.0.2

Configuration 2 ( hide )
 cpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:lts:*:*:*
     Show Matching CPE(s)
 cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:*
     Show Matching CPE(s)
 cpe:2.3:o:canonical:ubuntu_linux:17.10:*:*:*:*:*:*:*
     Show Matching CPE(s)


Change History

4 change records found - show changes

Quick Info

CVE Dictionary Entry:
CVE-2016-10712
NVD Published Date:
02/09/2018
NVD Last Modified:
05/22/2019