CVE-2025-6021
Libxml2: integer overflow in xmlbuildqname() leads to stack buffer overflow in libxml2
Reported by redhat · Published June 12, 2025
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| openjdk-26-openj9 | Chainguard | 0.59.0-r1 |
| libxml2-static | Amazon Linux | 2.10.4-1.amzn2023.0.11, 2.9.1-6.amzn2.5.18 |
| java-min | Bitnami | 8.0.481, 1.8.0 |
| openjdk-17-openj9 | Chainguard | 0.59.0-r1 |
| python3-libxml2 | Amazon Linux | 2.10.4-1.amzn2023.0.11 |
| openjdk-21-openj9 | Chainguard | 0.59.0-r1 |
| libxml2 | Alpine | 2.13.9-r0 |
| libxml2-python | Amazon Linux | 2.9.1-6.amzn2.5.18 |
| openjdk-8-openj9 | Chainguard | 0.59.0-r1 |
| libxml2-devel | Amazon Linux | 2.10.4-1.amzn2023.0.11, 2.9.1-6.amzn2.5.18 |
| libxml2 | Amazon Linux | 2.10.4-1.amzn2023.0.11, 2.9.1-6.amzn2.5.18 |
| libxml2 | gitlab.gnome.org | 2.14.4 |
8 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| 0 | ||
| Red Hat | Red Hat Enterprise Linux 10 | 0:2.12.5-7.el10_0 |
| Red Hat | Red Hat Enterprise Linux 7 Extended Lifecycle Support | 0:2.9.1-6.el7_9.10 |
| Red Hat | Red Hat Enterprise Linux 8 | 0:2.9.7-21.el8_10.1 |
| Red Hat | Red Hat Enterprise Linux 8 | 0:2.9.7-21.el8_10.1 |
| Red Hat | Red Hat Enterprise Linux 8.2 Advanced Update Support | 0:2.9.7-9.el8_2.3 |
| Red Hat | Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support | 0:2.9.7-9.el8_4.6 |
| Red Hat | Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On | 0:2.9.7-9.el8_4.6 |
| Red Hat | Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support | 0:2.9.7-13.el8_6.10 |
| Red Hat | Red Hat Enterprise Linux 8.6 Telecommunications Update Service | 0:2.9.7-13.el8_6.10 |
| Red Hat | Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions | 0:2.9.7-13.el8_6.10 |
| Red Hat | Red Hat Enterprise Linux 8.8 Telecommunications Update Service | 0:2.9.7-16.el8_8.9 |
| Red Hat | Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions | 0:2.9.7-16.el8_8.9 |
| Red Hat | Red Hat Enterprise Linux 9 | 0:2.9.13-10.el9_6 |
| Red Hat | Red Hat Enterprise Linux 9 | 0:2.9.13-10.el9_6 |
| Red Hat | Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions | 0:2.9.13-1.el9_0.5 |
| Red Hat | Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions | 0:2.9.13-3.el9_2.7 |
| Red Hat | Red Hat Enterprise Linux 9.4 Extended Update Support | 0:2.9.13-10.el9_4 |
| Red Hat | Red Hat JBoss Core Services 2.4.62.SP2 | |
| Red Hat | Red Hat OpenShift Container Platform 4.12 | 412.86.202509030110-0 |
…and 69 more
Timeline
- Jun 12, 2025 CVE Published
- Jun 13, 2025 EPSS Score (30 in total, the first dated here)
- Mar 17, 2026 Security Advisory (83 in total, the first dated here)
- Mar 26, 2026 Coalition ESS Score (2 in total, the first dated here)
- Apr 18, 2026 PoC Published
- Sep 26, 2026 Distribution Patch (66 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-6021
vulnetix vdb fixes CVE-2025-6021
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-6021/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- RHSA-2025:10630 vendor-advisoryx_refsource_REDHAT
- RHSA-2025:10698 vendor-advisoryx_refsource_REDHAT
- RHSA-2025:10699 vendor-advisoryx_refsource_REDHAT
- RHSA-2025:11580 vendor-advisoryx_refsource_REDHAT
- RHSA-2025:11673 vendor-advisoryx_refsource_REDHAT
- RHSA-2025:12098 vendor-advisoryx_refsource_REDHAT
- RHSA-2025:12099 vendor-advisoryx_refsource_REDHAT
- RHSA-2025:12199 vendor-advisoryx_refsource_REDHAT
- RHSA-2025:12237 vendor-advisoryx_refsource_REDHAT
- RHSA-2025:12239 vendor-advisoryx_refsource_REDHAT
- RHSA-2025:12240 vendor-advisoryx_refsource_REDHAT
- RHSA-2025:12241 vendor-advisoryx_refsource_REDHAT
- RHSA-2025:13267 vendor-advisoryx_refsource_REDHAT
- RHSA-2025:13289 vendor-advisoryx_refsource_REDHAT
- RHSA-2025:13325 vendor-advisoryx_refsource_REDHAT
- RHSA-2025:13335 vendor-advisoryx_refsource_REDHAT
- RHSA-2025:13336 vendor-advisoryx_refsource_REDHAT
- RHSA-2025:14059 vendor-advisoryx_refsource_REDHAT
- RHSA-2025:14396 vendor-advisoryx_refsource_REDHAT
- RHSA-2025:15308 vendor-advisoryx_refsource_REDHAT
…and 8 more