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

- Priority: **Routine**
- Reason: Not severe (CVSS 6.3, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-03-30 · Modified: 2025-11-03
- Aliases: UBUNTU-CVE-2025-1219, DEBIAN-CVE-2025-1219, ALPINE-CVE-2025-1219
- Record: https://cvemate.com/vulnerability/CVE-2025-1219 · JSON: https://cvemate.com/vulnerability/CVE-2025-1219/json

## Description

```text
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.
```

## Signals

- CVSS: 6.3 medium (v4.0, CVE.org) 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
- EPSS: 0.743%, percentile 56.075%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected

- alpine php81 (Alpine Linux): \< 8.1.32-r0
- alpine php82 (Alpine Linux): \< 8.2.28-r0
- alpine php83 (Alpine Linux): \< 8.3.18-r0
- debian php8.2 (Debian): \< 8.2.28-1~deb12u1
- debian php8.4 (Debian): \< 8.4.5-1
- ubuntu php7.4 (Ubuntu): All versions (No fix recorded)
- ubuntu php8.1 (Ubuntu): \< 8.1.2-1ubuntu2.21
- ubuntu php8.3 (Ubuntu): \< 8.3.6-0ubuntu0.24.04.4
- php group php: ≥ 8.1.\*, \< 8.1.32 \| ≥ 8.2.\*, \< 8.2.28 \| ≥ 8.3.\*, \< 8.3.19 \| ≥ 8.4.\*, \< 8.4.5
- 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

## References

- <https://github.com/php/php-src/security/advisories/GHSA-p3x9-6h7p-cgfc>
- <https://security.netapp.com/advisory/ntap-20250523-0007/>
- <https://lists.debian.org/debian-lts-announce/2025/03/msg00014.html>
- <https://ubuntu.com/security/CVE-2025-1219>
- <https://www.cve.org/CVERecord?id=CVE-2025-1219>
- <https://github.com/php/php-src/commit/a8d3a8006739b8aad2a190be90a0491739be6c0d>
- <https://ubuntu.com/security/notices/USN-7400-1>
- <https://security-tracker.debian.org/tracker/CVE-2025-1219>
- <https://nvd.nist.gov/vuln/detail/CVE-2025-1219>
- <https://security.alpinelinux.org/vuln/CVE-2025-1219>

---

Data as of 2026-12-05T02:55:02.853Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
