CVE-2025-1219
JSON

6.3medium

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

Severity
6.3medium CVSS:4.0 by php
Exploit likelihood
0.74% (higher than 55% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
php
Also known as
BIT-LIBPHP-2025-1219BIT-PHP-2025-1219BIT-PHP-MIN-2025-1219GHSA-p3x9-6h7p-cgfc

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

Product or packageVersionsReported by
PHP Group PHPfrom 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.5CVE List
php phpfrom 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.5NVD
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.5Bitnami Vulnerability Database
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.5Bitnami Vulnerability Database
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.5Bitnami Vulnerability Database

All scores

php6.3medium CVSS:4.0CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
NVD5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Bitnami Vulnerability Databasemedium rating

Classification

CWE-1116

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

En PHP (versión 8.1.* anterior a 8.1.32, 8.2.* anterior a 8.2.28, 8.3.* anterior a 8.3.19 y 8.4.* anterior a 8.4.5), al solicitar un recurso HTTP mediante las extensiones DOM o SimpleXML, se utiliza un encabezado de tipo de contenido incorrecto para determinar el conjunto de caracteres cuando el recurso solicitado realiza una redirección. Esto puede provocar que el documento resultante se analice incorrectamente o que se omitan las validaciones.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-1219 changed 2025-11-03CVE Terms of Use
NVDCVE-2025-1219 changed 2026-06-17Public domain
Bitnami Vulnerability DatabaseBIT-LIBPHP-2025-1219 changed 2026-09-08Apache-2.0
Bitnami Vulnerability DatabaseBIT-PHP-2025-1219 changed 2026-09-08Apache-2.0
Bitnami Vulnerability DatabaseBIT-PHP-MIN-2025-1219 changed 2026-09-08Apache-2.0