CVE record · CVE-2025-6021

Libxml2: integer overflow in xmlbuildqname() leads to stack buffer overflow in libxml2

CVSS 7.5 HighEPSS 0.014 · 71st percentile

Published by the CVE Program (CNA: redhat) at 12 Jun 2025, 12:49 UTC. agentprime has not analysed this yet, so whether it affects any app is not known. This CVE names a vendor and product rather than a package, so the lockfile check doesn’t match it.

Affected products, as the CNA wrote them
VendorProductVersions
Not given Not given Package name: libxml2 https://gitlab.gnome.org/GNOME/libxml2/
  • affected before 2.14.4 semver
Other versions: unaffected
Red Hat Red Hat Enterprise Linux 10 Package name: libxml2 https://access.redhat.com/downloads/content/package-browser/
  • unaffected 0:2.12.5-7.el10_0 to before * rpm
Other versions: affected
Red Hat Red Hat Enterprise Linux 7 Extended Lifecycle Support Package name: libxml2 https://access.redhat.com/downloads/content/package-browser/
  • unaffected 0:2.9.1-6.el7_9.10 to before * rpm
Other versions: affected
Red Hat Red Hat Enterprise Linux 8 Package name: libxml2 https://access.redhat.com/downloads/content/package-browser/
  • unaffected 0:2.9.7-21.el8_10.1 to before * rpm
Other versions: affected
Red Hat Red Hat Enterprise Linux 8 Package name: libxml2 https://access.redhat.com/downloads/content/package-browser/
  • unaffected 0:2.9.7-21.el8_10.1 to before * rpm
Other versions: affected
Red Hat Red Hat Enterprise Linux 8.2 Advanced Update Support Package name: libxml2 https://access.redhat.com/downloads/content/package-browser/
  • unaffected 0:2.9.7-9.el8_2.3 to before * rpm
Other versions: affected
Red Hat Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support Package name: libxml2 https://access.redhat.com/downloads/content/package-browser/
  • unaffected 0:2.9.7-9.el8_4.6 to before * rpm
Other versions: affected
Red Hat Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On Package name: libxml2 https://access.redhat.com/downloads/content/package-browser/
  • unaffected 0:2.9.7-9.el8_4.6 to before * rpm
Other versions: affected
Red Hat Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support Package name: libxml2 https://access.redhat.com/downloads/content/package-browser/
  • unaffected 0:2.9.7-13.el8_6.10 to before * rpm
Other versions: affected
Red Hat Red Hat Enterprise Linux 8.6 Telecommunications Update Service Package name: libxml2 https://access.redhat.com/downloads/content/package-browser/
  • unaffected 0:2.9.7-13.el8_6.10 to before * rpm
Other versions: affected
Red Hat Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions Package name: libxml2 https://access.redhat.com/downloads/content/package-browser/
  • unaffected 0:2.9.7-13.el8_6.10 to before * rpm
Other versions: affected
Red Hat Red Hat Enterprise Linux 8.8 Telecommunications Update Service Package name: libxml2 https://access.redhat.com/downloads/content/package-browser/
  • unaffected 0:2.9.7-16.el8_8.9 to before * rpm
Other versions: affected
Red Hat Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions Package name: libxml2 https://access.redhat.com/downloads/content/package-browser/
  • unaffected 0:2.9.7-16.el8_8.9 to before * rpm
Other versions: affected
Red Hat Red Hat Enterprise Linux 9 Package name: libxml2 https://access.redhat.com/downloads/content/package-browser/
  • unaffected 0:2.9.13-10.el9_6 to before * rpm
Other versions: affected
Red Hat Red Hat Enterprise Linux 9 Package name: libxml2 https://access.redhat.com/downloads/content/package-browser/
  • unaffected 0:2.9.13-10.el9_6 to before * rpm
Other versions: affected
Red Hat Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions Package name: libxml2 https://access.redhat.com/downloads/content/package-browser/
  • unaffected 0:2.9.13-1.el9_0.5 to before * rpm
Other versions: affected
Red Hat Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions Package name: libxml2 https://access.redhat.com/downloads/content/package-browser/
  • unaffected 0:2.9.13-3.el9_2.7 to before * rpm
