CVE-2018-7584

CRITICAL

PHP < 5.6.33, 7.0.x < 7.0.28, 7.1.x <= 7.1.14, 7.2.x <= 7.2.2 - Stack-Based Buffer Under-Read in HTTP Response Parsing

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2018-7584. PoCs published by Wei Lei and Liu Yang.

AI-analyzed exploit summary This exploit demonstrates a memory corruption vulnerability in PHP 7.2.2's HTTP response parsing logic, where a malformed HTTP response can trigger a stack-buffer-overflow due to incorrect handling of newline characters. The PoC includes a test script and server setup to reproduce the crash under AddressSanitizer (ASAN).

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.

Exploits (1)

exploitdb WORKING POC VERIFIED
by Wei Lei and Liu Yang · textdosphp
https://www.exploit-db.com/exploits/44846

This exploit demonstrates a memory corruption vulnerability in PHP 7.2.2's HTTP response parsing logic, where a malformed HTTP response can trigger a stack-buffer-overflow due to incorrect handling of newline characters. The PoC includes a test script and server setup to reproduce the crash under AddressSanitizer (ASAN).

Classification
Working Poc 95%
Attack Type
Dos
Complexity
Moderate
Reliability
Reliable
Target: PHP 7.2.2
No auth needed
Prerequisites: PHP 7.2.2 installation · Ability to send malformed HTTP responses to a target PHP application
devstral-2 · analyzed Feb 16, 2026 Full analysis →

References (14)

Core 14
Core References
Third Party Advisory vendor-advisory x_refsource_ubuntu
https://usn.ubuntu.com/3600-1/
Third Party Advisory vendor-advisory x_refsource_debian
https://www.debian.org/security/2018/dsa-4240
Issue Tracking x_refsource_confirm
https://bugs.php.net/bug.php?id=75981
Mailing List, Third Party Advisory mailing-list x_refsource_mlist
https://lists.debian.org/debian-lts-announce/2018/03/msg00030.html
Third Party Advisory x_refsource_confirm
https://www.tenable.com/security/tns-2018-12
Third Party Advisory x_refsource_confirm
https://www.tenable.com/security/tns-2018-03
Third Party Advisory, VDB Entry vdb-entry x_refsource_sectrack
http://www.securitytracker.com/id/1041607
Exploit, Third Party Advisory, VDB Entry exploit x_refsource_exploit-db
https://www.exploit-db.com/exploits/44846/
Release Notes x_refsource_confirm
http://php.net/ChangeLog-7.php
Mailing List, Third Party Advisory mailing-list x_refsource_mlist
https://lists.debian.org/debian-lts-announce/2018/06/msg00005.html
Third Party Advisory vendor-advisory x_refsource_ubuntu
https://usn.ubuntu.com/3600-2/
Third Party Advisory, VDB Entry vdb-entry x_refsource_bid
http://www.securityfocus.com/bid/103204
Vendor Advisory vendor-advisory x_refsource_redhat
https://access.redhat.com/errata/RHSA-2019:2519

Scores

CVSS v3 9.8
EPSS 0.8788
EPSS Percentile 99.7%
Attack Vector NETWORK
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Details

CWE
CWE-119
Status published
Products (8)
canonical/ubuntu_linux 12.04
canonical/ubuntu_linux 14.04
canonical/ubuntu_linux 16.04
canonical/ubuntu_linux 17.10
debian/debian_linux 7.0
debian/debian_linux 8.0
debian/debian_linux 9.0
php/php < 5.6.33
Published Mar 01, 2018
Tracked Since Feb 18, 2026