Skip to content
Fencer Vulns
high 7.5

CVE-2025-6021 json

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

published 2025-06-12 16 mo ago modified 2026-11-05 3 d ago also BIT-java-2025-6021 , BIT-java-min-2025-6021 , BIT-jre-2025-6021 , EUVD-2025-18175 , JLSEC-2025-196

cvss
7.5
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
1.5%
EPSS 1.5% chance of exploitation in 30 days, percentile 73%
public exploits
0
none known

Summary

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.

Patch / fix

  • bitnami java 1.8.0, 8.0.481
  • bitnami java-min 1.8.0, 8.0.481
  • bitnami jre 1.8.0, 8.0.481
  • julia XML2_jll 2.14.4+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.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 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 OpenShift Container Platform 4.12 412.86.202509030110-0
  • Red Hat Red Hat OpenShift Container Platform 4.13 413.92.202509030117-0
  • Red Hat Red Hat OpenShift Container Platform 4.14 414.92.202508041909-0
  • Red Hat Red Hat OpenShift Container Platform 4.15 415.92.202508192014-0
  • Red Hat Red Hat OpenShift Container Platform 4.16 416.94.202508050040-0
  • Red Hat Red Hat OpenShift Container Platform 4.17 417.94.202508141510-0
  • Red Hat Red Hat OpenShift Container Platform 4.18 418.94.202508060022-0
  • Red Hat Red Hat OpenShift Container Platform 4.19 4.19.9.6.202507230107-0
  • Red Hat Red Hat Discovery 2 2.0.1-1754478727
  • Red Hat Red Hat Hardened Images 2.15.2-0.3.hum1
  • Red Hat Red Hat Insights proxy 1.5 1.5.5-1754504343
  • libxml2 Debian 12 2.9.14+dfsg-1.3~deb12u3
  • libxml2 Debian 14, Debian 13 2.12.7+dfsg+really2.9.14-2

debian advisories DEBIAN-CVE-2025-6021

  • libxml2 Ubuntu 22.04 LTS 2.9.13+dfsg-1ubuntu0.8
  • libxml2 Ubuntu 24.04 LTS 2.9.14+dfsg-1.3ubuntu3.4
  • libxml2 Ubuntu Pro 14.04 LTS 2.9.1+dfsg1-3ubuntu4.13+esm8
  • libxml2 Ubuntu Pro 16.04 LTS 2.9.3+dfsg1-1ubuntu0.7+esm9
  • libxml2 Ubuntu Pro 18.04 LTS 2.9.4+dfsg1-6.1ubuntu1.9+esm4
  • libxml2 Ubuntu Pro 20.04 LTS 2.9.10+dfsg-5ubuntu0.20.04.10+esm1

ubuntu advisories UBUNTU-CVE-2025-6021

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • libxml2 hummingbird 1 2.15.2-0.3.hum1
  • libxml2-16 hummingbird 1 2.15.2-0.3.hum1
  • python3-libxml2 hummingbird 1 2.15.2-0.3.hum1
  • libxml2 RHEL 9 2.9.13-10.el9_6
  • python3-libxml2 RHEL 9 2.9.13-10.el9_6
  • libxml2 RHEL 8 2.9.7-21.el8_10.1
  • python3-libxml2 RHEL 8 2.9.7-21.el8_10.1
  • libxml2 RHEL 10.0 2.12.5-7.el10_0

red hat advisories RHSA-2026:7519RHSA-2025:12240RHSA-2025:12241RHSA-2025:12239RHSA-2025:12237RHSA-2025:12199

  • libxml2 Linux Micro 6.1 2.11.6-slfo.1.1_6.1
  • libxml2 Linux Micro 6.0 2.11.6-10.1
  • libxml2 SLES for SAP 15 SP4, SLES 15 SP4-LTSS, SLE Micro 5.4 +5 more 2.9.14-150400.5.44.1
  • libxml2-python SLES for SAP 15 SP4, SLES 15 SP4-LTSS, SLE Micro 5.4 +5 more 2.9.14-150400.5.44.1
  • libxml2 SLES for SAP 15 SP5, SLES 15 SP5-LTSS, SLE Module for Basesystem 15 SP6 +4 more 2.10.3-150500.5.29.1
  • libxml2-python SLES for SAP 15 SP5, SLES 15 SP5-LTSS, SLE Module for Python 3 15 SP6 +5 more 2.10.3-150500.5.29.1
  • libxml2 SLES for SAP 15 SP3, SLES 15 SP3-LTSS, SLE Micro 5.2 +3 more 2.9.7-150000.3.82.1
  • python-libxml2-python SLES for SAP 15 SP3, SLES 15 SP3-LTSS, SLE Micro 5.2 +3 more 2.9.7-150000.3.82.1

