VDB

CVE-2025-6021

CVE-2025-6021 PUBLISHED CVSS 7.5 HIGH

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.

PackageEcosystemFixed in
openjdk-26-openj9Chainguard0.59.0-r1
libxml2-staticAmazon Linux2.10.4-1.amzn2023.0.11, 2.9.1-6.amzn2.5.18
java-minBitnami8.0.481, 1.8.0
openjdk-17-openj9Chainguard0.59.0-r1
python3-libxml2Amazon Linux2.10.4-1.amzn2023.0.11
openjdk-21-openj9Chainguard0.59.0-r1
libxml2Alpine2.13.9-r0
libxml2-pythonAmazon Linux2.9.1-6.amzn2.5.18
openjdk-8-openj9Chainguard0.59.0-r1
libxml2-develAmazon Linux2.10.4-1.amzn2023.0.11, 2.9.1-6.amzn2.5.18
libxml2Amazon Linux2.10.4-1.amzn2023.0.11, 2.9.1-6.amzn2.5.18
libxml2gitlab.gnome.org2.14.4

8 more packages have a fixed version. See every fix in Lookup.

Risk scores

CVSS 3.1
7.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected products

VendorProductVersions
0
Red HatRed Hat Enterprise Linux 100:2.12.5-7.el10_0
Red HatRed Hat Enterprise Linux 7 Extended Lifecycle Support0:2.9.1-6.el7_9.10
Red HatRed Hat Enterprise Linux 80:2.9.7-21.el8_10.1
Red HatRed Hat Enterprise Linux 80:2.9.7-21.el8_10.1
Red HatRed Hat Enterprise Linux 8.2 Advanced Update Support0:2.9.7-9.el8_2.3
Red HatRed Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support0:2.9.7-9.el8_4.6
Red HatRed Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On0:2.9.7-9.el8_4.6
Red HatRed Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support0:2.9.7-13.el8_6.10
Red HatRed Hat Enterprise Linux 8.6 Telecommunications Update Service0:2.9.7-13.el8_6.10
Red HatRed Hat Enterprise Linux 8.6 Update Services for SAP Solutions0:2.9.7-13.el8_6.10
Red HatRed Hat Enterprise Linux 8.8 Telecommunications Update Service0:2.9.7-16.el8_8.9
Red HatRed Hat Enterprise Linux 8.8 Update Services for SAP Solutions0:2.9.7-16.el8_8.9
Red HatRed Hat Enterprise Linux 90:2.9.13-10.el9_6
Red HatRed Hat Enterprise Linux 90:2.9.13-10.el9_6
Red HatRed Hat Enterprise Linux 9.0 Update Services for SAP Solutions0:2.9.13-1.el9_0.5
Red HatRed Hat Enterprise Linux 9.2 Update Services for SAP Solutions0:2.9.13-3.el9_2.7
Red HatRed Hat Enterprise Linux 9.4 Extended Update Support0:2.9.13-10.el9_4
Red HatRed Hat JBoss Core Services 2.4.62.SP2
Red HatRed Hat OpenShift Container Platform 4.12412.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

…and 8 more

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›