CVE-2025-6021Libxml2: integer overflow in xmlbuildqname() leads to stack buffer overflow in libxml2
- 7.5HighCVSS base score
- 1.5%Exploitation in 30 daysEPSS · top 26% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- YesPublic exploitsa reference or SSVC says so
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.
Public exploit
An exploit or proof of concept is public: anyone can try it against an unpatched system. A reference of the record is tagged as an exploit. CISA's SSVC rates its exploitation: a proof of concept is public.
Show the exploits1
References tagged exploit1 reference
- https://gitlab.gnome.org/GNOME/libxml2/-/issues/926 (opens in a new tab)exploitissue-tracking
Timeline
ID reserved
By redhat
Published
- 17 months later
· 17 months later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| redhatCNA (assigner) | 3.1 | High7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVDNVD · Modified | 3.1 | High7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
- EPSS (exploitation in 30 days)
- 1.5% · top 26% of all CVEs (18 Nov 2026)
- CISA SSVC
- Exploitation: poc · Automatable: yes · Technical impact: partial
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 7.5.
Affected products
libxml2
- affected < 2.14.4
Red Hat · Red Hat Enterprise Linux 10
- unaffected 0:2.12.5-7.el10_0 – < *
Red Hat · Red Hat Enterprise Linux 7 Extended Lifecycle Support
- unaffected 0:2.9.1-6.el7_9.10 – < *
Red Hat · Red Hat Enterprise Linux 8
- unaffected 0:2.9.7-21.el8_10.1 – < *
Red Hat · Red Hat Enterprise Linux 8
- unaffected 0:2.9.7-21.el8_10.1 – < *
Red Hat · Red Hat Enterprise Linux 8.2 Advanced Update Support
- unaffected 0:2.9.7-9.el8_2.3 – < *
Red Hat · Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support
- unaffected 0:2.9.7-9.el8_4.6 – < *
Red Hat · Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On
- unaffected 0:2.9.7-9.el8_4.6 – < *
Red Hat · Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support
- unaffected 0:2.9.7-13.el8_6.10 – < *
Red Hat · Red Hat Enterprise Linux 8.6 Telecommunications Update Service
- unaffected 0:2.9.7-13.el8_6.10 – < *
Red Hat · Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions
- unaffected 0:2.9.7-13.el8_6.10 – < *
Red Hat · Red Hat Enterprise Linux 8.8 Telecommunications Update Service
- unaffected 0:2.9.7-16.el8_8.9 – < *
Red Hat · Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions
- unaffected 0:2.9.7-16.el8_8.9 – < *
Red Hat · Red Hat Enterprise Linux 9
- unaffected 0:2.9.13-10.el9_6 – < *
Red Hat · Red Hat Enterprise Linux 9
- unaffected 0:2.9.13-10.el9_6 – < *
Red Hat · Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions
- unaffected 0:2.9.13-1.el9_0.5 – < *
Red Hat · Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions
- unaffected 0:2.9.13-3.el9_2.7 – < *
Red Hat · Red Hat Enterprise Linux 9.4 Extended Update Support
- unaffected 0:2.9.13-10.el9_4 – < *
Red Hat · Red Hat JBoss Core Services 2.4.62.SP2
All versions: unaffected
Red Hat · Red Hat OpenShift Container Platform 4.12
- unaffected 412.86.202509030110-0 – < *
Red Hat · Red Hat OpenShift Container Platform 4.13
- unaffected 413.92.202509030117-0 – < *
Red Hat · Red Hat OpenShift Container Platform 4.14
- unaffected 414.92.202508041909-0 – < *
Red Hat · Red Hat OpenShift Container Platform 4.15
- unaffected 415.92.202508192014-0 – < *
Red Hat · Red Hat OpenShift Container Platform 4.16
- unaffected 416.94.202508050040-0 – < *
Red Hat · Red Hat OpenShift Container Platform 4.17
- unaffected 417.94.202508141510-0 – < *
Red Hat · Red Hat OpenShift Container Platform 4.18
- unaffected 418.94.202508060022-0 – < *
Red Hat · Red Hat OpenShift Container Platform 4.19
- unaffected 4.19.9.6.202507230107-0 – < *
- unaffected 2.0.1-1754478727 – < *
Red Hat · Red Hat Hardened Images
- unaffected 2.15.2-0.3.hum1 – < *
Red Hat · Red Hat Insights proxy 1.5
- unaffected 1.5.5-1754504343 – < *
Red Hat · Red Hat Enterprise Linux 6
All versions: unknown
What to do
Workaround: 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.
References
References28
- RHSA-2025:10630 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2025:10698 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2025:10699 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2025:11580 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2025:11673 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2025:12098 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2025:12099 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2025:12199 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2025:12237 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2025:12239 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2025:12240 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2025:12241 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2025:13267 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2025:13289 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2025:13325 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2025:13335 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2025:13336 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2025:14059 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2025:14396 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2025:15308 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2025:15672 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2025:19020 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2026:7519 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- https://access.redhat.com/security/cve/CVE-2025-6021 (opens in a new tab)vdb-entryx_refsource_REDHAT
- RHBZ#2372406 (opens in a new tab)issue-trackingx_refsource_REDHAT
- https://gitlab.gnome.org/GNOME/libxml2/-/issues/926 (opens in a new tab)exploitissue-tracking
- https://lists.debian.org/debian-lts-announce/2025/07/msg00014.html (opens in a new tab)
- https://cert-portal.siemens.com/productcert/html/ssa-032379.html (opens in a new tab)
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2025-18175 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2025-6021)Record last updated .