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

- Severity: Medium 6.3 (CVSS:4.0, scored by php) `CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.74%, higher than 55% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-03-30T05:33:13.801Z
- Modified: 2026-09-08T08:48:18.436Z
- Also known as: BIT-LIBPHP-2025-1219, BIT-PHP-2025-1219, BIT-PHP-MIN-2025-1219, GHSA-p3x9-6h7p-cgfc
- Weaknesses: CWE-1116
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: php

## 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.

(As written by CVE List.)

## Affected

- PHP Group 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
- php php: from 8.1.0 before 8.1.32; from 8.2.0 before 8.2.28; from 8.3.0 before 8.3.19; from 8.4.0 before 8.4.5
- libphp (Bitnami): before 8.1.32; from 8.2.0 before 8.2.28; from 8.3.0 before 8.3.19; from 8.4.0 before 8.4.5
- php (Bitnami): before 8.1.32; from 8.2.0 before 8.2.28; from 8.3.0 before 8.3.19; from 8.4.0 before 8.4.5
- php-min (Bitnami): before 8.1.32; from 8.2.0 before 8.2.28; from 8.3.0 before 8.3.19; from 8.4.0 before 8.4.5

## Every score

- php: CVSS:4.0 6.3 Medium `CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://github.com/php/php-src/security/advisories/GHSA-p3x9-6h7p-cgfc> (exploit, advisory, vendor-advisory)
- <https://security.netapp.com/advisory/ntap-20250523-0007/> (web)
- <https://lists.debian.org/debian-lts-announce/2025/03/msg00014.html> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-1219> (web)

## Sources

- CVE List: [CVE-2025-1219](https://www.cve.org/CVERecord?id=CVE-2025-1219), CVE Terms of Use, modified 2025-11-03
- NVD: [CVE-2025-1219](https://nvd.nist.gov/vuln/detail/CVE-2025-1219), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-LIBPHP-2025-1219](https://osv.dev/vulnerability/BIT-LIBPHP-2025-1219), Apache-2.0, modified 2026-09-08
- Bitnami Vulnerability Database: [BIT-PHP-2025-1219](https://osv.dev/vulnerability/BIT-PHP-2025-1219), Apache-2.0, modified 2026-09-08
- Bitnami Vulnerability Database: [BIT-PHP-MIN-2025-1219](https://osv.dev/vulnerability/BIT-PHP-MIN-2025-1219), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2025-1219 · Whole record: https://cve.day/CVE-2025-1219.json · Rebuilt by cve.day 2026-11-25T22:58:55.687Z
