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.
Metrics
CVSS 3.1 5.8/10
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:NWeakness enumeration
Affected software
| Vendor | Product | Versions |
|---|---|---|
| PHP Group | PHP | >= 8.2.*, < 8.2.34; >= 8.3.*, < 8.3.35; >= 8.4.*, < 8.4.26; >= 8.5.*, < 8.5.11 |
References
- https://github.com/php/php-src/security/advisories/GHSA-7875-c8px-7q5fVendor Advisory, Exploit
- https://github.com/php/php-src/security/advisories/GHSA-7875-c8px-7q5fVendor Advisory, Exploit
Timeline
- Published
- Sep 25, 2026
- Last modified
- Oct 23, 2026
- NVD status
- Analyzed