suse advisories SUSE-SU-2025:20607-1SUSE-SU-2025:20564-1SUSE-SU-2025:02355-1SUSE-SU-2025:02314-1SUSE-SU-2025:02294-1SUSE-SU-2025:02275-1

  • libxml2 openSUSE Tumbleweed 2.13.8-2.1

opensuse advisories openSUSE-SU-2025:15321-1

  • libxml2 AlmaLinux 8 2.9.7-21.el8_10.1
  • python3-libxml2 AlmaLinux 8 2.9.7-21.el8_10.1
  • libxml2 AlmaLinux 9 2.9.13-10.el9_6
  • python3-libxml2 AlmaLinux 9 2.9.13-10.el9_6
  • libxml2 AlmaLinux 10 2.12.5-7.el10_0
  • python3-libxml2 AlmaLinux 10 2.12.5-7.el10_0

almalinux advisories ALSA-2025:10698ALSA-2025:10699ALSA-2025:10630

  • libxml2 Rocky Linux 9 2.9.13-10.el9_6
  • libxml2 Rocky Linux 10 2.12.5-7.el10_0
  • libxml2 Rocky Linux 8 2.9.7-21.el8_10.1

rocky linux advisories RLSA-2025:10699RLSA-2025:10630RLSA-2025:10698

  • libxml2 Alpine 3.24, Alpine 3.23, Alpine 3.22 +1 more 2.13.9-r0
  • qt6-qtwebengine Alpine 3.22 6.8.3-r5

alpine advisories ALPINE-CVE-2025-6021

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • libxml2 CBL-Mariner 2.0 2.10.4-8
  • libxml2 Azure Linux 3.0 2.11.5-6

azure linux advisories AZL-64101AZL-64124

Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT

  • libxml2 Arch Linux 2.14.4-1

arch linux advisories AVG-2899

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2025-6021 updated cvss 7.5

libxml2: Integer Overflow in xmlBuildQName() Leads to Stack Buffer Overflow in libxml2

  • Red Hat Enterprise Linux 6 libxml2, libxml2-python
    affected: workaround, no fix planned “Out of support scope”
  • Red Hat Discovery 2 discovery 2.0.1-1754478727
    fixed: vendor fix RHSA-2025:13267
  • Red Hat Enterprise Linux AppStream (v. 8) libxml2-devel 2.9.7-21.el8_10.1, libxml2-debuginfo 2.9.7-21.el8_10.1, libxml2-debugsource 2.9.7-21.el8_10.1, python3-libxml2-debuginfo 2.9.7-21.el8_10.1
    fixed: vendor fix RHSA-2025:10698
  • Red Hat Enterprise Linux AppStream (v. 9) libxml2-devel 2.9.13-10.el9_6, libxml2-debuginfo 2.9.13-10.el9_6, libxml2-debugsource 2.9.13-10.el9_6, python3-libxml2-debuginfo 2.9.13-10.el9_6
    fixed: vendor fix RHSA-2025:10699
  • Red Hat Enterprise Linux AppStream (v. 10) libxml2-devel 2.12.5-7.el10_0, libxml2-debuginfo 2.12.5-7.el10_0, libxml2-debugsource 2.12.5-7.el10_0, python3-libxml2-debuginfo 2.12.5-7.el10_0
    fixed: vendor fix RHSA-2025:10630
  • Red Hat Enterprise Linux AppStream AUS (v. 8.2) libxml2-devel 2.9.7-9.el8_2.3, libxml2-debuginfo 2.9.7-9.el8_2.3, libxml2-debugsource 2.9.7-9.el8_2.3, python3-libxml2-debuginfo 2.9.7-9.el8_2.3
    fixed: vendor fix RHSA-2025:12237
  • Red Hat Enterprise Linux AppStream AUS (v.8.4) libxml2-devel 2.9.7-9.el8_4.6, libxml2-debuginfo 2.9.7-9.el8_4.6, libxml2-debugsource 2.9.7-9.el8_4.6, python3-libxml2-debuginfo 2.9.7-9.el8_4.6
    fixed: vendor fix RHSA-2025:12241
  • Red Hat Enterprise Linux AppStream AUS (v.8.6) libxml2-devel 2.9.7-13.el8_6.10, libxml2-debuginfo 2.9.7-13.el8_6.10, libxml2-debugsource 2.9.7-13.el8_6.10, python3-libxml2-debuginfo 2.9.7-13.el8_6.10 Red Hat Enterprise Linux AppStream E4S (v.8.6) libxml2-devel 2.9.7-13.el8_6.10, libxml2-debuginfo 2.9.7-13.el8_6.10, libxml2-debugsource 2.9.7-13.el8_6.10, python3-libxml2-debuginfo 2.9.7-13.el8_6.10
    fixed: vendor fix RHSA-2025:12098
