Skip to content
OpenAdvisories
Medium · 6.3 Public exploit CVE-2025-1219 EUVD-2025-15126

libxml streams use wrong content-type header when requesting a redirected resource

Published Mar 30, 2025 · Updated Nov 3, 2025 · 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.

Affected products

VendorProductAffectedFixed
PHP Group PHP 8.1.* – < 8.1.32, 8.2.* – < 8.2.28, 8.3.* – < 8.3.19, 8.4.* – < 8.4.5 8.1.32

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 php8.4 8.4.5-1 —
Debian 13 php8.4 8.4.5-1 —
Debian 12 php8.2 8.2.28-1~deb12u1 DSA-5878-1
Debian 11 php7.4 7.4.33-1+deb11u8 DLA-4088-1
ReleasePackageFixed inAdvisory
Ubuntu 24.04 LTS php8.3 8.3.6-0ubuntu0.24.04.4 USN-7400-1
Ubuntu 22.04 LTS php8.1 8.1.2-1ubuntu2.21 USN-7400-1
Ubuntu 20.04 LTS php7.4 7.4.3-4ubuntu2.29 USN-7400-1
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 20.04 LTS php7.4 No fix yet —
ReleasePackageFixed inAdvisory
RHEL 10 php +23 8.3.19-1.el10_0 RHSA-2025:7489
RHEL 9 apcu-panel +2 5.1.21-1.module+el9.1.0.z+15477+cb86791d RHSA-2025:7432, RHSA-2025:7418, RHSA-2025:4263
RHEL 9 php +23 8.0.30-3.el9_6 RHSA-2025:7432, RHSA-2025:7431, RHSA-2025:7418
RHEL 9 php-pecl-redis6 6.1.0-2.module+el9.6.0+22647+1741ae35 RHSA-2025:7418
RHEL 9 php-pecl-rrd 2.0.3-4.module+el9.1.0.z+15477+cb86791d RHSA-2025:7432, RHSA-2025:7418, RHSA-2025:4263
RHEL 9 php-pecl-xdebug3 3.1.4-1.module+el9.1.0.z+15477+cb86791d RHSA-2025:7432, RHSA-2025:7418, RHSA-2025:4263
RHEL 9 php-pecl-zip 1.20.1-1.module+el9.1.0.z+15477+cb86791d RHSA-2025:7432, RHSA-2025:7418, RHSA-2025:4263
RHEL 8 apcu-panel +2 5.1.18-1.module+el8.10.0+22485+a3539972 RHSA-2026:2470, RHSA-2025:15687
RHEL 8 libzip +2 1.6.1-1.module+el8.10.0+22485+a3539972 RHSA-2026:2470, RHSA-2025:15687
RHEL 8 php +25 7.4.33-3.module+el8.10.0+23902+d3c8dd8f RHSA-2026:2470, RHSA-2025:15687
RHEL 8 php-pear 1:1.10.13-1.module+el8.10.0+22485+a3539972 RHSA-2026:2470, RHSA-2025:15687
RHEL 8 php-pecl-rrd 2.0.1-1.module+el8.10.0+22485+a3539972 RHSA-2026:2470, RHSA-2025:15687
RHEL 8 php-pecl-xdebug 2.9.5-1.module+el8.10.0+22485+a3539972 RHSA-2026:2470
RHEL 8 php-pecl-xdebug3 3.2.2-2.module+el8.10.0+20798+00eaeb41 RHSA-2025:15687
RHEL 8 php-pecl-zip 1.18.2-1.module+el8.10.0+22485+a3539972 RHSA-2026:2470, RHSA-2025:15687

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 10 php +23 8.3.19-1.el10_0 ALSA-2025:7489
AlmaLinux 9 apcu-panel +2 5.1.21-1.module_el9.1.0+15+94ba28e4 ALSA-2025:7432, ALSA-2025:7418, ALSA-2025:4263
AlmaLinux 9 php +23 8.0.30-3.el9_6 ALSA-2025:7432, ALSA-2025:7431, ALSA-2025:7418
AlmaLinux 9 php-pecl-redis6 6.1.0-2.module_el9.6.0+151+5f31e576 ALSA-2025:7418
AlmaLinux 9 php-pecl-rrd 2.0.3-4.module_el9.1.0+15+94ba28e4 ALSA-2025:7432, ALSA-2025:7418, ALSA-2025:4263
AlmaLinux 9 php-pecl-xdebug3 3.1.4-1.module_el9.1.0+15+94ba28e4 ALSA-2025:7432, ALSA-2025:7418, ALSA-2025:4263
AlmaLinux 9 php-pecl-zip 1.20.1-1.module_el9.1.0+15+94ba28e4 ALSA-2025:7432, ALSA-2025:7418, ALSA-2025:4263
AlmaLinux 8 apcu-panel +2 5.1.18-1.module_el8.6.0+2750+78feabcb ALSA-2026:2470, ALSA-2025:15687
AlmaLinux 8 libzip +1 1.6.1-1.module_el8.6.0+2750+78feabcb ALSA-2026:2470, ALSA-2025:15687
AlmaLinux 8 libzip-devel 1.6.1-1.module_el8.6.0+3239+bedf0508 ALSA-2026:2470, ALSA-2025:15687
AlmaLinux 8 php +25 7.4.33-3.module_el8.10.0+4114+3b36c618 ALSA-2026:2470, ALSA-2025:15687
AlmaLinux 8 php-pear 1:1.10.13-1.module_el8.10.0+3935+28808425 ALSA-2026:2470, ALSA-2025:15687
AlmaLinux 8 php-pecl-rrd 2.0.1-1.module_el8.6.0+2750+78feabcb ALSA-2026:2470, ALSA-2025:15687
AlmaLinux 8 php-pecl-xdebug 2.9.5-1.module_el8.6.0+2750+78feabcb ALSA-2026:2470
AlmaLinux 8 php-pecl-xdebug3 3.2.2-2.module_el8.10.0+3796+30ed3ef7 ALSA-2025:15687
AlmaLinux 8 php-pecl-zip 1.18.2-1.module_el8.6.0+2750+78feabcb ALSA-2026:2470, ALSA-2025:15687

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 10 php 8.3.19-1.el10_0 RLSA-2025:7489
Rocky Linux 9 php 8.0.30-3.el9_6 RLSA-2025:7432, RLSA-2025:7431, RLSA-2025:4263
Rocky Linux 9 php-pecl-apcu 5.1.21-1.module+el9.6.0+32040+1f1dedb8 RLSA-2025:7432, RLSA-2025:7418, RLSA-2025:4263
Rocky Linux 9 php-pecl-rrd 2.0.3-4.module+el9.5.0+29598+58484504 RLSA-2025:7432, RLSA-2025:7418, RLSA-2025:4263
Rocky Linux 9 php-pecl-xdebug3 3.1.4-1.module+el9.6.0+32040+1f1dedb8 RLSA-2025:7432, RLSA-2025:4263
Rocky Linux 9 php-pecl-zip 1.20.1-1.module+el9.6.0+32040+1f1dedb8 RLSA-2025:7432, RLSA-2025:7418, RLSA-2025:4263
Rocky Linux 8 libzip 1.6.1-1.module+el8.10.0+1912+72767185 RLSA-2026:2470, RLSA-2025:15687
Rocky Linux 8 php-pear 1:1.10.13-1.module+el8.10.0+1605+02e07af7 RLSA-2026:2470, RLSA-2025:15687
Rocky Linux 8 php-pecl-apcu 5.1.18-1.module+el8.10.0+1912+72767185 RLSA-2026:2470, RLSA-2025:15687
Rocky Linux 8 php-pecl-rrd 2.0.1-1.module+el8.4.0+414+2e7afcdd RLSA-2026:2470, RLSA-2025:15687
Rocky Linux 8 php-pecl-xdebug 2.9.5-1.module+el8.10.0+1912+72767185 RLSA-2026:2470
Rocky Linux 8 php-pecl-xdebug3 3.2.2-2.module+el8.10.0+1911+f499711e RLSA-2025:15687
Rocky Linux 8 php-pecl-zip 1.18.2-1.module+el8.10.0+1912+72767185 RLSA-2026:2470, RLSA-2025:15687
ReleasePackageFixed inAdvisory
SLES 15 SP6 php7 +4 7.4.33-150400.4.48.1 SUSE-SU-2025:1025-1
SLES 15 SP6 php8 +5 8.2.28-150600.3.16.1 SUSE-SU-2025:1012-1
SLES 15 SP5 php7 +3 7.4.33-150400.4.48.1 SUSE-SU-2025:1025-1
SLES 15 SP5 php8 +5 8.0.30-150400.4.54.1 SUSE-SU-2025:0994-1
SLES 15 SP4 php7 +3 7.4.33-150400.4.48.1 SUSE-SU-2025:1025-1
SLES 15 SP4 php8 +5 8.0.30-150400.4.54.1 SUSE-SU-2025:0994-1
SLES 15 SP3 php7 7.4.33-150200.3.76.1 SUSE-SU-2025:1026-1
Show 8 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 15 SP5 php7 +3 7.4.33-150400.4.48.1 SUSE-SU-2025:1025-1
SLES for SAP 15 SP5 php8 +5 8.0.30-150400.4.54.1 SUSE-SU-2025:0994-1
SLES for SAP 15 SP4 php7 +3 7.4.33-150400.4.48.1 SUSE-SU-2025:1025-1
SLES for SAP 15 SP4 php8 +5 8.0.30-150400.4.54.1 SUSE-SU-2025:0994-1
SLES for SAP 15 SP3 php7 7.4.33-150200.3.76.1 SUSE-SU-2025:1026-1
SLE HPC 15 SP5 php8 +5 8.0.30-150400.4.54.1 SUSE-SU-2025:0994-1
SLE HPC 15 SP4 php7 +3 7.4.33-150400.4.48.1 SUSE-SU-2025:1025-1
SLE HPC 15 SP4 php8 +5 8.0.30-150400.4.54.1 SUSE-SU-2025:0994-1
SLE HPC 15 SP3 php7 7.4.33-150200.3.76.1 SUSE-SU-2025:1026-1
SUSE Manager Server 4.3 php8 +5 8.0.30-150400.4.54.1 SUSE-SU-2025:0994-1
SUSE Enterprise Storage 7.1 php7 7.4.33-150200.3.76.1 SUSE-SU-2025:1026-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed php8 8.3.19-1.1 openSUSE-SU-2025:14895-1
openSUSE Leap 15.6 php7 +5 7.4.33-150400.4.48.1 SUSE-SU-2025:1025-1
openSUSE Leap 15.6 php8 +5 8.2.28-150600.3.16.1 SUSE-SU-2025:1012-1
ReleasePackageFixed inAdvisory
Alpine v3.24 php83 8.3.18-r0 —
Alpine v3.23 php83 8.3.18-r0 —
Alpine v3.22 php82 8.2.28-r0 —
Alpine v3.22 php83 8.3.18-r0 —
Alpine v3.21 php82 8.2.28-r0 —
Alpine v3.21 php83 8.3.18-r0 —
Alpine v3.20 php82 8.2.28-r0 —
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 php81 8.1.32-r0 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 php8.1 +26 8.1.32-1.amzn2023.0.1 ALAS2023-2025-916
Amazon Linux 2023 php8.2 +27 8.2.28-1.amzn2023.0.1 ALAS2023-2025-936
Amazon Linux 2023 php8.3 +28 8.3.19-1.amzn2023.0.1 ALAS2023-2025-922

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 php 8.3.19-1 —
Azure Linux 2 (CBL-Mariner) php 8.1.32-1 —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 10 php +23 8.3.19-1.el10_0 ELSA-2025-7489
Oracle Linux 9 apcu-panel +2 5.1.21-1.module+el9.1.0+20776+c1b960c0 ELSA-2025-7432, ELSA-2025-7418, ELSA-2025-4263
Oracle Linux 9 php +23 8.0.30-3.el9_6 ELSA-2025-7432, ELSA-2025-7431, ELSA-2025-7418
Oracle Linux 9 php-pecl-redis6 6.1.0-2.module+el9.6.0+90525+5083e899 ELSA-2025-7418
Oracle Linux 9 php-pecl-rrd 2.0.3-4.module+el9.1.0+20776+c1b960c0 ELSA-2025-7432, ELSA-2025-7418, ELSA-2025-4263
Oracle Linux 9 php-pecl-xdebug3 3.1.4-1.module+el9.1.0+20776+c1b960c0 ELSA-2025-7432, ELSA-2025-7418, ELSA-2025-4263
Oracle Linux 9 php-pecl-zip 1.20.1-1.module+el9.1.0+20776+c1b960c0 ELSA-2025-7432, ELSA-2025-7418, ELSA-2025-4263
Oracle Linux 8 apcu-panel +2 5.1.18-1.module+el8.10.0+90472+f810484b ELSA-2026-2470, ELSA-2025-15687
Oracle Linux 8 libzip +2 1.6.1-1.module+el8.10.0+90472+f810484b ELSA-2026-2470, ELSA-2025-15687
Oracle Linux 8 php +25 7.4.33-3.module+el8.10.0+90781+f71ba651 ELSA-2026-2470, ELSA-2025-15687
Oracle Linux 8 php-pear 1:1.10.13-1.module+el8.10.0+90472+f810484b ELSA-2026-2470, ELSA-2025-15687
Oracle Linux 8 php-pecl-rrd 2.0.1-1.module+el8.10.0+90472+f810484b ELSA-2026-2470, ELSA-2025-15687
Oracle Linux 8 php-pecl-xdebug 2.9.5-1.module+el8.10.0+90472+f810484b ELSA-2026-2470
Oracle Linux 8 php-pecl-xdebug3 3.2.2-2.module+el8.10.0+90469+8883f508 ELSA-2025-15687
Oracle Linux 8 php-pecl-zip 1.18.2-1.module+el8.10.0+90472+f810484b ELSA-2026-2470, ELSA-2025-15687

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Advisories 40

References