Libxml2: integer overflow in xmlbuildqname() leads to stack buffer overflow in libxml2
CVE-2025-6021Published 12 Jun 2025, 12:49 UTC
Real-world risk
3.8/ 10Low
Routine
PreliminaryFrom the CVSS vector only · confidence low
CVSS
7.5
scored by the vendor (CNA), CVSS 3.1
In plain words
No plain-language summary yet. The original description is below.
Original description (from redhat)
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.
Am I affected?
| Product | Affected versions (from the sources) | Fixed in |
|---|---|---|
| Red Hat Enterprise LinuxUbiquitous | not stated | — |
| libxml2Ubiquitous | < 2.14.4 | 2.14.4 |
| Red Hat OpenShift Container PlatformWidespread | not stated | — |
| Red Hat Discovery 1Common | not stated | — |
| Red Hat Hardened ImagesCommon | not stated | — |
| Red Hat Insights proxy 1.5Niche | not stated | — |
| Red Hat JBoss Core ServicesNiche | not stated | — |
What to do
Update to a fixed version: 2.14.4.
Why this score
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | Denial of serviceCrash or resource exhaustion only | From the CVSS vector | 0.40 |
| Attacker position | InternetAnyone on the Internet can reach a typical deployment | From the CVSS vector | 1.00 |
| Privileges needed | NoneNo account | From the CVSS vector | 1.00 |
| Victim interaction | NoneNothing | From the CVSS vector | 1.00 |
| Configuration | DefaultOut-of-the-box installs are vulnerable | From the CVSS vector | 1.00 |
| Reliability | ReliableDeterministic: injection, logic bug, path traversal | From the CVSS vector | 1.00 |
Threat level T3: Public proof of concept (× 0.95)
A qualifying GitHub proof of concept, an unverified Exploit-DB entry, CISA's SSVC says PoC, or a reference tagged as an exploit
- Reference tagged as exploit (link)
- CISA SSVC: proof of concept
EPSS 1.5% chance of exploitation in 30 days (percentile 75), as of 2026-12-02.
The arithmetic
- Prerequisites multiplied together1.000
- Threat T3: Public proof of concept0.950
- 10 × impact 0.4 × prerequisites 1 × threat 0.953.800
- Rounded to one decimal between 0.1 and 103.8
Exploitation and evidence timeline
- 12 Jun 2025 Published
- 3 Dec 2026 Reference tagged as exploit first seen
- 3 Dec 2026 CISA SSVC: proof of concept first seen
- 3 Dec 2026 Risk 3.8 (cvss fallback)
Weakness
CWE-787
References
- https://access.redhat.com/errata/RHSA-2025:10630redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2025:10698redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2025:10699redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2025:11580redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2025:11673redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2025:12098redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2025:12099redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2025:12199redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2025:12237redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2025:12239redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2025:12240redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2025:12241redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2025:13267redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2025:13289redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2025:13325redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2025:13335redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2025:13336redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2025:14059redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2025:14396redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2025:15308redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2025:15672redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2025:19020redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:7519redhat, vendor-advisory
- https://access.redhat.com/security/cve/CVE-2025-6021redhat, vdb-entry
- https://bugzilla.redhat.com/show_bug.cgi?id=2372406issue-tracking, redhat
- https://gitlab.gnome.org/GNOME/libxml2/-/issues/926exploit, issue-tracking
- https://lists.debian.org/debian-lts-announce/2025/07/msg00014.html
- https://cert-portal.siemens.com/productcert/html/ssa-032379.html
- CVE-2025-6021 on CVE.org