CVE-2025-59375
High · 7.5CVSS
7.5
EPSS
1.4%
Published
Sep 15, 2025
CISA due date
—
Cloudanix analysis
A flaw in a common XML processing library can let attackers crash applications by sending tiny but specially made data, potentially interrupting services until fixed.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- Library
- Class
- Denial of service
- Remediation
- Upgrade
- Effort
- Low
- Patch risk
- Low
What it actually does
The vulnerability permits an attacker to cause excessive dynamic memory allocations by submitting a minimal XML document for parsing, leading to potential denial of service through resource exhaustion.
Why it matters to the business
Applications relying on libexpat for XML parsing may experience crashes or severe performance degradation, resulting in service unavailability and operational disruptions. With over 400 days since disclosure, ensure patching to maintain availability.
How an attack unfolds
An attacker crafts a small XML input designed to trigger the memory allocation flaw in libexpat's parser and submits it to any service using the vulnerable library for XML processing.
How to fix it
Upgrade libexpat to version 2.7.2 or later, specifically incorporating commit 7643f96bd5b9f5d3b26ea112519e05e17ef91cfb. Review and apply the fix in all dependent products.
How to confirm the fix worked
Verify the installed version of libexpat is 2.7.2 or higher. Test parsing of known trigger documents to ensure no excessive allocation occurs.
Typical attack path
- Identify a target application or service that uses libexpat for parsing XML input
- Craft a minimal malicious XML document that exploits the allocation issue
- Submit the document to the parser via network or local input
- Observe resource exhaustion or crash in the target process
How to detect it
Examine logs for unexpected high memory usage or crashes in processes using libexpat during XML parsing. Look for patterns of small inputs leading to large allocations, though specific signatures may not be available.
What your security team should do
- Prioritize upgrading libexpat across all affected systems
- Monitor for any unusual memory usage spikes in XML parsing processes
- Implement input validation where possible to limit XML document sizes
The record
libexpat in Expat before 2.7.2 allows attackers to trigger large dynamic memory allocations via a small document that is submitted for parsing.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| AlmaLinux:10 | expat | 0 | 2.7.1-1.el10_0.3 |
| AlmaLinux:10 | expat | 0 | 2.7.1-1.el10_1.3 |
| AlmaLinux:10 | expat-devel | 0 | 2.7.1-1.el10_0.3 |
| AlmaLinux:10 | expat-devel | 0 | 2.7.1-1.el10_1.3 |
| AlmaLinux:8 | expat | 0 | 2.5.0-1.el8_10 |
| AlmaLinux:8 | expat-devel | 0 | 2.5.0-1.el8_10 |
| AlmaLinux:8 | mingw32-expat | 0 | 2.5.0-1.el8_10 |
| AlmaLinux:8 | mingw64-expat | 0 | 2.5.0-1.el8_10 |
| AlmaLinux:9 | expat | 0 | 2.5.0-5.el9_7.1 |
| AlmaLinux:9 | expat-devel | 0 | 2.5.0-5.el9_7.1 |
| Alpine:v3.19 | expat | 0 | 2.7.2-r0 |
| Alpine:v3.20 | expat | 0 | 2.7.2-r0 |
| Alpine:v3.21 | expat | 0 | 2.7.2-r0 |
| Alpine:v3.22 | expat | 0 | 2.7.2-r0 |
| Debian:11 | expat | 0 | No fix |
| Debian:12 | expat | 0 | No fix |
| Debian:13 | expat | 0 | No fix |
| Debian:14 | expat | 0 | No fix |
| Mageia:9 | expat | 0 | 2.7.3-1.mga9 |
| SUSE:Enterprise Storage 7.1 | expat | 0 | 2.7.1-150000.3.39.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS | expat | 0 | 2.7.1-150000.3.39.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS | MozillaFirefox | 0 | 140.9.0-150200.152.225.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS | expat | 0 | 2.7.1-150400.3.31.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS | MozillaFirefox | 0 | 140.9.0-150200.152.225.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS | expat | 0 | 2.7.1-150400.3.31.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP5-ESPOS | MozillaFirefox | 0 | 140.9.0-150200.152.225.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP5-ESPOS | expat | 0 | 2.7.1-150400.3.31.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP5-LTSS | MozillaFirefox | 0 | 140.9.0-150200.152.225.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP5-LTSS | expat | 0 | 2.7.1-150400.3.31.1 |
| SUSE:Linux Enterprise Micro 5.1 | expat | 0 | 2.7.1-150000.3.39.1 |
| SUSE:Linux Enterprise Micro 5.2 | expat | 0 | 2.7.1-150000.3.39.1 |
| SUSE:Linux Enterprise Micro 5.3 | expat | 0 | 2.7.1-150400.3.31.1 |
| SUSE:Linux Enterprise Micro 5.4 | expat | 0 | 2.7.1-150400.3.31.1 |
| SUSE:Linux Enterprise Micro 5.5 | expat | 0 | 2.7.1-150400.3.31.1 |
| SUSE:Linux Enterprise Module for Basesystem 15 SP6 | expat | 0 | 2.7.1-150400.3.31.1 |
| SUSE:Linux Enterprise Module for Basesystem 15 SP7 | expat | 0 | 2.7.1-150700.3.6.1 |
| SUSE:Linux Enterprise Module for Desktop Applications 15 SP7 | MozillaFirefox | 0 | 140.9.0-150200.152.225.1 |
| SUSE:Linux Enterprise Server 12 SP5-LTSS | expat | 0 | 2.7.1-21.46.1 |
| SUSE:Linux Enterprise Server 15 SP3-LTSS | expat | 0 | 2.7.1-150000.3.39.1 |
| SUSE:Linux Enterprise Server 15 SP4-LTSS | MozillaFirefox | 0 | 140.9.0-150200.152.225.1 |
| SUSE:Linux Enterprise Server 15 SP4-LTSS | expat | 0 | 2.7.1-150400.3.31.1 |
| SUSE:Linux Enterprise Server 15 SP5-LTSS | MozillaFirefox | 0 | 140.9.0-150200.152.225.1 |
| SUSE:Linux Enterprise Server 15 SP5-LTSS | expat | 0 | 2.7.1-150400.3.31.1 |
| SUSE:Linux Enterprise Server 15 SP6-LTSS | MozillaFirefox | 0 | 140.9.0-150200.152.225.1 |
| SUSE:Linux Enterprise Server LTSS Extended Security 12 SP5 | expat | 0 | 2.7.1-21.46.1 |
| SUSE:Linux Enterprise Server for SAP Applications 15 SP3 | expat | 0 | 2.7.1-150000.3.39.1 |
| SUSE:Linux Enterprise Server for SAP Applications 15 SP4 | MozillaFirefox | 0 | 140.9.0-150200.152.225.1 |
| SUSE:Linux Enterprise Server for SAP Applications 15 SP4 | expat | 0 | 2.7.1-150400.3.31.1 |
| SUSE:Linux Enterprise Server for SAP Applications 15 SP5 | MozillaFirefox | 0 | 140.9.0-150200.152.225.1 |
| SUSE:Linux Enterprise Server for SAP Applications 15 SP5 | expat | 0 | 2.7.1-150400.3.31.1 |
| SUSE:Linux Enterprise Server for SAP Applications 15 SP6 | MozillaFirefox | 0 | 140.9.0-150200.152.225.1 |
| SUSE:Manager Proxy LTS 4.3 | expat | 0 | 2.7.1-150400.3.31.1 |
| SUSE:Manager Server LTS 4.3 | expat | 0 | 2.7.1-150400.3.31.1 |
| openSUSE:Leap 15.6 | MozillaFirefox | 0 | 140.9.0-150200.152.225.1 |
| openSUSE:Leap 15.6 | MozillaThunderbird | 0 | 140.9.0-150200.8.263.1 |
| openSUSE:Leap 15.6 | expat | 0 | 2.7.1-150400.3.31.1 |
| openSUSE:Leap 16.0 | MozillaFirefox | 0 | 140.9.0-160000.1.1 |
| openSUSE:Leap 16.0 | expat | 0 | 2.7.1-160000.3.1 |
| openSUSE:Tumbleweed | MozillaFirefox | 0 | 149.0-1.1 |
| openSUSE:Tumbleweed | MozillaThunderbird | 0 | 140.9.0-1.1 |
| openSUSE:Tumbleweed | expat | 0 | 2.7.2-1.1 |
| openSUSE:Tumbleweed | firefox-esr | 0 | 140.9.0-1.1 |
Related vulnerabilities
- CVE-2024-8176 A stack overflow vulnerability exists in the libexpat library due to the way it handles… Also affects expat
- CVE-2024-50602 An issue was discovered in libexpat before 2.6.4. Also affects expat
- CVE-2024-45491 An issue was discovered in libexpat before 2.6.3. Also affects expat
- CVE-2024-45492 An issue was discovered in libexpat before 2.6.3. Also affects expat
- CVE-2024-45490 An issue was discovered in libexpat before 2.6.3. Also affects expat
- CVE-2024-28757 libexpat through 2.6.1 allows an XML Entity Expansion attack when there is isolated use… Also affects expat
- CVE-2017-9233 XML External Entity vulnerability in libexpat 2.2.0 and earlier (Expat XML Parser… Also affects expat
- CVE-2016-4472 The overflow protection in Expat is removed by compilers with certain optimization… Also affects expat