Am I affected?
CVE-2025-1219
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.
Not in the CISA KEV catalog as of the last sync. That means no confirmed exploitation is listed there, not that it is safe.
Exploit probability (FIRST EPSS): 0.75% chance of exploitation activity in the next 30 days (top 45% of all scored CVEs), scored 2026-11-23. EPSS is a likelihood estimate, not proof of attacks.
Check your PHP version
Fixed versions by branch
| Branch | Affected (php.net) | Fixed in |
|---|---|---|
| PHP 8.4 | PHP 8.4 only, 8.4.0 (including) to 8.4.5 (excluding) | 8.4.5 |
| PHP 8.3 | PHP 8.3 only, 8.3.0 (including) to 8.3.19 (excluding) | 8.3.19 |
| PHP 8.2 | PHP 8.2 only, 8.2.0 (including) to 8.2.28 (excluding) | 8.2.28 |
| PHP 8.1 | PHP 8.1 only, 8.1.0 (including) to 8.1.32 (excluding) | 8.1.32 |
"Fixed in" is shown only when the source gives an exact upper bound. Any later patch in the same branch also has the fix. Linux distributions (Ubuntu, Debian, RHEL) often backport fixes without changing the PHP version number.
Related CVEs
Other PHP CVEs that NVD lists for the same branches.
- CVE-2025-1861 Critical 9.8 · PHP 8.4, 8.3, 8.2, 8.1 · 2025-03-30
- CVE-2025-14178 High 8.2 · PHP 8.4, 8.3, 8.2, 8.1 · 2025-12-27
- CVE-2025-14177 High 7.5 · PHP 8.4, 8.3, 8.2, 8.1 · 2025-12-27
- CVE-2025-14180 High 7.5 · PHP 8.4, 8.3, 8.2, 8.1 · 2025-12-27
- CVE-2025-1735 High 7.5 · PHP 8.4, 8.3, 8.2, 8.1 · 2025-07-13
- CVE-2025-1736 High 7.3 · PHP 8.4, 8.3, 8.2, 8.1 · 2025-03-30
Questions
- Which PHP versions are affected by CVE-2025-1219?
- php.net lists these affected ranges: PHP 8.4 only, 8.4.0 (including) to 8.4.5 (excluding); PHP 8.3 only, 8.3.0 (including) to 8.3.19 (excluding); PHP 8.2 only, 8.2.0 (including) to 8.2.28 (excluding); PHP 8.1 only, 8.1.0 (including) to 8.1.32 (excluding).
- Which PHP version fixes CVE-2025-1219?
- According to php.net, the fix is in PHP 8.4.5, 8.3.19, 8.2.28, 8.1.32 (upgrade to that release or any later patch in the same branch).
- Does a version check prove my server is safe from CVE-2025-1219?
- No. The SAPI, web server, operating system, loaded extensions and configuration change whether a bug can be reached, and Linux distributions often backport fixes without changing the upstream version number.
Sources: CVE-2025-1219 on NIST NVD and the php.net ChangeLog. NVD data synced 2026-11-24T03:47:46.548Z. See all PHP CVEs in the CVE explorer.