CVE-2026-93682
MEDIUM
5.8
CVSS 3.1
Description
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 products and versions
- PHP — From 8.2.0 (including) to 8.2.34 (excluding)
- PHP — From 8.3.0 (including) to 8.3.35 (excluding)
- PHP — From 8.4.0 (including) to 8.4.26 (excluding)
- PHP — From 8.5.0 (including) to 8.5.11 (excluding)
References
- github.com https://github.com/php/php-src/security/advisories/GHSA-7875-c8px-7q5f Vendor Advisory, Exploit
- nvd.nist.gov Official NVD record