show 29 more
  • Red Hat Enterprise Linux AppStream E4S (v.8.8) libxml2-devel 2.9.7-16.el8_8.9, libxml2-debuginfo 2.9.7-16.el8_8.9, libxml2-debugsource 2.9.7-16.el8_8.9, python3-libxml2-debuginfo 2.9.7-16.el8_8.9
    fixed: vendor fix RHSA-2025:12239
  • Red Hat Enterprise Linux AppStream E4S (v.9.0) libxml2-devel 2.9.13-1.el9_0.5, libxml2-debuginfo 2.9.13-1.el9_0.5, libxml2-debugsource 2.9.13-1.el9_0.5, python3-libxml2-debuginfo 2.9.13-1.el9_0.5
    fixed: vendor fix RHSA-2025:12099
  • Red Hat Enterprise Linux AppStream E4S (v.9.2) libxml2-devel 2.9.13-3.el9_2.7, libxml2-debuginfo 2.9.13-3.el9_2.7, libxml2-debugsource 2.9.13-3.el9_2.7, python3-libxml2-debuginfo 2.9.13-3.el9_2.7
    fixed: vendor fix RHSA-2025:12199
  • Red Hat Enterprise Linux AppStream EUS (v.9.4) libxml2-devel 2.9.13-10.el9_4, libxml2-debuginfo 2.9.13-10.el9_4, libxml2-debugsource 2.9.13-10.el9_4, python3-libxml2-debuginfo 2.9.13-10.el9_4
    fixed: vendor fix RHSA-2025:11580
  • Red Hat Enterprise Linux AppStream EUS EXTENSION (v.8.4) libxml2-devel 2.9.7-9.el8_4.6, libxml2-debuginfo 2.9.7-9.el8_4.6, libxml2-debugsource 2.9.7-9.el8_4.6, python3-libxml2-debuginfo 2.9.7-9.el8_4.6
    fixed: vendor fix RHSA-2025:12241
  • Red Hat Enterprise Linux AppStream TUS (v.8.6) libxml2-devel 2.9.7-13.el8_6.10, libxml2-debuginfo 2.9.7-13.el8_6.10, libxml2-debugsource 2.9.7-13.el8_6.10, python3-libxml2-debuginfo 2.9.7-13.el8_6.10
    fixed: vendor fix RHSA-2025:12098
  • Red Hat Enterprise Linux AppStream TUS (v.8.8) libxml2-devel 2.9.7-16.el8_8.9, libxml2-debuginfo 2.9.7-16.el8_8.9, libxml2-debugsource 2.9.7-16.el8_8.9, python3-libxml2-debuginfo 2.9.7-16.el8_8.9
    fixed: vendor fix RHSA-2025:12239
  • Red Hat Enterprise Linux BaseOS (v. 8) libxml2 2.9.7-21.el8_10.1, python3-libxml2 2.9.7-21.el8_10.1
    fixed: vendor fix RHSA-2025:10698
  • Red Hat Enterprise Linux BaseOS (v. 9) libxml2 2.9.13-10.el9_6, python3-libxml2 2.9.13-10.el9_6
    fixed: vendor fix RHSA-2025:10699
  • Red Hat Enterprise Linux BaseOS (v. 10) libxml2 2.12.5-7.el10_0, python3-libxml2 2.12.5-7.el10_0
    fixed: vendor fix RHSA-2025:10630
  • Red Hat Enterprise Linux BaseOS AUS (v. 8.2) libxml2 2.9.7-9.el8_2.3, python3-libxml2 2.9.7-9.el8_2.3
    fixed: vendor fix RHSA-2025:12237
  • Red Hat Enterprise Linux BaseOS AUS (v.8.4) libxml2 2.9.7-9.el8_4.6, python3-libxml2 2.9.7-9.el8_4.6
    fixed: vendor fix RHSA-2025:12241
  • Red Hat Enterprise Linux BaseOS AUS (v.8.6) libxml2 2.9.7-13.el8_6.10, python3-libxml2 2.9.7-13.el8_6.10 Red Hat Enterprise Linux BaseOS E4S (v.8.6) libxml2 2.9.7-13.el8_6.10, python3-libxml2 2.9.7-13.el8_6.10
    fixed: vendor fix RHSA-2025:12098
  • Red Hat Enterprise Linux BaseOS E4S (v.8.8) libxml2 2.9.7-16.el8_8.9, python3-libxml2 2.9.7-16.el8_8.9
    fixed: vendor fix RHSA-2025:12239
  • Red Hat Enterprise Linux BaseOS E4S (v.9.0) libxml2 2.9.13-1.el9_0.5, python3-libxml2 2.9.13-1.el9_0.5
    fixed: vendor fix RHSA-2025:12099
  • Red Hat Enterprise Linux BaseOS E4S (v.9.2) libxml2 2.9.13-3.el9_2.7, python3-libxml2 2.9.13-3.el9_2.7
    fixed: vendor fix RHSA-2025:12199
  • Red Hat Enterprise Linux BaseOS EUS (v.9.4) libxml2 2.9.13-10.el9_4, python3-libxml2 2.9.13-10.el9_4
    fixed: vendor fix RHSA-2025:11580
  • Red Hat Enterprise Linux BaseOS EUS EXTENSION (v.8.4) libxml2 2.9.7-9.el8_4.6, python3-libxml2 2.9.7-9.el8_4.6
    fixed: vendor fix RHSA-2025:12241
  • Red Hat Enterprise Linux BaseOS TUS (v.8.6) libxml2 2.9.7-13.el8_6.10, python3-libxml2 2.9.7-13.el8_6.10
    fixed: vendor fix RHSA-2025:12098
  • Red Hat Enterprise Linux BaseOS TUS (v.8.8) libxml2 2.9.7-16.el8_8.9, python3-libxml2 2.9.7-16.el8_8.9
    fixed: vendor fix RHSA-2025:12239
  • Red Hat Enterprise Linux CodeReady Linux Builder (v. 10) libxml2-static 2.12.5-7.el10_0, libxml2-debuginfo 2.12.5-7.el10_0, libxml2-debugsource 2.12.5-7.el10_0, python3-libxml2-debuginfo 2.12.5-7.el10_0
    fixed: vendor fix RHSA-2025:10630
  • Red Hat Enterprise Linux Server (v. 7 ELS) libxml2 2.9.1-6.el7_9.10, libxml2-python 2.9.1-6.el7_9.10 Red Hat Enterprise Linux Server Optional (v. 7 ELS) libxml2-static 2.9.1-6.el7_9.10, libxml2-debuginfo 2.9.1-6.el7_9.10
    fixed: vendor fix RHSA-2025:12240
  • Red Hat Hardened Images libxml2 2.15.2-0.3.hum1, libxml2-16 2.15.2-0.3.hum1, python3-libxml2 2.15.2-0.3.hum1
    fixed: vendor fix RHSA-2026:7519
  • Red Hat Insights proxy 1.5 insights-proxy 1.5.5-1754504343
    fixed: vendor fix RHSA-2025:13335
  • Red Hat JBoss Core Services 2.4.62.SP2
    fixed: vendor fix RHSA-2025:19020
  • Red Hat OpenShift Container Platform 4.12 rhcos 412.86.202509030110
    fixed: vendor fix RHSA-2025:15308
  • Red Hat OpenShift Container Platform 4.13 rhcos 413.92.202509030117
    fixed: vendor fix RHSA-2025:15672
  • Red Hat OpenShift Container Platform 4.14 rhcos 414.92.202508041909-0
    fixed: vendor fix RHSA-2025:13289
  • Red Hat OpenShift Container Platform 4.15 rhcos 415.92.202508192014
    fixed: vendor fix RHSA-2025:14396

