CVE-2025-1217 Details
Description
In PHP from 8.1.* before 8.1.32, from 8.2.* before 8.2.28, from 8.3.* before 8.3.19, from 8.4.* before 8.4.5, when http request module parses HTTP response obtained from a server, folded headers are parsed incorrectly, which may lead to misinterpreting the response and using incorrect headers, MIME types, etc.
A vulnerability exists in PHP versions 8.1.* prior to 8.1.32, 8.2.* prior to 8.2.28, 8.3.* prior to 8.3.19, and 8.4.* prior to 8.4.5. When the HTTP request module processes responses from a server, it incorrectly handles folded headers. This mismanagement can lead to a wrong interpretation of the response, causing the application to use incorrect headers, MIME types, and more. The issue arises because the header parser does not recognize that a header line starting with whitespace continues the previous header, treating each newline as a separate header separator. As a result, the 'STREAM_NOTIFY_MIME_TYPE_IS' notification may report an inaccurate MIME type if the 'content-type' header is folded. Additionally, the '$http_response_header' array will include header continuation lines as they were received, requiring userland code to account for folded headers, which violates RFC9112.
Users should upgrade to PHP versions 8.1.32, 8.2.28, 8.3.19, or 8.4.5.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Mar 31, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/php/php-src/security/advisories/GHSA-v8xr-gpvj-cx9g | CISA-ADP | ExploitVendor Advisory |
| https://lists.debian.org/debian-lts-announce/2025/03/msg00014.html | CVE | |
| https://security.netapp.com/advisory/ntap-20250523-0008/ | CVE | |
| https://github.com/php/php-src/security/advisories/GHSA-v8xr-gpvj-cx9g | [email protected] | ExploitVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-436 | Interpretation Conflict | [email protected] |
| CWE-20 | Improper Input Validation | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| php php | >= 8.1.0, < 8.1.32 >= 8.2.0, < 8.2.28 >= 8.3.0, < 8.3.19 >= 8.4.0, < 8.4.5 |
CPE
Remediation
| |
Change History
7 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Nov 3, 2025 | CVE Modified | CVE |
| May 23, 2025 | CVE Modified | CVE |
| May 1, 2025 | Initial Analysis | [email protected] |
| Mar 31, 2025 | CVE Modified | CISA-ADP |
| Mar 29, 2025 | New CVE Received | [email protected] |