# CVE-2025-6021: Libxml2: integer overflow in xmlbuildqname() leads to stack buffer overflow in libxml2

- Severity: High 7.5 (CVSS:3.1, scored by redhat) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.47%, higher than 74% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-06-12T12:49:16.157Z
- Modified: 2026-11-05T17:17:19.250Z
- Also known as: BIT-JAVA-2025-6021, BIT-JAVA-MIN-2025-6021, BIT-JRE-2025-6021
- Weaknesses: CWE-787
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: redhat

## 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.

(As written by CVE List.)

## Affected

- libxml2: before 2.14.4 (not affected: from 0:2.12.5-7.el10_0 before *; from 0:2.9.1-6.el7_9.10 before *; from 0:2.9.7-21.el8_10.1 before *; from 0:2.9.7-9.el8_2.3 before *; from 0:2.9.7-9.el8_4.6 before *; from 0:2.9.7-13.el8_6.10 before *; from 0:2.9.7-16.el8_8.9 before *; from 0:2.9.13-10.el9_6 before *; from 0:2.9.13-1.el9_0.5 before *; from 0:2.9.13-3.el9_2.7 before *; from 0:2.9.13-10.el9_4 before *)
- openshift/ose-rhel-coreos-8: no versions given (not affected: from 412.86.202509030110-0 before *)
- openshift/ose-rhel-coreos-9: no versions given (not affected: from 413.92.202509030117-0 before *; from 414.92.202508041909-0 before *; from 415.92.202508192014-0 before *; from 416.94.202508050040-0 before *; from 417.94.202508141510-0 before *; from 418.94.202508060022-0 before *; from 4.19.9.6.202507230107-0 before *)
- discovery/discovery-server-rhel9: no versions given (not affected: from 2.0.1-1754478727 before *)
- libxml2-main: no versions given (not affected: from 2.15.2-0.3.hum1 before *)
- insights-proxy/insights-proxy-container-rhel9: no versions given (not affected: from 1.5.5-1754504343 before *)
- xmlsoft libxml2: before 2.14.4
- redhat jboss_core_services: no versions given
- redhat openshift_container_platform: 4.12; 4.13; 4.14; 4.15; 4.16; 4.17; 4.18
- redhat openshift_container_platform_for_arm64: 4.13; 4.14; 4.15; 4.16; 4.17; 4.18
- redhat openshift_container_platform_for_ibm_z: 4.13; 4.14; 4.15; 4.16; 4.17; 4.18
- redhat openshift_container_platform_for_linuxone: 4.13; 4.14; 4.15; 4.16; 4.17; 4.18
- redhat openshift_container_platform_for_power: 4.13; 4.14; 4.15; 4.16; 4.17; 4.18
- redhat enterprise_linux: 8.0; 9.0; 10.0
- redhat enterprise_linux_eus: 8.4; 8.6; 8.8; 9.4; 9.6; 10.0
- redhat enterprise_linux_for_arm_64: 8.0_aarch64; 9.0_aarch64; 9.4_aarch64; 10.0_aarch64
- redhat enterprise_linux_for_arm_64_eus: 9.4_aarch64; 9.6_aarch64; 10.0_aarch64
- redhat enterprise_linux_for_ibm_z_systems: 8.0_s390x; 9.4_s390x; 10.0_s390x
- redhat enterprise_linux_for_ibm_z_systems_eus: 9.0_s390x; 9.4_s390x; 9.6_s390x; 10.0_s390x
- redhat enterprise_linux_for_power_little_endian: 8.0_ppc64le; 9.0_ppc64le; 10.0_ppc64le
- redhat enterprise_linux_for_power_little_endian_eus: 9.4_ppc64le; 9.6_ppc64le; 10.0_ppc64le
- redhat enterprise_linux_server: 7.0
- redhat enterprise_linux_server_aus: 8.2; 8.4; 8.6; 9.2; 9.4; 9.6
- redhat enterprise_linux_server_for_power_little_endian_update_services_for_sap_solutions: 9.4_ppc64le
- redhat enterprise_linux_server_tus: 8.8
- redhat in-vehicle_operating_system: 1.0
- java (Bitnami): before 1.8.0; from 1.9.0 before 8.0.481
- java-min (Bitnami): before 1.8.0; from 1.9.0 before 8.0.481
- jre (Bitnami): before 1.8.0; from 1.9.0 before 8.0.481

## Every score

- redhat: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Bitnami Vulnerability Database: rating High

## References

- <https://gitlab.gnome.org/GNOME/libxml2/-/issues/926> (exploit, advisory, issue-tracking, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2025:10630> (advisory, third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2025:10698> (advisory, third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2025:10699> (advisory, third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2025:11580> (advisory, third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2025:11673> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2025:12098> (advisory, third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2025:12099> (advisory, third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2025:12199> (advisory, third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2025:12237> (advisory, third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2025:12239> (advisory, third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2025:12240> (advisory, third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2025:12241> (advisory, third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2025:13267> (advisory, third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2025:13289> (advisory, third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2025:13325> (advisory, third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2025:13335> (advisory, third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2025:13336> (advisory, third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2025:14059> (advisory, third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2025:14396> (advisory, third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2025:15308> (advisory, third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2025:15672> (advisory, third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2025:19020> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2026:7519> (vendor-advisory, web)
- <https://access.redhat.com/security/cve/CVE-2025-6021> (advisory, third-party-advisory, vdb-entry)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2372406> (issue-tracking, report)
- <https://lists.debian.org/debian-lts-announce/2025/07/msg00014.html> (web)
- <https://cert-portal.siemens.com/productcert/html/ssa-032379.html>
- <https://nvd.nist.gov/vuln/detail/CVE-2025-6021> (web)

## Sources

- CVE List: [CVE-2025-6021](https://www.cve.org/CVERecord?id=CVE-2025-6021), CVE Terms of Use, modified 2026-11-05
- NVD: [CVE-2025-6021](https://nvd.nist.gov/vuln/detail/CVE-2025-6021), Public domain, modified 2026-11-05
- Bitnami Vulnerability Database: [BIT-JAVA-2025-6021](https://osv.dev/vulnerability/BIT-JAVA-2025-6021), Apache-2.0, modified 2026-10-16
- Bitnami Vulnerability Database: [BIT-JAVA-MIN-2025-6021](https://osv.dev/vulnerability/BIT-JAVA-MIN-2025-6021), Apache-2.0, modified 2026-10-16
- Bitnami Vulnerability Database: [BIT-JRE-2025-6021](https://osv.dev/vulnerability/BIT-JRE-2025-6021), Apache-2.0, modified 2026-10-16

---

Page: https://cve.day/CVE-2025-6021 · Whole record: https://cve.day/CVE-2025-6021.json · Rebuilt by cve.day 2026-11-25T22:58:59.165Z
