CVE Catalog

CVE-2025-1219

MediumCVSS 5.3
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Elevated risk
0.74%

56th percentile - higher than 56% of all known CVEs

Summary

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 use the wrong content-type header to determine the charset when requesting an HTTP resource via the DOM or SimpleXML extensions if the resource performs a redirect. This may cause the resulting document to be parsed incorrectly or bypass validations.

Risk Assessment

An attacker could use a redirect to force an incorrect charset, potentially leading to parsing errors or bypassing validation mechanisms. The risk applies to PHP applications fetching remote resources via DOM/SimpleXML.

Recommendation

Update PHP to version 8.1.32, 8.2.28, 8.3.19, 8.4.5, or later. Consider validating content-type headers and avoiding unnecessary redirects.

Other vulnerabilities in PHP

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS