Skip to content
OpenAdvisories
Unscored Public exploit CVE-2018-7584 EUVD-2018-19305GHSA-w5h8-6928-2j67

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 p…

Published Mar 1, 2018 · Updated Aug 5, 2024 · Assigned by mitre

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.

ReleasePackageFixed inAdvisory
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
ReleasePackageFixed inAdvisory
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
ReleasePackageFixed inAdvisory
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
ReleasePackageFixed inAdvisory
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)
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
ReleasePackageFixed inAdvisory
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

ReleasePackageFixed inAdvisory
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.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

Exploit-DB 1

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Advisories 10

References