Other versions: affected
Red Hat Red Hat Enterprise Linux 9.4 Extended Update Support Package name: libxml2 https://access.redhat.com/downloads/content/package-browser/
  • unaffected 0:2.9.13-10.el9_4 to before * rpm
Other versions: affected
Red Hat Red Hat JBoss Core Services 2.4.62.SP2 Package name: libxml2 https://access.redhat.com/downloads/content/package-browser/ No versions given Other versions: unaffected
Red Hat Red Hat OpenShift Container Platform 4.12 Package name: openshift/ose-rhel-coreos-8 https://access.redhat.com/downloads/content/package-browser/
  • unaffected 412.86.202509030110-0 to before * rpm
Other versions: affected
Red Hat Red Hat OpenShift Container Platform 4.13 Package name: openshift/ose-rhel-coreos-9 https://access.redhat.com/downloads/content/package-browser/
  • unaffected 413.92.202509030117-0 to before * rpm
Other versions: affected
Red Hat Red Hat OpenShift Container Platform 4.14 Package name: openshift/ose-rhel-coreos-9 https://catalog.redhat.com/software/containers/
  • unaffected 414.92.202508041909-0 to before * rpm
Other versions: affected
Red Hat Red Hat OpenShift Container Platform 4.15 Package name: openshift/ose-rhel-coreos-9 https://access.redhat.com/downloads/content/package-browser/
  • unaffected 415.92.202508192014-0 to before * rpm
Other versions: affected
Red Hat Red Hat OpenShift Container Platform 4.16 Package name: openshift/ose-rhel-coreos-9 https://catalog.redhat.com/software/containers/
  • unaffected 416.94.202508050040-0 to before * rpm
Other versions: affected
Red Hat Red Hat OpenShift Container Platform 4.17 Package name: openshift/ose-rhel-coreos-9 https://access.redhat.com/downloads/content/package-browser/
  • unaffected 417.94.202508141510-0 to before * rpm
Other versions: affected
Red Hat Red Hat OpenShift Container Platform 4.18 Package name: openshift/ose-rhel-coreos-9 https://catalog.redhat.com/software/containers/
  • unaffected 418.94.202508060022-0 to before * rpm
Other versions: affected
Red Hat Red Hat OpenShift Container Platform 4.19 Package name: openshift/ose-rhel-coreos-9 https://catalog.redhat.com/software/containers/
  • unaffected 4.19.9.6.202507230107-0 to before * rpm
Other versions: affected
Red Hat Red Hat Discovery 2 Package name: discovery/discovery-server-rhel9 https://catalog.redhat.com/software/containers/
  • unaffected 2.0.1-1754478727 to before * rpm
Other versions: affected
Red Hat Red Hat Hardened Images Package name: libxml2-main https://catalog.redhat.com/software/containers/
  • unaffected 2.15.2-0.3.hum1 to before * rpm
Other versions: affected
Red Hat Red Hat Insights proxy 1.5 Package name: insights-proxy/insights-proxy-container-rhel9 https://catalog.redhat.com/software/containers/
  • unaffected 1.5.5-1754504343 to before * rpm
Other versions: affected
Red Hat Red Hat Enterprise Linux 6 Package name: libxml2 https://access.redhat.com/downloads/content/package-browser/ No versions given Other versions: unknown
Identifiers
CVE-2025-6021
CNA
redhat
Weakness (CWE)
CWE-787
Published
12 Jun 2025
Updated
5 Nov 2026

Not analysed yet

We haven’t published our own analysis of this CVE. If a person reviews it, this page will say what’s affected and what has to be true for it to matter.

Severity and exploitation

ScoreRatingCVSSVectorSource
7.5 High 3.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CNA (redhat)
  • CISA KEV Not listed.
  • EPSS 0.014, the 71st percentile, on 5 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 12 Jun 2025, 12:49 UTC Confirmed by the CVE List
  2. 12 Jun 2025, 13:15 UTC Confirmed by NVD

Sources

References from the CNA

Facts on this page come from the CVE List as the CNA published them, with CVSS from the sources named above, CISA KEV and FIRST EPSS. Vendors, products and versions are shown as the CNA wrote them. We don’t reproduce the CVE’s description.