CVE-2016-10712

NameCVE-2016-10712
DescriptionIn 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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, bugtraq, EDB, Metasploit, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, Mageia, GitHub code/issues, web search, more)
ReferencesDLA-818-1
NVD severitymedium (attack range: remote)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
php5 (PTS)jessie5.6.33+dfsg-0+deb8u1fixed
jessie (security)5.6.39+dfsg-0+deb8u1fixed
php7.0 (PTS)stretch7.0.30-0+deb9u1fixed
stretch (security)7.0.33-0+deb9u1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
php5source(unstable)5.6.18+dfsg-1medium
php5sourcejessie5.6.19+dfsg-0+deb8u1medium
php5sourcewheezy5.4.45-0+deb7u7mediumDLA-818-1
php5.6source(unstable)5.6.18+dfsg-1medium
php7.0source(unstable)7.0.3-1medium

Notes

https://bugs.php.net/bug.php?id=71323
https://bugzilla.redhat.com/show_bug.cgi?id=1305523
https://git.php.net/?p=php-src.git;a=commit;h=6297a117d77fa3a0df2e21ca926a92c231819cd5
Fixed in 5.6.18, 5.5.32, 7.0.3

Search for package or bug name: Reporting problems