cve.bz

CVE-2025-6021 Out-of-bounds Write

7.5 highExploit referenceEPSS 1.5%Fix available

High (7.5). EPSS 1.5% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
1.5% (unchanged from 1.5% a week ago; 1.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 74th percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: yes · Technical impact: partial, assessed 2025-09-03. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-787 Out-of-bounds Write
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

  • Red Hat Red Hat Enterprise Linux 10: fixed in 0:2.12.5-7.el10_0
  • Red Hat Red Hat Enterprise Linux 7 Extended Lifecycle Support: fixed in 0:2.9.1-6.el7_9.10
  • Red Hat Red Hat Enterprise Linux 8: fixed in 0:2.9.7-21.el8_10.1
  • Red Hat Red Hat Enterprise Linux 8.2 Advanced Update Support: fixed in 0:2.9.7-9.el8_2.3
  • Red Hat Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support: fixed in 0:2.9.7-9.el8_4.6
  • Red Hat Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On: fixed in 0:2.9.7-9.el8_4.6
  • Red Hat Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support: fixed in 0:2.9.7-13.el8_6.10
  • Red Hat Red Hat Enterprise Linux 8.6 Telecommunications Update Service: fixed in 0:2.9.7-13.el8_6.10
  • Debian, Ubuntu, Red Hat, SUSE, openSUSE, AlmaLinux, Rocky Linux, Alpine, Azure Linux, Alpaquita, BellSoft Hardened Containers: fixed package versions per release
  • Vendor advisory: https://gitlab.gnome.org/GNOME/libxml2/-/issues/926

Ask an AI about this CVE

Show the promptExplain CVE-2025-6021 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-6021?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-6021?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-6021 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Badge for a README or a site

CVE-2025-6021

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

[![CVE-2025-6021](https://cve.bz/cve/badge/CVE-2025-6021.svg)](https://cve.bz/cve/CVE-2025-6021)

HTML:

<a href="https://cve.bz/cve/CVE-2025-6021"><img src="https://cve.bz/cve/badge/CVE-2025-6021.svg" alt="CVE-2025-6021"></a>

Affected

Versions

From the CNA's record in the CVE List.

Fixed in

ProductFixed in
Red Hat Enterprise Linux 100:2.12.5-7.el10_0
Red Hat Enterprise Linux 7 Extended Lifecycle Support0:2.9.1-6.el7_9.10
Red Hat Enterprise Linux 80:2.9.7-21.el8_10.1
Red Hat Enterprise Linux 8.2 Advanced Update Support0:2.9.7-9.el8_2.3
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support0:2.9.7-9.el8_4.6
Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On0:2.9.7-9.el8_4.6
Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support0:2.9.7-13.el8_6.10
Red Hat Enterprise Linux 8.6 Telecommunications Update Service0:2.9.7-13.el8_6.10
Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions0:2.9.7-13.el8_6.10
Red Hat Enterprise Linux 8.8 Telecommunications Update Service0:2.9.7-16.el8_8.9
Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions0:2.9.7-16.el8_8.9
Red Hat Enterprise Linux 90:2.9.13-10.el9_6
Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions0:2.9.13-1.el9_0.5
Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions0:2.9.13-3.el9_2.7
Red Hat Enterprise Linux 9.4 Extended Update Support0:2.9.13-10.el9_4
Red Hat OpenShift Container Platform 4.12412.86.202509030110-0
Red Hat OpenShift Container Platform 4.13413.92.202509030117-0
Red Hat OpenShift Container Platform 4.14414.92.202508041909-0
Red Hat OpenShift Container Platform 4.15415.92.202508192014-0
Red Hat OpenShift Container Platform 4.16416.94.202508050040-0
Red Hat OpenShift Container Platform 4.17417.94.202508141510-0
Red Hat OpenShift Container Platform 4.18418.94.202508060022-0
Red Hat OpenShift Container Platform 4.194.19.9.6.202507230107-0
Red Hat Discovery 22.0.1-1754478727
Red Hat Hardened Images2.15.2-0.3.hum1
Red Hat Insights proxy 1.51.5.5-1754504343

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11libxml22.9.10+dfsg-6.7+deb11u8DLA-4251-1
Debian12libxml22.9.14+dfsg-1.3~deb12u3DEBIAN-CVE-2025-6021
Debian13, 14libxml22.12.7+dfsg+really2.9.14-2DEBIAN-CVE-2025-6021
Ubuntu22.04:LTSlibxml22.9.13+dfsg-1ubuntu0.8UBUNTU-CVE-2025-6021 USN-7694-1
Ubuntu24.04:LTSlibxml22.9.14+dfsg-1.3ubuntu3.4UBUNTU-CVE-2025-6021 USN-7694-1
UbuntuPro:14.04:LTSlibxml22.9.1+dfsg1-3ubuntu4.13+esm8UBUNTU-CVE-2025-6021 USN-7694-1
UbuntuPro:16.04:LTSlibxml22.9.3+dfsg1-1ubuntu0.7+esm9UBUNTU-CVE-2025-6021 USN-7694-1
UbuntuPro:18.04:LTSlibxml22.9.4+dfsg1-6.1ubuntu1.9+esm4UBUNTU-CVE-2025-6021 USN-7694-1
UbuntuPro:20.04:LTSlibxml22.9.10+dfsg-5ubuntu0.20.04.10+esm1UBUNTU-CVE-2025-6021 USN-7694-1
Red Hatenterprise_linux:8::appstreamlibxml2-devel, libxml2-debuginfo, libxml2-debugsource and 1 more0:2.9.7-21.el8_10.1RHSA-2025:10698
Red Hatenterprise_linux:8::baseoslibxml2, python3-libxml2, libxml2-debuginfo and 2 more0:2.9.7-21.el8_10.1RHSA-2025:10698
Red Hatenterprise_linux:9::appstreamlibxml2-devel, libxml2-debuginfo, libxml2-debugsource and 1 more0:2.9.13-10.el9_6RHSA-2025:10699
Red Hatenterprise_linux:9::baseoslibxml2, python3-libxml2, libxml2-debuginfo and 2 more0:2.9.13-10.el9_6RHSA-2025:10699
Red Hatenterprise_linux:10.0libxml2, libxml2-devel, libxml2-static and 4 more0:2.12.5-7.el10_0RHSA-2025:10630
Red Hathummingbird:1libxml2, libxml2-16, libxml2-devel and 2 more0:2.15.2-0.3.hum1RHSA-2026:7519
Red Hatrhel_aus:8.2::appstreamlibxml2-devel, libxml2-debuginfo, libxml2-debugsource and 1 more0:2.9.7-9.el8_2.3RHSA-2025:12237
Red Hatrhel_aus:8.2::baseoslibxml2, python3-libxml2, libxml2-debuginfo and 2 more0:2.9.7-9.el8_2.3RHSA-2025:12237
Red Hatrhel_aus:8.4::appstream, rhel_eus_long_life:8.4::appstreamlibxml2-devel, libxml2-debuginfo, libxml2-debugsource and 1 more0:2.9.7-9.el8_4.6RHSA-2025:12241
Red Hatrhel_aus:8.4::baseos, rhel_eus_long_life:8.4::baseoslibxml2, python3-libxml2, libxml2-debuginfo and 2 more0:2.9.7-9.el8_4.6RHSA-2025:12241
Red Hatrhel_aus:8.6::appstream, rhel_e4s:8.6::appstream, rhel_tus:8.6::appstreamlibxml2-devel, libxml2-debuginfo, libxml2-debugsource and 1 more0:2.9.7-13.el8_6.10RHSA-2025:12098
Red Hatrhel_aus:8.6::baseos, rhel_e4s:8.6::baseos, rhel_tus:8.6::baseoslibxml2, python3-libxml2, libxml2-debuginfo and 2 more0:2.9.7-13.el8_6.10RHSA-2025:12098
9 more for Red Hat in the JSON and on Red Hat's page.
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise Micro 5.2 and 2 morelibxml2, python-libxml2-python2.9.7-150000.3.82.1SUSE-SU-2025:02275-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise Micro 5.3 and 5 morelibxml2, libxml2-python2.9.14-150400.5.44.1SUSE-SU-2025:02355-1
SUSELinux Enterprise High Performance Computing 15 SP5-ESPOS, Linux Enterprise High Performance Computing 15 SP5-LTSS, Linux Enterprise Micro 5.5 and 3 morelibxml2, libxml2-python2.10.3-150500.5.29.1SUSE-SU-2025:02314-1
SUSELinux Enterprise Micro 5.1libxml22.9.7-150000.3.82.1SUSE-SU-2025:02275-1
SUSELinux Enterprise Module for Basesystem 15 SP7libxml2, libxml2-python2.12.10-150700.4.3.1SUSE-SU-2025:02260-1
SUSELinux Enterprise Module for Python 3 15 SP6libxml2-python2.10.3-150500.5.29.1SUSE-SU-2025:02314-1
SUSELinux Enterprise Module for Python 3 15 SP7libxml2-python2.12.10-150700.4.3.1SUSE-SU-2025:02260-1
SUSELinux Enterprise Server 12 SP5-LTSS, Linux Enterprise Server LTSS Extended Security 12 SP5libxml2, python-libxml22.9.4-46.87.1SUSE-SU-2025:02294-1
SUSELinux Micro 6.0libxml22.11.6-10.1SUSE-SU-2025:20564-1
SUSELinux Micro 6.1libxml22.11.6-slfo.1.1_6.1SUSE-SU-2025:20607-1
openSUSELeap 15.6libxml2, libxml2-python2.10.3-150500.5.29.1SUSE-SU-2025:02314-1
openSUSELeap 15.6python-libxml2-python2.9.7-150000.3.82.1SUSE-SU-2025:02275-1
openSUSETumbleweedlibxml22.13.8-2.1openSUSE-SU-2025:15321-1
AlmaLinux8libxml2, libxml2-devel, python3-libxml22.9.7-21.el8_10.1ALSA-2025:10698
AlmaLinux9libxml2, libxml2-devel, python3-libxml22.9.13-10.el9_6ALSA-2025:10699
AlmaLinux10libxml2, libxml2-devel, libxml2-static and 1 more2.12.5-7.el10_0ALSA-2025:10630
Rocky Linux8libxml20:2.9.7-21.el8_10.1RLSA-2025:10698
Rocky Linux9libxml20:2.9.13-10.el9_6RLSA-2025:10699
Rocky Linux10libxml20:2.12.5-7.el10_0RLSA-2025:10630
Alpinev3.21, v3.22, v3.23 and 1 morelibxml22.13.9-r0ALPINE-CVE-2025-6021
Alpinev3.22qt6-qtwebengine6.8.3-r5ALPINE-CVE-2025-6021
Azure Linux2libxml22.10.4-8AZL-64101
Azure Linux3libxml22.11.5-6AZL-64124
Alpaquita23libxml22.10.4-r5BELL-CVE-2025-6021
Alpaquita25, streamlibxml22.13.8-r1BELL-CVE-2025-6021
BellSoft Hardened Containers23libxml22.10.4-r5BELL-CVE-2025-6021
BellSoft Hardened Containers25, streamlibxml22.13.8-r1BELL-CVE-2025-6021

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine · Alpaquita · BellSoft Hardened Containers.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This vulnerability is rated Moderate due to the lack of confidentiality impact and limited integrity concerns, with the main risk being potential denial-of-service from a crash. Exploitation requires crafted XML input and specific application behavior using xmlBuildQName. While it’s a write overflow, modern mitigations make remote code execution unlikely.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options don't meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability. Users are strongly advised to apply vendor-supplied patches as soon as they become available to address the underlying integer overflow flaw in the affected code.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10libxml2-0:2.12.5-7.el10_0Fixed 2025-07-08RHSA-2025:10630
Red Hat Enterprise Linux 7 Extended Lifecycle Supportlibxml2-0:2.9.1-6.el7_9.10Fixed 2025-07-30RHSA-2025:12240
Red Hat Enterprise Linux 8libxml2-0:2.9.7-21.el8_10.1Fixed 2025-07-09RHSA-2025:10698
Red Hat Enterprise Linux 8.2 Advanced Update Supportlibxml2-0:2.9.7-9.el8_2.3Fixed 2025-07-30RHSA-2025:12237
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Supportlibxml2-0:2.9.7-9.el8_4.6Fixed 2025-07-30RHSA-2025:12241
Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-Onlibxml2-0:2.9.7-9.el8_4.6Fixed 2025-07-30RHSA-2025:12241
Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Supportlibxml2-0:2.9.7-13.el8_6.10Fixed 2025-07-29RHSA-2025:12098
Red Hat Enterprise Linux 8.6 Telecommunications Update Servicelibxml2-0:2.9.7-13.el8_6.10Fixed 2025-07-29RHSA-2025:12098
Red Hat Enterprise Linux 8.6 Update Services for SAP Solutionslibxml2-0:2.9.7-13.el8_6.10Fixed 2025-07-29RHSA-2025:12098
Red Hat Enterprise Linux 8.8 Telecommunications Update Servicelibxml2-0:2.9.7-16.el8_8.9Fixed 2025-07-30RHSA-2025:12239
Red Hat Enterprise Linux 8.8 Update Services for SAP Solutionslibxml2-0:2.9.7-16.el8_8.9Fixed 2025-07-30RHSA-2025:12239
Red Hat Enterprise Linux 9libxml2-0:2.9.13-10.el9_6Fixed 2025-07-09RHSA-2025:10699
Red Hat Enterprise Linux 9.0 Update Services for SAP Solutionslibxml2-0:2.9.13-1.el9_0.5Fixed 2025-07-29RHSA-2025:12099
Red Hat Enterprise Linux 9.2 Update Services for SAP Solutionslibxml2-0:2.9.13-3.el9_2.7Fixed 2025-07-29RHSA-2025:12199
Red Hat Enterprise Linux 9.4 Extended Update Supportlibxml2-0:2.9.13-10.el9_4Fixed 2025-07-23RHSA-2025:11580
Red Hat JBoss Core Services 2.4.62.SP2libxml2Fixed 2025-10-27RHSA-2025:19020
Red Hat OpenShift Container Platform 4.12openshift/ose-rhel-coreos-8:412.86.202509030110-0Fixed 2025-09-11RHSA-2025:15308
Red Hat OpenShift Container Platform 4.13openshift/ose-rhel-coreos-9:413.92.202509030117-0Fixed 2025-09-18RHSA-2025:15672
Red Hat OpenShift Container Platform 4.14openshift/ose-rhel-coreos-9:414.92.202508041909-0Fixed 2025-08-14RHSA-2025:13289
Red Hat Enterprise Linux 6libxml2Out of support scope
8 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-6021.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-26-134-10Siemens SIMATIC2026-05-12Critical ManufacturingSIMATIC CN 4100none listed
ICSA-25-259-02Hitachi Energy RTU500 Series2025-09-09EnergyRTU500 series CMU Firmware version 12.7.1 – 12.7.7, RTU500 series CMU Firmware version 13.5.1 – 13.5.3, RTU500 series CMU Firmware version 13.6.1 and 1 morenone listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

References

Check your stackJSON