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
php: php
References2
- github.com/php/php-src/security/advisories/GHSA-7875-c8px-7q5f Vendor AdvisoryExploit
- github.com/php/php-src/security/advisories/GHSA-7875-c8px-7q5f Vendor AdvisoryExploit
Metrics
- CVSS 3.1
-
5.8
MEDIUM
Score source: CNA
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N - EPSS — exploit probability
- 0% percentile: 27 · as of 9 November 2026
- CWE
- CWE-125
Could this be exploited in your environment?
A patch closes the known hole. A penetration test shows what an attacker can still reach — with proof.