CVE-2018-7584PHP Memory Corruption
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.
Published Mar 1, 2018 · Updated Nov 3, 2026 · Also known as ALPINE-CVE-2018-7584, DEBIAN-CVE-2018-7584, DLA-1326-1, MGASA-2018-0167, SUSE-SU-2018:0646-1, SUSE-SU-2018:0717-1, UBUNTU-CVE-2018-7584
Key Facts
Patch immediately- CVE-2018-7584 is a medium-severity vulnerability (CVSS 5.9 v3.1) affecting PHP, Ubuntu Linux (Canonical), Debian Linux and 22 more products.
- It is not listed in any known-exploited vulnerabilities catalog. A public exploit is reported by tracking sources, but no code link is listed yet.
- EPSS estimates a 87% probability of exploitation in the next 30 days.
- Fixed versions are available, including apache2-mod_php5 5.5.14-109.24.1, apache2-mod_php5 5.5.14-97.1, apache2-mod_php53 5.3.17-112.20.1.
- Brandefense priority: patch immediately, because it is very likely to be exploited soon.
Scores
CVSS v3.1
5.9
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS (30-day exploit likelihood)
87%
Higher than 99.7% of all scored CVEs
Exploit maturity
Proof of concept
ATLAS score
53/100
Publication score, see How it works
Exploitation Verdict
KEV listed
Not listed
Federal due date
None
No federal due date
Ransomware use
Not reported
Attributed actors
None named
Exploit & Defence Guidance
Exploit maturity
Proof of concept
Public exploit code
2
Proof-of-concept links
In-the-wild evidence
0
Reports of active use
Advisories And Exploit References
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.
Affected Products
617 affected entries in total| Product | Affected versions | Fixed in |
|---|---|---|
| PHPPHP | See advisory | 5.6.33 |
| Ubuntu LinuxCanonical | 12.04, 14.04, 16.04, 17.10 | n/a |
| Debian LinuxDebian | 7.0, 8.0, 9.0 | n/a |
| php5alpine | See advisory | 5.6.34-r0 |
| php7alpine | See advisory | 7.0.28-r0 |
Patched Releases
apache2-mod_php5
5.5.14-109.24.1, 5.5.14-97.1
apache2-mod_php53
5.3.17-112.20.1
apache2-mod_php7
7.0.7-31.1, 7.0.7-50.32.1
PHP
0:5.4.16-48.el7, 5.4.16-48.el7, 5.6.34-1.mga5, 5.6.34-1.mga6, <=5.6.33
php-bcmath
5.4.16-48.el7
php-cli
5.4.16-48.el7
php-common
5.4.16-48.el7
php-dba
5.4.16-48.el7
php-devel
5.4.16-48.el7
php-embedded
5.4.16-48.el7
php-enchant
5.4.16-48.el7
php-fpm
5.4.16-48.el7
php-gd
5.4.16-48.el7
php-intl
5.4.16-48.el7
php-ldap
5.4.16-48.el7
php-mbstring
5.4.16-48.el7
php-mysql
5.4.16-48.el7
php-mysqlnd
5.4.16-48.el7
php-odbc
5.4.16-48.el7
php-pdo
5.4.16-48.el7
php-pgsql
5.4.16-48.el7
php-process
5.4.16-48.el7
php-pspell
5.4.16-48.el7
php-recode
5.4.16-48.el7
php-snmp
5.4.16-48.el7
Timeline
Publicly disclosed
Mar 1, 2018
Last updated
Nov 3, 2026
Weakness Type
- CWE-119 Improper Restriction of Operations within the Bounds of a Memory Buffer
- CWE-125 Out-of-bounds Read
References
- advisorysecurity.alpinelinux.org · CVE-2018-7584
- advisoryubuntu.com · CVE-2018-7584
- advisorycve.org · CVERecord
- advisoryRHSA-2020:1112
- advisoryadvisories.mageia.org · MGASA-2018-0167.html
FAQ
Common Questions.
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.
Affected: PHP; Ubuntu Linux (Canonical) versions 12.04, 14.04, 16.04, 17.10; Debian Linux versions 7.0, 8.0, 9.0, among others. The full list is in the CVE brief.
It is not listed in any known-exploited vulnerabilities catalog.
No, it is not currently listed in the CISA Known Exploited Vulnerabilities catalog.
A public exploit is reported by tracking sources, but no code link is listed yet.
Fixed versions are available, including apache2-mod_php5 5.5.14-109.24.1, apache2-mod_php5 5.5.14-97.1, apache2-mod_php53 5.3.17-112.20.1.
Brandefense priority: patch immediately, because it is very likely to be exploited soon.
Is CVE-2018-7584 On Your Attack Surface?
Brandefense matches it against the products discovered on your perimeter and opens a finding the day a CVE like this is listed.
Request A Demo