CVE-2018-7584 in the critical feed json
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 8y ago modified 4mo ago also EUVD-2018-19305
- cvss
- 9.8
- version 3.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 87.3%
- EPSS 87.3% chance of exploitation in 30 days, percentile 99.7%
- public exploits
- 1
- Exploit-DB
Summary
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.
Patch / fix
- php php 7.0.28
- php5 Ubuntu 14.04 LTS 5.5.9+dfsg-1ubuntu4.24
- php7.0 Ubuntu 16.04 LTS 7.0.28-0ubuntu0.16.04.1
- php7.2 Ubuntu 18.04 LTS 7.2.3-1ubuntu1
ubuntu advisories UBUNTU-CVE-2018-7584
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- php RHEL 7 5.4.16-48.el7
- php-gd RHEL 7 5.4.16-48.el7
- php-cli RHEL 7 5.4.16-48.el7
- php-dba RHEL 7 5.4.16-48.el7
- php-fpm RHEL 7 5.4.16-48.el7
- php-pdo RHEL 7 5.4.16-48.el7
- php-xml RHEL 7 5.4.16-48.el7
- php-intl RHEL 7 5.4.16-48.el7
red hat advisories RHSA-2020:1112RHSA-2019:2519
- php53 SLES for SAP 11 SP4, SLES 11 SP4, SLES 11 SP3-TERADATA +3 more 5.3.17-112.20.1
- php5 SLE Software Development Kit 12 SP3, SLE Software Development Kit 12 SP2, SLE Module for Web and Scripting 12 5.5.14-109.24.1
- php7 SLE Software Development Kit 12 SP3, SLE Software Development Kit 12 SP2, SLE Module for Web and Scripting 12 7.0.7-50.32.1
suse advisories SUSE-SU-2018:0806-1SUSE-SU-2018:0717-1SUSE-SU-2018:0646-1
- php5 Alpine 3.8, Alpine 3.7, Alpine 3.6 +2 more 5.6.34-r0
- php7 Alpine 3.5 7.0.28-r0
- php7 Alpine 3.7, Alpine 3.6 7.1.15-r0
alpine advisories ALPINE-CVE-2018-7584
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
Is CVE-2018-7584 in your stack? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerVendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2018-7584 updated cvss 5.9
php: Stack-based buffer under-read in php_stream_url_wrap_http_ex() in http_fopen_wrapper.c when parsing HTTP response
-
Red Hat Enterprise Linux 5 php, php53 Red Hat Enterprise Linux 6 php, php-gd, php-cli, php-dba, php-fpm, php-pdo, +20 more Red Hat Software Collections rh-php56-php, rh-php70-php, rh-php56-php-gd, rh-php70-php-gd, rh-php56-php-cli, rh-php56-php-dba, +52 moreaffected: no fix planned “Will not fix”
-
Red Hat Enterprise Linux Client Optional (v. 7) php 5.4.16-48.el7, php-gd 5.4.16-48.el7, php-cli 5.4.16-48.el7, php-dba 5.4.16-48.el7, php-fpm 5.4.16-48.el7, php-pdo 5.4.16-48.el7, +18 more Red Hat Enterprise Linux ComputeNode Optional (v. 7) php 5.4.16-48.el7, php-gd 5.4.16-48.el7, php-cli 5.4.16-48.el7, php-dba 5.4.16-48.el7, php-fpm 5.4.16-48.el7, php-pdo 5.4.16-48.el7, +18 more Red Hat Enterprise Linux Server (v. 7) php 5.4.16-48.el7, php-gd 5.4.16-48.el7, php-cli 5.4.16-48.el7, php-pdo 5.4.16-48.el7, php-xml 5.4.16-48.el7, php-ldap 5.4.16-48.el7, +8 more Red Hat Enterprise Linux Server Optional (v. 7) php-dba 5.4.16-48.el7, php-fpm 5.4.16-48.el7, php-intl 5.4.16-48.el7, php-snmp 5.4.16-48.el7, php-bcmath 5.4.16-48.el7, php-pspell 5.4.16-48.el7, +4 more Red Hat Enterprise Linux Workstation (v. 7) php 5.4.16-48.el7, php-gd 5.4.16-48.el7, php-cli 5.4.16-48.el7, php-pdo 5.4.16-48.el7, php-xml 5.4.16-48.el7, php-ldap 5.4.16-48.el7, +8 more Red Hat Enterprise Linux Workstation Optional (v. 7) php-dba 5.4.16-48.el7, php-fpm 5.4.16-48.el7, php-intl 5.4.16-48.el7, php-snmp 5.4.16-48.el7, php-bcmath 5.4.16-48.el7, php-pspell 5.4.16-48.el7, +4 morefixed: vendor fix RHSA-2020:1112
-
Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7) rh-php71-php 7.1.30-1.el7, rh-php71-php-gd 7.1.30-1.el7, rh-php71-php-cli 7.1.30-1.el7, rh-php71-php-dba 7.1.30-1.el7, rh-php71-php-dbg 7.1.30-1.el7, rh-php71-php-fpm 7.1.30-1.el7, +22 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.4) rh-php71-php 7.1.30-1.el7, rh-php71-php-gd 7.1.30-1.el7, rh-php71-php-cli 7.1.30-1.el7, rh-php71-php-dba 7.1.30-1.el7, rh-php71-php-dbg 7.1.30-1.el7, rh-php71-php-fpm 7.1.30-1.el7, +22 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.5) rh-php71-php 7.1.30-1.el7, rh-php71-php-gd 7.1.30-1.el7, rh-php71-php-cli 7.1.30-1.el7, rh-php71-php-dba 7.1.30-1.el7, rh-php71-php-dbg 7.1.30-1.el7, rh-php71-php-fpm 7.1.30-1.el7, +22 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.6) rh-php71-php 7.1.30-1.el7, rh-php71-php-gd 7.1.30-1.el7, rh-php71-php-cli 7.1.30-1.el7, rh-php71-php-dba 7.1.30-1.el7, rh-php71-php-dbg 7.1.30-1.el7, rh-php71-php-fpm 7.1.30-1.el7, +22 more Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7) rh-php71-php 7.1.30-1.el7, rh-php71-php-gd 7.1.30-1.el7, rh-php71-php-cli 7.1.30-1.el7, rh-php71-php-dba 7.1.30-1.el7, rh-php71-php-dbg 7.1.30-1.el7, rh-php71-php-fpm 7.1.30-1.el7, +22 morefixed: vendor fix RHSA-2019:2519
-
Red Hat Enterprise Linux 8 php, libzip, php-gd, php-cli, php-dba, php-dbg, +30 morenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Timeline
- Published
- First public exploit (EDB-44846)
Exploit prediction
87.35% chance of exploitation in the next 30 days, higher than 99.7% of all scored CVEs (FIRST EPSS, 2026-11-09).
Exploits and checks
- EDB-44846 PHP 7.2.2 - 'php_stream_url_wrap_http_ex' Buffer Overflow dos, 2018-06-06
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.0 | 9.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Classification
- Weakness
-
- CWE-119 Improper Restriction of Operations within the Bounds of a Memory Buffer
- Technology feeds
References
-
github.com
/php/php-src/commit/523f230c831d7b33353203fa34aee4e92ac12bba
patch
-
exploit-db.com
/exploits/44846/
exploit, third-party-advisory, vdb-entry
-
usn.ubuntu.com
/3600-1/
vendor-advisory, third-party-advisory
-
debian.org
/security/2018/dsa-4240
vendor-advisory, third-party-advisory
-
usn.ubuntu.com
/3600-2/
vendor-advisory, third-party-advisory
-
access.redhat.com
/errata/RHSA-2019:2519
vendor-advisory
-
bugs.php.net
/bug.php?id=75981
issue-tracking
-
lists.debian.org
/debian-lts-announce/2018/03/msg00030.html
mailing-list, third-party-advisory
-
tenable.com
/security/tns-2018-12
third-party-advisory
-
tenable.com
/security/tns-2018-03
third-party-advisory
-
securitytracker.com
/id/1041607
vdb-entry, third-party-advisory
-
php.net
/ChangeLog-7.php
release-notes
-
lists.debian.org
/debian-lts-announce/2018/06/msg00005.html
mailing-list, third-party-advisory
-
securityfocus.com
/bid/103204
vdb-entry, third-party-advisory
Sources
- CVE List CVE-2018-7584
- NVD CVE-2018-7584
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.