← Vulnerability feed

Vulnerability record · CVE-2018-7584 · published 1 March 2018

CVE-2018-7584: PHP HTTP stream wrapper stack buffer under-read via crafted HTTP response

Php · Php

PHP versions 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 contain a stack-based buffer under-read in php_stream_url_wrap_http_ex in ext/standard/http_fopen_wrapper.c while parsing an HTTP response. The flaw leads to copying a large string, which can crash the process or leak memory contents. It matters because PHP's HTTP stream wrapper is widely used for outbound HTTP requests, so any code path that fetches a URL can be affected.

9.8 CVSS 3.0 Critical EPSS 87% · top 0.2% CWE-119 · Memory buffer overflow
9.8CVSS 3.0 base score, v2 7.5
87%EPSS exploitation probability, 30 days
NoNot in CISA KEV
3Affected product versions listed by NVD
28References, 2 tagged exploit
17 Jun 2026Last modified by NVD

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.

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Automated analysis

Generated by VULONE's analysis model from the NVD record, CISA KEV and EPSS data on 18 September 2026. Confidence: high.

high priorityCritical CVSS and very high EPSS with public exploit material, but exploitation requires the attacker to control or influence an HTTP response consumed by PHP, which limits reach compared with a directly exposed remote flaw.

What it is

PHP versions 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 contain a stack-based buffer under-read in php_stream_url_wrap_http_ex in ext/standard/http_fopen_wrapper.c while parsing an HTTP response. The flaw leads to copying a large string, which can crash the process or leak memory contents. It matters because PHP's HTTP stream wrapper is widely used for outbound HTTP requests, so any code path that fetches a URL can be affected.

Impact

An attacker who controls or can influence an HTTP response can trigger a memory under-read, causing a denial of service and potentially disclosing process memory. The CVSS vector rates confidentiality, integrity, and availability impact as high.

Attack surface

