CVE-2025-6021
JSON

7.5high

Libxml2: integer overflow in xmlbuildqname() leads to stack buffer overflow in libxml2

Severity
7.5high CVSS:3.1 by redhat
Exploit likelihood
1.47% (higher than 74% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
redhat
Also known as
BIT-JAVA-2025-6021BIT-JAVA-MIN-2025-6021BIT-JRE-2025-6021

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.

Affected

Product or packageVersionsReported by
libxml2before 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 *
CVE List
openshift/ose-rhel-coreos-8Not specified
Not affected: from 412.86.202509030110-0 before *
CVE List
openshift/ose-rhel-coreos-9Not specified
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 *
CVE List
discovery/discovery-server-rhel9Not specified
Not affected: from 2.0.1-1754478727 before *
CVE List
libxml2-mainNot specified
Not affected: from 2.15.2-0.3.hum1 before *
CVE List
insights-proxy/insights-proxy-container-rhel9Not specified
Not affected: from 1.5.5-1754504343 before *
CVE List
xmlsoft libxml2before 2.14.4NVD
redhat jboss_core_servicesNot specifiedNVD
redhat openshift_container_platform4.12, 4.13, 4.14, 4.15, 4.16, 4.17, 4.18NVD
redhat openshift_container_platform_for_arm644.13, 4.14, 4.15, 4.16, 4.17, 4.18NVD
redhat openshift_container_platform_for_ibm_z4.13, 4.14, 4.15, 4.16, 4.17, 4.18NVD
redhat openshift_container_platform_for_linuxone4.13, 4.14, 4.15, 4.16, 4.17, 4.18NVD

All scores

redhat7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Bitnami Vulnerability Databasehigh rating

Classification

CWE-787

SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial.

What each source says

CVE List

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.

NVD (es)

Se detectó una falla en la función xmlBuildQName de libxml2. Los desbordamientos de enteros en los cálculos del tamaño del búfer pueden provocar un desbordamiento del búfer en la pila. Este problema puede provocar corrupción de memoria o una denegación de servicio al procesar entradas manipuladas.

References

https://access.redhat.com/errata/RHSA-2025:10630advisory, third-party-advisory, vendor-advisory
https://access.redhat.com/errata/RHSA-2025:10698advisory, third-party-advisory, vendor-advisory
https://access.redhat.com/errata/RHSA-2025:10699advisory, third-party-advisory, vendor-advisory
https://access.redhat.com/errata/RHSA-2025:11580advisory, third-party-advisory, vendor-advisory
https://access.redhat.com/errata/RHSA-2025:11673vendor-advisory, web
https://access.redhat.com/errata/RHSA-2025:12098advisory, third-party-advisory, vendor-advisory
https://access.redhat.com/errata/RHSA-2025:12099advisory, third-party-advisory, vendor-advisory
https://access.redhat.com/errata/RHSA-2025:12199advisory, third-party-advisory, vendor-advisory
https://access.redhat.com/errata/RHSA-2025:12237advisory, third-party-advisory, vendor-advisory
https://access.redhat.com/errata/RHSA-2025:12239advisory, third-party-advisory, vendor-advisory
https://access.redhat.com/errata/RHSA-2025:12240advisory, third-party-advisory, vendor-advisory
https://access.redhat.com/errata/RHSA-2025:12241advisory, third-party-advisory, vendor-advisory

Sources

SourceRecordLicence
CVE ListCVE-2025-6021 changed 2026-11-05CVE Terms of Use
NVDCVE-2025-6021 changed 2026-11-05Public domain
Bitnami Vulnerability DatabaseBIT-JAVA-2025-6021 changed 2026-10-16Apache-2.0
Bitnami Vulnerability DatabaseBIT-JAVA-MIN-2025-6021 changed 2026-10-16Apache-2.0
Bitnami Vulnerability DatabaseBIT-JRE-2025-6021 changed 2026-10-16Apache-2.0