CVE-2025-6021: Libxml2: integer overflow in xmlbuildqname() leads to stack buffer overflow in libxml2
Vulnerability summary
CVE-2025-6021 is a high (CVSS 7.5) Out-of-bounds Write vulnerability in redhat enterprise_linux. EPSS estimates a 1.47% chance of exploitation in the next 30 days, higher than 74.6% of scored vulnerabilities. 1 public exploit is recorded.
Public exploit (reference, Date unknown)
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 24 · Related 11Timeline
- 12-06-2025PublishedVulnerability first disclosed.
- 05-11-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
6 scores · 6 sources · 1 version- OSV · AlpineEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · UbuntuEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · DebianEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · ChainguardEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- NVDNIST7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS trend
Probability
1.47%
Chance of exploitation in the next 30 days
Percentile
75%
Versus all other CVEs
30-day change
Increase +0.10 pp
From 1.37% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
1 foundExploit Reference (gitlab.gnome.org)
Maturity: unknown
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Chainguard39 products
- openjdk-11-openj9< 0.59.0-r2
- openjdk-11-openj9-dbg< 0.59.0-r2
- openjdk-11-openj9-default-jdk< 0.59.0-r2
- openjdk-11-openj9-default-jvm< 0.59.0-r2
- openjdk-11-openj9-doc< 0.59.0-r2
Redhat19 products
- enterprise_linux8.0 | 9.0 | 10.0
- enterprise_linux_eus8.4 | 8.6 | 8.8 | 9.4 | 9.6 | 10.0
- enterprise_linux_for_arm_648.0_aarch64 | 9.0_aarch64 | 9.4_aarch64 | 10.0_aarch64
- enterprise_linux_for_arm_64_eus9.4_aarch64 | 9.6_aarch64 | 10.0_aarch64
- enterprise_linux_for_ibm_z_systems8.0_s390x | 9.4_s390x | 10.0_s390x
Alpine2 products
- libxml2< 2.13.9-r0
- qt6-qtwebengine< 6.8.3-r5
Debian1 product
- libxml2< 2.9.14+dfsg-1.3~deb12u3 | < 2.12.7+dfsg+really2.9.14-2
Ubuntu1 product
- libxml2< 2.9.1+dfsg1-3ubuntu4.13+esm8 | < 2.9.3+dfsg1-1ubuntu0.7+esm9 | < 2.9.4+dfsg1-6.1ubuntu1.9+esm4 | < 2.9.10+dfsg-5ubuntu0.20.04.10+esm1 | < 2.9.13+dfsg-1ubuntu0.8 | < 2.9.14+dfsg-1.3ubuntu3.4
Xmlsoft1 product
- libxml2< 2.14.4
6 vendors · 63 products
References
38 links- access.redhat.com/errata/RHSA-2025:10630Vendor AdvisoryX Refsource REDHATAdvisoryThird Party Advisory
- access.redhat.com/errata/RHSA-2025:10698Vendor AdvisoryX Refsource REDHATAdvisoryThird Party Advisory
- access.redhat.com/errata/RHSA-2025:10699Vendor AdvisoryX Refsource REDHATAdvisoryThird Party Advisory
- access.redhat.com/errata/RHSA-2025:11580Vendor AdvisoryX Refsource REDHATAdvisoryThird Party Advisory
- access.redhat.com/errata/RHSA-2025:12098Vendor AdvisoryX Refsource REDHATAdvisoryThird Party Advisory
- access.redhat.com/errata/RHSA-2025:12099Vendor AdvisoryX Refsource REDHATAdvisoryThird Party Advisory
- access.redhat.com/errata/RHSA-2025:12199Vendor AdvisoryX Refsource REDHATAdvisoryThird Party Advisory
- access.redhat.com/errata/RHSA-2025:12237Vendor AdvisoryX Refsource REDHATAdvisoryThird Party Advisory
- access.redhat.com/errata/RHSA-2025:12239Vendor AdvisoryX Refsource REDHATAdvisoryThird Party Advisory
Show all 38 references
- access.redhat.com/errata/RHSA-2025:12240Vendor AdvisoryX Refsource REDHATAdvisoryThird Party Advisory
- access.redhat.com/errata/RHSA-2025:12241Vendor AdvisoryX Refsource REDHATAdvisoryThird Party Advisory
- access.redhat.com/errata/RHSA-2025:13267Vendor AdvisoryX Refsource REDHATAdvisoryThird Party Advisory
- access.redhat.com/errata/RHSA-2025:13289Vendor AdvisoryX Refsource REDHATAdvisoryThird Party Advisory
- access.redhat.com/errata/RHSA-2025:13325Vendor AdvisoryX Refsource REDHATAdvisoryThird Party Advisory
- access.redhat.com/errata/RHSA-2025:13335Vendor AdvisoryX Refsource REDHATAdvisoryThird Party Advisory
- access.redhat.com/errata/RHSA-2025:13336Vendor AdvisoryX Refsource REDHATAdvisoryThird Party Advisory
- access.redhat.com/errata/RHSA-2025:14059Vendor AdvisoryX Refsource REDHATAdvisoryThird Party Advisory
- access.redhat.com/errata/RHSA-2025:14396Vendor AdvisoryX Refsource REDHATAdvisoryThird Party Advisory
- access.redhat.com/errata/RHSA-2025:15308Vendor AdvisoryX Refsource REDHATAdvisoryThird Party Advisory
- access.redhat.com/errata/RHSA-2025:15672Vendor AdvisoryX Refsource REDHATAdvisoryThird Party Advisory
- access.redhat.com/security/cve/CVE-2025-6021VDB EntryX Refsource REDHATREPORTAdvisoryThird Party Advisory