ADVISORIES

CVE Program

CNA-CVE-2026-93682

Out-of-bounds read in the HTTP stream wrapper when following a redirect with an empty Location header

Details

When the HTTP stream wrapper follows a redirect and the response carries a Location header with an empty value, the redirect code reads one byte past the end of the heap buffer holding the location. The value of that out-of-bounds byte decides which redirect target is built, so a malicious server controls whether the client is sent to the host root or to the current directory.

Affected packages

EcosystemPackageAffected versions
PHPphp
From 8.2 before 8.2.34 (fixed in 8.2.34)
From 8.3 before 8.3.35 (fixed in 8.3.35)
From 8.4 before 8.4.26 (fixed in 8.4.26)
From 8.5 before 8.5.11 (fixed in 8.5.11)

References