Reached over the network when PHP parses an HTTP response through the HTTP stream wrapper (for example fopen or file_get_contents on an http:// URL). The CVSS vector shows no privileges or user interaction required, but the attacker must be able to supply or influence the response the PHP process consumes.

Exploitation

Not listed in CISA KEV, but EPSS is very high at 0.87348 (99.7th percentile) and an Exploit-DB entry is referenced, indicating public exploit material exists.

What to do

  • Upgrade PHP to a fixed release: 5.6.34 or later, 7.0.28 or later, 7.1.15 or later, or 7.2.3 or later.
  • Apply vendor patches for Ubuntu, Debian, and Red Hat packages where PHP is bundled or distributed.
  • Restrict outbound HTTP requests from PHP applications to trusted destinations to limit exposure to attacker-controlled responses.
  • Run PHP-FPM or web server worker processes with least privilege and resource limits to reduce impact of a crash or memory disclosure.

Detection

  • Monitor for PHP process crashes or abnormal terminations correlated with outbound HTTP requests.
  • Inspect application and web server logs for requests to untrusted or unusual HTTP endpoints made by PHP code.
  • Use memory-safety tooling such as ASan or Valgrind in test environments to catch the under-read during HTTP response parsing.
  • Track PHP version inventory to identify hosts still running affected releases.

This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.

Affected products

3 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

LinkTags
http://php.net/ChangeLog-7.php Release Notes
http://www.securityfocus.com/bid/103204 Third Party AdvisoryVDB Entry
http://www.securitytracker.com/id/1041607 Third Party AdvisoryVDB Entry
https://access.redhat.com/errata/RHSA-2019:2519
https://bugs.php.net/bug.php?id=75981 Issue Tracking
https://github.com/php/php-src/commit/523f230c831d7b33353203fa34aee4e92ac12bba Patch
https://lists.debian.org/debian-lts-announce/2018/03/msg00030.html Mailing ListThird Party Advisory
https://lists.debian.org/debian-lts-announce/2018/06/msg00005.html Mailing ListThird Party Advisory
https://usn.ubuntu.com/3600-1/ Third Party Advisory
https://usn.ubuntu.com/3600-2/ Third Party Advisory
https://www.debian.org/security/2018/dsa-4240 Third Party Advisory
https://www.exploit-db.com/exploits/44846/ ExploitThird Party AdvisoryVDB Entry
https://www.tenable.com/security/tns-2018-03 Third Party Advisory
https://www.tenable.com/security/tns-2018-12 Third Party Advisory
http://php.net/ChangeLog-7.php Release Notes
http://www.securityfocus.com/bid/103204 Third Party AdvisoryVDB Entry
http://www.securitytracker.com/id/1041607 Third Party AdvisoryVDB Entry
https://access.redhat.com/errata/RHSA-2019:2519
https://bugs.php.net/bug.php?id=75981 Issue Tracking
https://github.com/php/php-src/commit/523f230c831d7b33353203fa34aee4e92ac12bba Patch
https://lists.debian.org/debian-lts-announce/2018/03/msg00030.html Mailing ListThird Party Advisory
https://lists.debian.org/debian-lts-announce/2018/06/msg00005.html Mailing ListThird Party Advisory
https://usn.ubuntu.com/3600-1/ Third Party Advisory
https://usn.ubuntu.com/3600-2/ Third Party Advisory
https://www.debian.org/security/2018/dsa-4240 Third Party Advisory
https://www.exploit-db.com/exploits/44846/ ExploitThird Party AdvisoryVDB Entry
https://www.tenable.com/security/tns-2018-03 Third Party Advisory
https://www.tenable.com/security/tns-2018-12 Third Party Advisory

Track CVE-2018-7584 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

10.0CVE-2025-32433Erlang/OTP SSH server missing authentication allows remote code executionErlang/OTP SSH servers before OTP-27.3.3, OTP-26.2.5.11 and OTP-25.3.2.20 mishandle SSH protocol messages, letting an unauthenticated attacker execut…KEVEPSS 99%analysed10.0CVE-2025-24201Apple WebKit out-of-bounds write allows sandbox escapeCVE-2025-24201 is an out-of-bounds write in Apple's WebKit that was addressed with improved checks. Maliciously crafted web content may break out of …KEVEPSS 3.8%analysed10.0CVE-2021-44228Apache Log4j2 JNDI lookup remote code executionApache Log4j2 versions 2.0-beta9 through 2.15.0 (excluding 2.12.2, 2.12.3, and 2.3.1) do not protect against attacker-controlled LDAP and other JNDI …KEVEPSS 100%analysed9.8CVE-2026-24061GNU Inetutils telnetd argument injection allows remote auth bypasstelnetd in GNU Inetutils through 2.7 fails to sanitize the USER environment variable, so a value such as "-f root" is passed as an argument to login …KEVEPSS 99%analysed9.8CVE-2025-39682Linux kernel TLS zero-length record handling flaw on rx_listThe Linux kernel TLS receive path mishandles zero-length records that arrive from the rx_list, breaking the assumption that a record type change cann…KEVEPSS 2.9%analysed9.8CVE-2025-24813Apache Tomcat Default Servlet path equivalence enables RCE and file disclosureApache Tomcat mishandles path equivalence for names containing an internal dot, letting a remote unauthenticated attacker write files through the Def…KEVEPSS 100%analysed9.8CVE-2024-9680Mozilla Firefox and Thunderbird use-after-free in Animation timelinesA use-after-free flaw in Animation timelines allows an attacker to execute code in the content process of Firefox and Thunderbird. Mozilla reports ex…KEVEPSS 23%analysed9.8CVE-2024-4577PHP-CGI on Windows argument injection leads to remote code executionPHP-CGI on Windows can misinterpret characters in the command line passed to Win32 API functions when certain code pages are configured, due to Windo…KEVEPSS 100%analysed

Source: NIST National Vulnerability Database (record CVE-2018-7584), CISA KEV, FIRST EPSS (scores of 2026-09-24). This page is refreshed as NVD updates the record.