Cloudanix VulnDB

CVE-2025-6021

High · 7.5

CVSS

7.5

EPSS

1.4%

Published

Jun 12, 2025

CISA due date

—

Cloudanix analysis

Monitor only SSVC: Track

A bug in a common XML processing library can let attackers crash applications or damage memory by sending specially made data, so organizations should update the library to stop the problem.

Exploitation
Remote Unauthenticated
Attacker needs
None
Complexity
Low
Impact
Denial Of Service
Component
Library
Class
Buffer Overflow
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

Integer overflow in xmlBuildQName buffer size calculations triggers a stack-based buffer overflow, resulting in memory corruption or denial of service on crafted XML input.

Why it matters to the business

Applications relying on libxml2 for XML parsing may crash or experience corrupted memory states, disrupting services that process untrusted XML and increasing operational recovery costs.

How an attack unfolds

An attacker supplies specially crafted XML content that reaches xmlBuildQName, where integer overflows miscalculate buffer sizes and allow a stack overflow during name construction, leading to memory corruption or service termination.

How to fix it

Upgrade libxml2 to the fixed commit 4c6b2c3096b1da0d0780fe0b4f147e837140468d or later release containing that change; rebuild and redeploy all dependent applications.

How to confirm the fix worked

Verify the installed libxml2 source or binary matches or exceeds commit 4c6b2c3096b1da0d0780fe0b4f147e837140468d; test with known triggering XML inputs to confirm absence of overflow behavior.

Typical attack path

  1. Identify a network-accessible service that uses libxml2 to parse XML input
  2. Craft malicious XML containing values that trigger integer overflows in buffer calculations within xmlBuildQName
  3. Send the crafted input over the network to the target service
  4. Trigger the overflow to corrupt memory or crash the process

How to detect it

Review application logs for unexpected crashes or memory corruption signals during XML parsing; inspect process core dumps or sanitizer reports for stack buffer overflow indicators tied to xmlBuildQName.

What your security team should do

  • Prioritize patching libxml2 across all environments within standard change windows given the remote unauthenticated attack vector
  • Scan dependency manifests for references to older libxml2 versions and enforce automated dependency updates
  • Monitor for any future exploit maturity increases or inclusion in threat intelligence feeds

The record

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 packages

Ecosystem Package Introduced Fixed
AlmaLinux:10 libxml2 0 2.12.5-7.el10_0
AlmaLinux:10 libxml2-devel 0 2.12.5-7.el10_0
AlmaLinux:10 libxml2-static 0 2.12.5-7.el10_0
AlmaLinux:10 python3-libxml2 0 2.12.5-7.el10_0
AlmaLinux:8 libxml2 0 2.9.7-21.el8_10.1
AlmaLinux:8 libxml2-devel 0 2.9.7-21.el8_10.1
AlmaLinux:8 python3-libxml2 0 2.9.7-21.el8_10.1
AlmaLinux:9 libxml2 0 2.9.13-10.el9_6
AlmaLinux:9 libxml2-devel 0 2.9.13-10.el9_6
AlmaLinux:9 python3-libxml2 0 2.9.13-10.el9_6
Debian:11 libxml2 0 No fix
Debian:12 libxml2 0 No fix
Debian:13 libxml2 0 No fix
Debian:14 libxml2 0 2.12.7+dfsg+really2.9.14-2
Mageia:9 libxml2 0 2.10.4-1.8.mga9
Mageia:9 libxslt 0 1.1.38-1.2.mga9
SUSE:Enterprise Storage 7.1 libxml2 0 2.9.7-150000.3.82.1
SUSE:Enterprise Storage 7.1 python-libxml2-python 0 2.9.7-150000.3.82.1
SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS libxml2 0 2.9.7-150000.3.82.1
SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS python-libxml2-python 0 2.9.7-150000.3.82.1
SUSE:Linux Enterprise High Performance Computing 15 SP5-ESPOS libxml2 0 2.10.3-150500.5.29.1
SUSE:Linux Enterprise High Performance Computing 15 SP5-ESPOS libxml2-python 0 2.10.3-150500.5.29.1
SUSE:Linux Enterprise High Performance Computing 15 SP5-LTSS libxml2 0 2.10.3-150500.5.29.1
SUSE:Linux Enterprise High Performance Computing 15 SP5-LTSS libxml2-python 0 2.10.3-150500.5.29.1
SUSE:Linux Enterprise Micro 5.1 libxml2 0 2.9.7-150000.3.82.1
SUSE:Linux Enterprise Micro 5.2 libxml2 0 2.9.7-150000.3.82.1
SUSE:Linux Enterprise Micro 5.2 python-libxml2-python 0 2.9.7-150000.3.82.1
SUSE:Linux Enterprise Micro 5.5 libxml2 0 2.10.3-150500.5.29.1
SUSE:Linux Enterprise Micro 5.5 libxml2-python 0 2.10.3-150500.5.29.1
SUSE:Linux Enterprise Module for Basesystem 15 SP6 libxml2 0 2.10.3-150500.5.29.1
SUSE:Linux Enterprise Module for Basesystem 15 SP6 libxml2-python 0 2.10.3-150500.5.29.1
SUSE:Linux Enterprise Module for Basesystem 15 SP7 libxml2 0 2.12.10-150700.4.3.1
SUSE:Linux Enterprise Module for Basesystem 15 SP7 libxml2-python 0 2.12.10-150700.4.3.1
SUSE:Linux Enterprise Module for Python 3 15 SP6 libxml2-python 0 2.10.3-150500.5.29.1
SUSE:Linux Enterprise Module for Python 3 15 SP7 libxml2-python 0 2.12.10-150700.4.3.1
SUSE:Linux Enterprise Server 12 SP5-LTSS libxml2 0 2.9.4-46.87.1
SUSE:Linux Enterprise Server 12 SP5-LTSS python-libxml2 0 2.9.4-46.87.1
SUSE:Linux Enterprise Server 15 SP3-LTSS libxml2 0 2.9.7-150000.3.82.1
SUSE:Linux Enterprise Server 15 SP3-LTSS python-libxml2-python 0 2.9.7-150000.3.82.1
SUSE:Linux Enterprise Server 15 SP5-LTSS libxml2 0 2.10.3-150500.5.29.1
SUSE:Linux Enterprise Server 15 SP5-LTSS libxml2-python 0 2.10.3-150500.5.29.1
SUSE:Linux Enterprise Server LTSS Extended Security 12 SP5 libxml2 0 2.9.4-46.87.1
SUSE:Linux Enterprise Server LTSS Extended Security 12 SP5 python-libxml2 0 2.9.4-46.87.1
SUSE:Linux Enterprise Server for SAP Applications 15 SP3 libxml2 0 2.9.7-150000.3.82.1
SUSE:Linux Enterprise Server for SAP Applications 15 SP3 python-libxml2-python 0 2.9.7-150000.3.82.1
SUSE:Linux Enterprise Server for SAP Applications 15 SP5 libxml2 0 2.10.3-150500.5.29.1
SUSE:Linux Enterprise Server for SAP Applications 15 SP5 libxml2-python 0 2.10.3-150500.5.29.1
openSUSE:Leap 15.6 libxml2 0 2.10.3-150500.5.29.1
openSUSE:Leap 15.6 libxml2-python 0 2.10.3-150500.5.29.1
openSUSE:Leap 15.6 python-libxml2-python 0 2.9.7-150000.3.82.1
openSUSE:Tumbleweed libxml2 0 2.13.8-2.1

Related vulnerabilities