Skip to content
OpenAdvisories
Unscored CVE-2016-10712 EUVD-2016-1711GHSA-5jr3-87vw-j587

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 …

Published Feb 9, 2018 · Updated Aug 6, 2024 · Assigned by mitre

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 7 php5 5.4.45-0+deb7u7 DLA-818-1
ReleasePackageFixed inAdvisory
Ubuntu 16.04 LTS php7.0 7.0.28-0ubuntu0.16.04.1 USN-3600-1
Ubuntu 14.04 LTS php5 5.5.9+dfsg-1ubuntu4.24 USN-3600-1
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 14.04 LTS php5 5.5.9+dfsg-1ubuntu4.29+esm2 USN-3566-2
ReleasePackageFixed inAdvisory
SLES 12 SP3 php5 5.5.14-109.20.1 SUSE-SU-2018:0530-1
SLES 12 SP2 php5 5.5.14-109.20.1 SUSE-SU-2018:0530-1
SLES 12 php5 5.5.14-109.20.1 SUSE-SU-2018:0530-1
SLES 11 SP4 php53 5.3.17-112.20.1 SUSE-SU-2018:0806-1
SLES 11 SP3 php53 5.3.17-112.20.1 SUSE-SU-2018:0806-1
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 11 SP4 php53 5.3.17-112.20.1 SUSE-SU-2018:0806-1
SUSE Linux Enterprise Point of Sale 11 SP3 php53 5.3.17-112.20.1 SUSE-SU-2018:0806-1

Advisories 5

References