CVE Vulnerabilities

CVE-2025-1219

Inaccurate Source Code Comments

Published: Mar 30, 2025 | Modified: Nov 03, 2025
CVSS 3.x
5.3
MEDIUM
Source:
NVD
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
CVSS 2.x
RedHat/V2
RedHat/V3
3.7 MODERATE
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N
Ubuntu
MEDIUM
root.io logo minimus.io logo echo.ai logo

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.

Weakness

The source code contains comments that do not accurately describe or explain aspects of the portion of the code with which the comment is associated.

Affected Software

NameVendorStart VersionEnd Version
PhpPhp8.1.0 (including)8.1.32 (excluding)
PhpPhp8.2.0 (including)8.2.28 (excluding)
PhpPhp8.3.0 (including)8.3.19 (excluding)
PhpPhp8.4.0 (including)8.4.5 (excluding)
Red Hat Enterprise Linux 10RedHatphp-0:8.3.19-1.el10_0*
Red Hat Enterprise Linux 8RedHatphp:8.2-8100020250903052702.f7998665*
Red Hat Enterprise Linux 9RedHatphp:8.1-9050020250423093228.9*
Red Hat Enterprise Linux 9RedHatphp:8.3-9060020250409105946.9*
Red Hat Enterprise Linux 9RedHatphp-0:8.0.30-3.el9_6*
Red Hat Enterprise Linux 9RedHatphp:8.2-9060020250428130539.9*
Php7.4Ubuntuesm-infra/focal*
Php7.4Ubuntufocal*
Php8.1Ubuntujammy*
Php8.3Ubuntunoble*
Php8.3Ubuntuoracular*
Php8.4Ubuntudevel*
Php8.4Ubuntuplucky*
Php8.4Ubuntuquesting*

Extended Description

Potential Mitigations

References