Skip to content
NewA calmer, faster ZeroHour

CVE-2026-127960

DoS via folded HTTP headers in PHP stream wrapper

CVSS 4.0
8.7 high
EPSS
—
Published
·
Modified
Analyze CVE-2026-127960 with Vani AIImpact, affected versions, exploitation status, mitigations and detection

PHP’s HTTP stream wrapper rebuilds folded response headers by copying the whole value for each short continuation line, so parsing can consume disproportionate CPU. An unauthenticated remote attacker who controls an HTTP or HTTPS response that the application fetches with file_get_contents(), fopen(), or other stream functions—by inducing a chosen URL request or influencing a server it already contacts—can stall PHP workers. Repeated or concurrent fetches can deny service. PHP 8.2.28–8.2.35, 8.3.18–8.3.36, 8.4.5–8.4.27, and 8.5 before 8.5.13 are affected.

What to do: Upgrade PHP to 8.2.36, 8.3.37, 8.4.28, or 8.5.13, matching the installed branch.

ProductAffectedFixed in
PHP Group PHP8.2.28 before 8.2.36, 8.3.18 before 8.3.37, 8.4.5 before 8.4.28, and 8.5.* before 8.5.138.2.36, 8.3.37, 8.4.28, 8.5.13
Estimated exposure
No basis for an estimate.

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

Description · NVD

Denial of service through folded HTTP response headers. The HTTP stream wrapper joins each continuation line of a folded response header to the accumulated value by allocating a new string and copying the whole value, so a response with many short continuation lines takes disproportionate CPU time to parse. An attacker who controls an HTTP or HTTPS response fetched through file_get_contents(), fopen() or other stream functions, by making the application request a chosen URL or by influencing a server it already contacts, can keep PHP workers busy. Repeated or concurrent requests can cause a denial of service. This issue affects PHP versions from 8.1.32 through 8.1.34, from 8.2.28 before 8.2.36, from 8.3.18 before 8.3.37, from 8.4.5 before 8.4.28 and 8.5.* before 8.5.13.

Weakness
CWE-400, CWE-407
Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

In the news

2 stories