CVE-2025-49796
Critical · 9.1CVSS
9.1
EPSS
1.6%
Published
Jun 16, 2025
CISA due date
—
Cloudanix analysis
A bug in a common XML processing tool can let attackers send bad data that crashes programs or corrupts memory, potentially stopping services that rely on it.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- Library
- Class
- Memory Corruption
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Processing crafted sch:name elements in XML input triggers memory corruption in libxml2, enabling crashes or undefined behavior from corrupted sensitive data in memory.
Why it matters to the business
Applications relying on libxml2 for XML handling can experience sudden crashes or unpredictable failures when processing untrusted input, disrupting operations and risking data integrity in parsing workflows.
How an attack unfolds
An attacker creates a malicious XML file containing specially formed sch:name elements and supplies it to any application using the vulnerable libxml2 library, causing memory corruption during parsing that may result in denial of service or further undefined behavior.
How to fix it
Update affected packages to the fixed versions provided by vendors, such as eom 1.8.1-2.1.mga5 on Mageia 5; rebuild or redeploy applications with patched libxml2 where direct updates are unavailable.
How to confirm the fix worked
Verify package versions against vendor advisories after updates, and test XML parsing with known-triggering sch:name inputs in isolated environments to confirm absence of crashes or corruption.
Typical attack path
- Craft XML input containing malformed sch:name elements designed to trigger memory corruption
- Deliver the malicious XML to a target application that uses libxml2 for parsing
- Trigger parsing of the input to induce crash or memory corruption
How to detect it
Monitor application logs and crash reports for unexpected terminations during XML parsing operations; review process dumps or core files for signs of memory corruption when handling untrusted XML files.
What your security team should do
- Apply available package updates immediately to remediate the memory corruption flaw
- Scan environments for use of libxml2 in XML-processing components and prioritize high-exposure services
- Implement input validation or sandboxing for XML handling until patches are deployed
The record
A vulnerability was found in libxml2. Processing certain sch:name elements from the input XML file can trigger a memory corruption issue. This flaw allows an attacker to craft a malicious XML input file that can lead libxml to crash, resulting in a denial of service or other possible undefined behavior due to sensitive data being corrupted in memory.
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
- CVE-2025-49795 A NULL pointer dereference vulnerability was found in libxml2 when processing XPath XML… Also affects libxml2
- CVE-2025-49794 A use-after-free vulnerability was found in libxml2. Also affects libxml2
- CVE-2025-6021 A flaw was found in libxml2's xmlBuildQName function, where integer overflows in buffer… Also affects libxml2
- CVE-2025-32415 In libxml2 before 2.13.8 and 2.14.x before 2.14.2, xmlSchemaIDCFillNodeTables in… Also affects libxml2
- CVE-2025-32414 In libxml2 before 2.13.8 and 2.14.x before 2.14.2, out-of-bounds memory access can occur… Also affects libxml2
- CVE-2025-7425 A flaw was found in libxslt where the attribute type, atype, flags are modified in a way… Also affects libxml2
- CVE-2025-24928 libxml2 before 2.12.10 and 2.13.x before 2.13.6 has a stack-based buffer overflow in… Also affects libxml2
- CVE-2024-56171 libxml2 before 2.12.10 and 2.13.x before 2.13.6 has a use-after-free in… Also affects libxml2