4 more fixed, 5 more not affected in the full advisory

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

cisa ICSA-25-259-02 updated cvss 6.5

Hitachi Energy RTU500 Series

  • Hitachi Energy RTU500 series CMU Firmware vers:RTU500_series_CMU_Firmware/>=12.7.1, <=12.7.7, vers:RTU500_series_CMU_Firmware/>=13.5.1, <=13.5.3, 13.6.1, vers:RTU500_series_CMU_Firmware/>=13.7.1, <=13.7.6
    affected: vendor fix, mitigation

Facts from CISA's republication of the vendor's own advisory (CSAF); the linked advisory is the authoritative source. CISA notification · csaf

CISA SSVC

Exploitation
Proof of concept is public
Automatable
yes
Technical impact
partial
Assessed
14 mo ago

Exploit prediction

1.47% chance of exploitation in the next 30 days, higher than 73% of all scored CVEs (FIRST EPSS, 2026-11-08).

Exploits and checks

  • gitlab.gnome.org https://gitlab.gnome.org/GNOME/libxml2/-/issues/926 referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
CNA 3.1 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
OSV 3.1 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected packages

ecosystem package affected fixed in
bitnami java
<1.8.0
>=1.9.0, <8.0.481
1.8.0
8.0.481
bitnami java-min
<1.8.0
>=1.9.0, <8.0.481
1.8.0
8.0.481
bitnami jre
<1.8.0
>=1.9.0, <8.0.481
1.8.0
8.0.481
julia XML2_jll
<2.14.4+0
2.14.4+0

