CVE-2025-1219 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 requesting a HTTP resource using the DOM or SimpleXML extensions, the wrong content-type header is used to determine the charset when the requested resource performs a redirect. This may cause the resulting document to be parsed incorrectly or bypass validations.
A vulnerability exists in PHP versions prior to 8.1.32, prior to 8.2.28, prior to 8.3.19, and prior to 8.4.5. When using the DOM or SimpleXML extensions to request an HTTP resource that performs a redirect, the wrong content-type header is used to determine the charset. This issue arises because the HTTP stream wrapper does not clear the list of captured headers before following redirects, leading to a misalignment between the content-type and the actual resource being parsed. As a result, documents may be parsed incorrectly, potentially bypassing validations.
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-p3x9-6h7p-cgfc | CISA-ADP | ExploitVendor Advisory |
| https://lists.debian.org/debian-lts-announce/2025/03/msg00014.html | CVE | |
| https://security.netapp.com/advisory/ntap-20250523-0007/ | CVE | |
| https://github.com/php/php-src/security/advisories/GHSA-p3x9-6h7p-cgfc | [email protected] | ExploitVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-1116 | Inaccurate Comments | CISA-ADP |
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 |
| Apr 15, 2025 | Initial Analysis | [email protected] |
| Mar 31, 2025 | CVE Modified | CISA-ADP |
| Mar 30, 2025 | New CVE Received | [email protected] |