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.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 7 | php5 | 5.4.45-0+deb7u7 | DLA-818-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 14.04 LTS | php5 | 5.5.9+dfsg-1ubuntu4.29+esm2 | USN-3566-2 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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
- USN-3600-1 php5, php7.0, php7.1 vulnerabilities Ubuntu Security Notices (USN) · Apr 22, 2026
- USN-3566-2 php5 vulnerabilities Ubuntu Security Notices (USN) · Apr 22, 2026
- DLA-818-1 php5 - security update Debian Security (DSA / DLA) · Mar 9, 2026
- SUSE-SU-2018:0530-1 Security update for php5 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2018:0806-1 Security update for php53 SUSE / openSUSE Security Updates · Feb 4, 2026