Affected products

  • Red Hat Red Hat Enterprise Linux 10
  • Red Hat Red Hat Enterprise Linux 7 Extended Lifecycle Support
  • Red Hat Red Hat Enterprise Linux 8
  • Red Hat Red Hat Enterprise Linux 8.2 Advanced Update Support
  • Red Hat Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support
  • Red Hat Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On
  • Red Hat Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support
  • Red Hat Red Hat Enterprise Linux 8.6 Telecommunications Update Service
  • Red Hat Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions
  • Red Hat Red Hat Enterprise Linux 8.8 Telecommunications Update Service
  • Red Hat Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions
  • Red Hat Red Hat Enterprise Linux 9
  • Red Hat Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions
  • Red Hat Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions
  • Red Hat Red Hat Enterprise Linux 9.4 Extended Update Support
  • Red Hat Red Hat JBoss Core Services 2.4.62.SP2
  • Red Hat Red Hat OpenShift Container Platform 4.12
  • Red Hat Red Hat OpenShift Container Platform 4.13
  • Red Hat Red Hat OpenShift Container Platform 4.14
  • Red Hat Red Hat OpenShift Container Platform 4.15
  • Red Hat Red Hat OpenShift Container Platform 4.16
  • Red Hat Red Hat OpenShift Container Platform 4.17
  • Red Hat Red Hat OpenShift Container Platform 4.18
  • Red Hat Red Hat OpenShift Container Platform 4.19
  • Red Hat Red Hat Discovery 2
  • Red Hat Red Hat Hardened Images
  • Red Hat Red Hat Insights proxy 1.5
  • Red Hat Red Hat Enterprise Linux 6
  • Siemens SIMATIC CN 4100

Classification

Weakness

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.

CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.