CVE-2025-1217
Header parser of `http` stream wrapper does not handle folded headers
Publication Date | 2025-03-14 |
---|---|
Severity | Critical |
Type | Cross-Site Request Forgery |
Affected PHP Versions |
|
Fixed Product Versions |
|
CVE Details
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 using the PHP stream wrapper to make an HTTP request, folded headers can be parsed incorrectly, leading to misinterpreting the response and all following headers. This could affect the detected Content Type, authorization, and more.
Recommendations
If you are unable to upgrade, but can use an alternative HTTP fetching mechanism such as the cURL extension, we recommend switching immediately.
Otherwise, we recommend upgrading to a known patched version of PHP.