Description
In PHP through 5.6.33, 7.0.x before 7.0.28, 7.1.x through 7.1.14, and 7.2.x through 7.2.2, there is a stack-based buffer under-read while parsing an HTTP response in the php_stream_url_wrap_http_ex function in ext/standard/http_fopen_wrapper.c. This subsequently results in copying a large string.
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 9 | php7.0 | 7.0.30-0+deb9u1 | DSA-4240-1 |
| Debian 8 | php5 | 5.6.36+dfsg-0+deb8u1 | DLA-1397-1 |
| Debian 7 | php5 | 5.4.45-0+deb7u13 | DLA-1326-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | php7.2 | 7.2.3-1ubuntu1 | — |
| 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 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 7 | php +24 | 5.4.16-48.el7 | RHSA-2020:1112 |
| RHEL 3 | rh-php71-php +27 | 7.1.30-1.el7 | RHSA-2019:2519 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 12 SP3 | php5 | 5.5.14-109.24.1 | SUSE-SU-2018:0717-1 |
| SLES 12 SP3 | php7 | 7.0.7-50.32.1 | SUSE-SU-2018:0646-1 |
| SLES 12 SP2 | php5 | 5.5.14-109.24.1 | SUSE-SU-2018:0717-1 |
| SLES 12 SP2 | php7 | 7.0.7-50.32.1 | SUSE-SU-2018:0646-1 |
| SLES 12 | php5 | 5.5.14-109.24.1 | SUSE-SU-2018:0717-1 |
| SLES 12 | php7 | 7.0.7-50.32.1 | SUSE-SU-2018:0646-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 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.8 | php5 | 5.6.34-r0 | — |
| Alpine v3.7 | php5 | 5.6.34-r0 | — |
| Alpine v3.7 | php7 | 7.1.15-r0 | — |
| Alpine v3.6 | php5 | 5.6.34-r0 | — |
| Alpine v3.6 | php7 | 7.1.15-r0 | — |
| Alpine v3.5 | php5 | 5.6.34-r0 | — |
| Alpine v3.5 | php7 | 7.0.28-r0 | — |
| Alpine v3.4 | php5 | 5.6.34-r0 | — |
Oracle Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Oracle Linux 7 | php +24 | 5.4.16-48.el7 | ELSA-2020-1112 |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Exploit-DB 1
- PHP 7.2.2 - 'php_stream_url_wrap_http_ex' Buffer Overflow EDB-44846 · dos · Jun 6, 2018 · verified
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Advisories 10
- RHSA-2020:1112 Red Hat Security Advisory: php security update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- RHSA-2019:2519 Red Hat Security Advisory: rh-php71-php security, bug fix, and enhancement update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- USN-3600-1 php5, php7.0, php7.1 vulnerabilities Ubuntu Security Notices (USN) · Apr 22, 2026
- DSA-4240-1 php7.0 - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-1397-1 php5 - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-1326-1 php5 - security update Debian Security (DSA / DLA) · Mar 9, 2026
- SUSE-SU-2018:0717-1 Security update for php5 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2018:0646-1 Security update for php7 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2018:0806-1 Security update for php53 SUSE / openSUSE Security Updates · Feb 4, 2026
- ELSA-2020-1112 Moderate: php security update (Oracle Linux 7) Oracle Linux Security Advisories (ELSA) · Apr 6, 2020
References
- USN-3600-1 vendor-advisory
- DSA-4240 vendor-advisory
- https://bugs.php.net/bug.php?id=75981
- [debian-lts-announce] 20180329 [SECURITY] [DLA 1326-1] php5 security update mailing-list
- https://www.tenable.com/security/tns-2018-12
- https://www.tenable.com/security/tns-2018-03
- 1041607 vdb-entry
- https://github.com/php/php-src/commit/523f230c831d7b33353203fa34aee4e92ac12bba
- 44846 exploit
- http://php.net/ChangeLog-7.php
- [debian-lts-announce] 20180626 [SECURITY] [DLA 1397-1] php5 security update mailing-list
- USN-3600-2 vendor-advisory
- 103204 vdb-entry
- RHSA-2019:2519 vendor-advisory