Vulnerability · Published Jun 12, 2025 · Assigned by redhat

CVE-2025-6021Libxml2: integer overflow in xmlbuildqname() leads to stack buffer overflow in libxml2

High 7.5

In plain English

A high-severity out-of-bounds write in libxml2. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 1.4% (higher than 72% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.5High
Exploit odds (30 days)1.4%top 28.0% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official description

A flaw was found in libxml2's xmlBuildQName function, where integer overflows in buffer size calculations can lead to a stack-based buffer overflow. This issue can result in memory corruption or a denial of service when processing crafted input.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:10libxml22.12.5-7.el10_0ALSA-2025:10630
AlmaLinux:8libxml22.9.7-21.el8_10.1ALSA-2025:10698
AlmaLinux:9libxml22.9.13-10.el9_6ALSA-2025:10699
AlmaLinux:10libxml2-devel2.12.5-7.el10_0ALSA-2025:10630
AlmaLinux:8libxml2-devel2.9.7-21.el8_10.1ALSA-2025:10698
AlmaLinux:9libxml2-devel2.9.13-10.el9_6ALSA-2025:10699
AlmaLinux:10libxml2-static2.12.5-7.el10_0ALSA-2025:10630
AlmaLinux:10python3-libxml22.12.5-7.el10_0ALSA-2025:10630
AlmaLinux:8python3-libxml22.9.7-21.el8_10.1ALSA-2025:10698
AlmaLinux:9python3-libxml22.9.13-10.el9_6ALSA-2025:10699
Alpine:v3.21libxml22.13.9-r0ALPINE-CVE-2025-6021
Alpine:v3.22libxml22.13.9-r0ALPINE-CVE-2025-6021
Alpine:v3.23libxml22.13.9-r0ALPINE-CVE-2025-6021
Alpine:v3.24libxml22.13.9-r0ALPINE-CVE-2025-6021
Alpine:v3.22qt6-qtwebengine6.8.3-r5ALPINE-CVE-2025-6021
Debian:12libxml22.9.14+dfsg-1.3~deb12u3DEBIAN-CVE-2025-6021
Debian:13libxml22.12.7+dfsg+really2.9.14-2DEBIAN-CVE-2025-6021
Debian:14libxml22.12.7+dfsg+really2.9.14-2DEBIAN-CVE-2025-6021
Rocky Linux:10libxml20:2.12.5-7.el10_0RLSA-2025:10630
Rocky Linux:8libxml20:2.9.7-21.el8_10.1RLSA-2025:10698
Rocky Linux:9libxml20:2.9.13-10.el9_6RLSA-2025:10699
Ubuntu:22.04:LTSlibxml22.9.13+dfsg-1ubuntu0.8USN-7694-1
Ubuntu:22.04:LTSlibxml22.9.13+dfsg-1ubuntu0.8UBUNTU-CVE-2025-6021
Ubuntu:24.04:LTSlibxml22.9.14+dfsg-1.3ubuntu3.4USN-7694-1
Ubuntu:24.04:LTSlibxml22.9.14+dfsg-1.3ubuntu3.4UBUNTU-CVE-2025-6021

Affected products (as reported)

VendorProductVersions
libxml2 0 – before 2.14.4
Red Hat Red Hat Enterprise Linux 10 see references
Red Hat Red Hat Enterprise Linux 7 Extended Lifecycle Support see references
Red Hat Red Hat Enterprise Linux 8 see references
Red Hat Red Hat Enterprise Linux 8 see references
Red Hat Red Hat Enterprise Linux 8.2 Advanced Update Support see references
Red Hat Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support see references
Red Hat Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On see references
Red Hat Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support see references
Red Hat Red Hat Enterprise Linux 8.6 Telecommunications Update Service see references
Red Hat Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions see references
Red Hat Red Hat Enterprise Linux 8.8 Telecommunications Update Service see references
Red Hat Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions see references
Red Hat Red Hat Enterprise Linux 9 see references
Red Hat Red Hat Enterprise Linux 9 see references
Red Hat Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions see references
Red Hat Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions see references
Red Hat Red Hat Enterprise Linux 9.4 Extended Update Support see references
Red Hat Red Hat JBoss Core Services 2.4.62.SP2 see references
Red Hat Red Hat OpenShift Container Platform 4.12 see references
Red Hat Red Hat OpenShift Container Platform 4.13 see references
Red Hat Red Hat OpenShift Container Platform 4.14 see references
Red Hat Red Hat OpenShift Container Platform 4.15 see references
Red Hat Red Hat OpenShift Container Platform 4.16 see references
Red Hat Red Hat OpenShift Container Platform 4.17 see references
Red Hat Red Hat OpenShift Container Platform 4.18 see references
Red Hat Red Hat OpenShift Container Platform 4.19 see references
Red Hat Red Hat Discovery 2 see references
Red Hat Red Hat Hardened Images see references
Red Hat Red Hat Insights proxy 1.5 see references

Weakness: CWE-787 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

References