All vulnerabilities

Servers and applications

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.

Severity
High 7.5
Published
9 Feb 2018
Last changed
17 Jun 2026
Added to UpHeron
14 Oct 2026
Sources
NVD

Affected software

SoftwareAffected versions
PHPServers and applications · cpe:a:php:php
  • Every version up to 5.5.31
  • From 5.6.0 up to 5.6.17
  • From 7.0.0 up to 7.0.2

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2016-10712
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2016-10712