CVE-2025-1219: libxml streams use wrong content-type header when requesting a redirected resource

Published Mar 13, 2025
·
Updated

Fixed (libxml streams use wrong content-type header when requesting a redirected resource). (CVE-2025-1219)

Other sources

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.

Red Hat

Affected Software

8 affected componentsFixes available
PHP PHP<8.2.28
8.2.28
debian/php7.4<=7.4.33-1+deb11u5
7.4.33-1+deb11u8
debian/php8.2<=8.2.26-1~deb12u1
8.2.28-1~deb12u1
debian/php8.4
8.4.5-1
PHP PHP>=8.1.0<8.1.32
PHP PHP>=8.2.0<8.2.28
PHP PHP>=8.3.0<8.3.19
PHP PHP>=8.4.0<8.4.5

Event History

Mar 13, 2025
CVE Published
via PHP·12:00 AM
Mar 30, 2025
CVE Published
via MITRE·05:33 AM
Data Sourced
via MITRE·05:33 AM
Description
Data Sourced
via Red Hat·06:01 AM
DescriptionSeverityAffected Software
Data Sourced
via NVD·06:15 AM
DescriptionSeverityWeaknessAffected Software
Mar 31, 2025
Data Sourced
via Ubuntu·11:16 PM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2025-1219?

CVE-2025-1219 has a moderate severity level due to its potential impact on content-type headers in redirected requests.

2

How do I fix CVE-2025-1219?

To mitigate CVE-2025-1219, upgrade PHP to version 8.3.19 or later.

3

What does CVE-2025-1219 affect?

CVE-2025-1219 affects PHP versions prior to 8.3.19 that improperly handle content-type headers in libxml streams.

4

Is CVE-2025-1219 a remote attack vulnerability?

Yes, CVE-2025-1219 could potentially be exploited in a remote attack scenario if an attacker controls redirection.

5

What are the potential consequences of CVE-2025-1219?

The consequences of CVE-2025-1219 include the possibility of content manipulation and exposure to data integrity issues.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203