{"vuln_id":"CVE-2025-1219","aliases":["CVE-2025-1217","CVE-2025-1734","CVE-2025-1736","CVE-2025-1861","GHSA-p3x9-6h7p-cgfc"],"description":"php8.2 - security update","published_at":"2025-03-13T17:44:17Z","modified_at":"2026-11-20T01:19:10.572133Z","first_seen_at":"2026-11-21T19:15:06.060504Z","severity":"medium","severity_source":"cvss","cvss_score":5.3,"cvss_vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","cwe":[],"vendor":null,"product":null,"kev":{"is_kev":false,"date_added":null,"due_date":null,"ransomware":false},"epss":0.00749,"epss_percentile":0.55857,"nvd_status":null,"enriched_at":null,"links":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2025-1219"},"matched_alias":null,"items":[{"id":11933,"source":{"id":"debian13-php","name":"Debian 13 php8.4 (package vulnerabilities)"},"title":"php8.4 (Debian:13): DEBIAN-CVE-2025-1219 / 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…","summary":"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.\n\nAffected: Debian:12:php8.2, Debian:13:php8.4, Debian:14:php8.4\n\nFixed in: 8.4.5-1\n\nReferences:\nhttps://security-tracker.debian.org/tracker/CVE-2025-1219","url":"https://osv.dev/vulnerability/DEBIAN-CVE-2025-1219","published_at":"2025-03-30T06:15:13.570000Z","updated_at":"2026-09-01T20:05:40.552713Z","fetched_at":"2026-11-22T13:39:48.366416Z","severity":"medium","cvss_score":5.3,"epss":0.00749,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":"php","product":"php8.4","vuln_id":"CVE-2025-1219","vuln_ids":["CVE-2025-1217","CVE-2025-1219","CVE-2025-1734","CVE-2025-1736","CVE-2025-1861","DEBIAN-CVE-2025-1219","GHSA-P3X9-6H7P-CGFC"],"tags":["package-watch","pkg:php8.4","stack","debian13","fix-available"],"cluster_id":366,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/11933","html":"https://vulnwatch.ve1ve2.com/item/11933"}},{"id":537,"source":{"id":"debian-php","name":"Debian 12 php8.2 (package vulnerabilities)"},"title":"php8.2 (Debian:12): DEBIAN-CVE-2025-1219 / 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…","summary":"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.\n\nAffected: Debian:12:php8.2, Debian:13:php8.4, Debian:14:php8.4\n\nFixed in: 8.2.28-1~deb12u1\n\nReferences:\nhttps://security-tracker.debian.org/tracker/CVE-2025-1219","url":"https://osv.dev/vulnerability/DEBIAN-CVE-2025-1219","published_at":"2025-03-30T06:15:13.570000Z","updated_at":"2026-09-01T20:05:40.552713Z","fetched_at":"2026-11-21T19:15:05.963808Z","severity":"medium","cvss_score":5.3,"epss":0.00749,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":"php","product":"php8.2","vuln_id":"CVE-2025-1219","vuln_ids":["CVE-2025-1217","CVE-2025-1219","CVE-2025-1734","CVE-2025-1736","CVE-2025-1861","DEBIAN-CVE-2025-1219","GHSA-P3X9-6H7P-CGFC"],"tags":["package-watch","pkg:php8.2","fix-available"],"cluster_id":366,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/537","html":"https://vulnwatch.ve1ve2.com/item/537"}},{"id":481,"source":{"id":"debian-php","name":"Debian 12 php8.2 (package vulnerabilities)"},"title":"php8.2 (Debian:12): DSA-5878-1 / CVE-2025-1217 - php8.2 - security update","summary":"Affected: Debian:12:php8.2\n\nFixed in: 8.2.28-1~deb12u1","url":"https://osv.dev/vulnerability/DSA-5878-1","published_at":"2025-03-14T00:00:00Z","updated_at":"2026-11-20T01:19:10.572133Z","fetched_at":"2026-11-21T19:15:05.963726Z","severity":"critical","cvss_score":9.8,"epss":0.00856,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":"php","product":"php8.2","vuln_id":"CVE-2025-1217","vuln_ids":["CVE-2025-1217","CVE-2025-1219","CVE-2025-1734","CVE-2025-1736","CVE-2025-1861","DSA-5878-1","GHSA-52JP-HRPF-2JFF","GHSA-HGF5-96FM-V528","GHSA-P3X9-6H7P-CGFC","GHSA-PCMH-G36C-QC44","GHSA-V8XR-GPVJ-CX9G"],"tags":["package-watch","pkg:php8.2","fix-available"],"cluster_id":365,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/481","html":"https://vulnwatch.ve1ve2.com/item/481"}},{"id":12656,"source":{"id":"gh-php-src","name":"PHP releases (GitHub php/php-src tags)"},"title":"GHSA-p3x9-6h7p-cgfc / CVE-2025-1219: libxml streams use wrong `content-type` header when requesting a redirected resource","summary":"libxml streams use wrong `content-type` header when requesting a redirected resource ### Summary 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. ### Details When the HTTP stream wrapper follows a redirect, it does not clear the list of captured headers before performing the following requests. This means in the returned array containing the response headers, the headers of multiple requests are stored one after each other. The final request comes last in this array. The `php_libxml_input_buffer_create_filename()` / `php_libxml_sniff_charset_from_stream()` function scans the header array from top to bottom, returning after finding the first `content-type` header. This `content-type` header does not necessarily belong to the response that corresponds to the HTML body that is being parsed. ### PoC redirect.php ``` querySelector('body')->textContent, 'Example')) { throw new Exception('Refusing to store example content'); } var_dump(\\str_contains($document->saveHtml(), 'Example')); // bool(true) ``` ### Impact This allows an attacker to cause a document to be parsed incorrectly, changing its meaning and possibly bypassing validation. When exporting such a document with `->saveHtml()` the document will be returned with the original charset. Users that request documents via HTTP using the DOM or SimpleXML extensions are impacted. Patched: 8.1.32, 8.2.28, 8.3.19, 8.4.5","url":"https://github.com/php/php-src/security/advisories/GHSA-p3x9-6h7p-cgfc","published_at":"2025-03-13T17:44:17Z","updated_at":"2025-03-13T17:44:17Z","fetched_at":"2026-11-22T14:05:37.431191Z","severity":"medium","cvss_score":5.3,"epss":0.00749,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":"php","product":"php-src","vuln_id":"CVE-2025-1219","vuln_ids":["CVE-2025-1217","CVE-2025-1219","CVE-2025-1734","CVE-2025-1736","CVE-2025-1861","GHSA-P3X9-6H7P-CGFC"],"tags":["repo-advisory","security","repo:php/php-src","stack"],"cluster_id":11765,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/12656","html":"https://vulnwatch.ve1ve2.com/item/12656"}}]}