Innovate faster and cut risk with PHP experts from Zend Services.
Explore Services
See How Zend Helps Leading Hosting Providers Keep Their Managed Sites on Secure PHP
Read More
Learn PHP from PHP experts with free, on-demand, and instructor led courses.
Explore Training
Submit support requests and browse self-service resources.
Explore Support
Stream HTTP wrapper truncate redirect location to 1024 bytes
In PHP versions 8.1.* before 8.1.32, 8.2.* before 8.2.28, 8.3.* before 8.3.19, and 8.4.* before 8.4.5, a vulnerability, which was classified as problematic, has been found. When parsing an HTTP redirect in a response to an HTTP request sent via the PHP Stream API's HTTP wrapper, these versions limited the Location header value size to 1024. However, RFC-9110 defines a limit of 8000. As such, URL truncation could occur, which would result in redirection to the wrong location.
Location
If you are able to use an alternative HTTP client mechanism that implements RFC-9110 correctly, such as the cURL extension, we recommend switching to this if you are unable to update immediately.
Otherwise, we recommend upgrading to a known patched version of PHP.
Direct link to CVE-2025-1861 >
< View all CVEs