# CVE-2025-59375: Denial of service in libexpat

> Attackers can cause denial of service by triggering large memory allocations in libexpat via small XML documents.

- **Severity:** High 7.5 (`CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H/E:H/RL:T/RC:C`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 15 Sep 2025
- **Updated:** 15 Oct 2026
- **Also known as:** ALPINE-CVE-2025-59375, ALSA-2025:19403, ALSA-2025:21030, ALSA-2025:21974, ALSA-2025:22175, ALSA-2026:3407, AZL-67328, AZL-67359, BELL-CVE-2025-59375, CLEANSTART-2026-JE84287, CLSA-2025-1764956967, CLSA-2025-1765987202, DEBIAN-CVE-2025-59375, ECHO-2c23-61d7-7ec0, GHSA-vjqp-pjp6-xcxx, JLSEC-2025-173, OESA-2025-2454, OESA-2025-2455, OESA-2025-2456, OESA-2025-2457, OESA-2025-2458, OESA-2025-2459, RHSA-2025:19403, RHSA-2025:21030, RHSA-2025:21773, RHSA-2025:21974, RHSA-2025:22175, RHSA-2026:3407, RHSA-2026:5396, RLSA-2025:19403, RLSA-2025:21776, RLSA-2025:21974, RLSA-2025:22175, RLSA-2026:3407, ROOT-OS-DEBIAN-11-CVE-2025-59375, SUSE-SU-2025:03508-1, SUSE-SU-2025:03536-1, SUSE-SU-2025:03537-1, SUSE-SU-2025:03624-1, SUSE-SU-2025:20868-1, SUSE-SU-2025:20895-1, SUSE-SU-2025:21006-1, SUSE-SU-2025:21028-1, UBUNTU-CVE-2025-59375, USN-8022-1, openSUSE-SU-2025:15573-1, openSUSE-SU-2025:20055-1

## What is CVE-2025-59375?

CVE-2025-59375 is a high-severity denial of service vulnerability in Libexpat Project Libexpat, published on 15 Sep 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

libexpat in Expat before 2.7.2 allows attackers to trigger large dynamic memory allocations via a small document that is submitted for parsing.

Weakness: CWE-770 (Allocation of Resources Without Limits or Throttling)

## Which versions are affected by CVE-2025-59375?

It affects 1 product.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `expat` | AlmaLinux:10 | All versions | 2.7.1-1.el10_0.3 |
| `expat` | AlmaLinux:10 | All versions | 2.7.1-1.el10_1.3 |
| `expat-devel` | AlmaLinux:10 | All versions | 2.7.1-1.el10_0.3 |
| `expat-devel` | AlmaLinux:10 | All versions | 2.7.1-1.el10_1.3 |
| `mingw32-expat` | AlmaLinux:8 | All versions | 2.5.0-1.el8_10 |
| `mingw32-fontconfig` | AlmaLinux:8 | All versions | 2.12.6-4.el8_10 |
| `mingw64-expat` | AlmaLinux:8 | All versions | 2.5.0-1.el8_10 |
| `mingw64-fontconfig` | AlmaLinux:8 | All versions | 2.12.6-4.el8_10 |
| `expat` | AlmaLinux:9 | All versions | 2.5.0-5.el9_7.1 |
| `expat-devel` | AlmaLinux:9 | All versions | 2.5.0-5.el9_7.1 |
| `expat` | Red Hat:enterprise_linux:10.0 | All versions | 0:2.7.1-1.el10_0.3 |
| `expat-debuginfo` | Red Hat:enterprise_linux:10.0 | All versions | 0:2.7.1-1.el10_0.3 |
| `expat-debugsource` | Red Hat:enterprise_linux:10.0 | All versions | 0:2.7.1-1.el10_0.3 |
| `expat-devel` | Red Hat:enterprise_linux:10.0 | All versions | 0:2.7.1-1.el10_0.3 |
| `expat` | Red Hat:enterprise_linux:10.1 | All versions | 0:2.7.1-1.el10_1.3 |
| `expat-debuginfo` | Red Hat:enterprise_linux:10.1 | All versions | 0:2.7.1-1.el10_1.3 |
| `expat-debugsource` | Red Hat:enterprise_linux:10.1 | All versions | 0:2.7.1-1.el10_1.3 |
| `expat-devel` | Red Hat:enterprise_linux:10.1 | All versions | 0:2.7.1-1.el10_1.3 |
| `mingw-expat` | Red Hat:enterprise_linux:8::crb | All versions | 0:2.5.0-1.el8_10 |
| `mingw-fontconfig` | Red Hat:enterprise_linux:8::crb | All versions | 0:2.12.6-4.el8_10 |
| `mingw32-expat` | Red Hat:enterprise_linux:8::crb | All versions | 0:2.5.0-1.el8_10 |
| `mingw32-expat-debuginfo` | Red Hat:enterprise_linux:8::crb | All versions | 0:2.5.0-1.el8_10 |
| `mingw32-fontconfig` | Red Hat:enterprise_linux:8::crb | All versions | 0:2.12.6-4.el8_10 |
| `mingw32-fontconfig-debuginfo` | Red Hat:enterprise_linux:8::crb | All versions | 0:2.12.6-4.el8_10 |
| `mingw64-expat` | Red Hat:enterprise_linux:8::crb | All versions | 0:2.5.0-1.el8_10 |
| `mingw64-expat-debuginfo` | Red Hat:enterprise_linux:8::crb | All versions | 0:2.5.0-1.el8_10 |
| `mingw64-fontconfig` | Red Hat:enterprise_linux:8::crb | All versions | 0:2.12.6-4.el8_10 |
| `mingw64-fontconfig-debuginfo` | Red Hat:enterprise_linux:8::crb | All versions | 0:2.12.6-4.el8_10 |
| `expat-debuginfo` | Red Hat:enterprise_linux:9::appstream | All versions | 0:2.5.0-5.el9_7.1 |
| `expat-debugsource` | Red Hat:enterprise_linux:9::appstream | All versions | 0:2.5.0-5.el9_7.1 |
| `expat-devel` | Red Hat:enterprise_linux:9::appstream | All versions | 0:2.5.0-5.el9_7.1 |
| `expat` | Red Hat:enterprise_linux:9::baseos | All versions | 0:2.5.0-5.el9_7.1 |
| `expat-debuginfo` | Red Hat:enterprise_linux:9::baseos | All versions | 0:2.5.0-5.el9_7.1 |
| `expat-debugsource` | Red Hat:enterprise_linux:9::baseos | All versions | 0:2.5.0-5.el9_7.1 |
| `expat` | Red Hat:hummingbird:1 | All versions | 0:2.7.5-1.hum1 |
| `expat-devel` | Red Hat:hummingbird:1 | All versions | 0:2.7.5-1.hum1 |
| `expat-static` | Red Hat:hummingbird:1 | All versions | 0:2.7.5-1.hum1 |
| `expat-debuginfo` | Red Hat:rhel_eus:9.6::appstream | All versions | 0:2.5.0-5.el9_6.1 |
| `expat-debugsource` | Red Hat:rhel_eus:9.6::appstream | All versions | 0:2.5.0-5.el9_6.1 |
| `expat-devel` | Red Hat:rhel_eus:9.6::appstream | All versions | 0:2.5.0-5.el9_6.1 |

Products: Libexpat Project Libexpat.

## How do I fix CVE-2025-59375?

Upgrade to a fixed version.

## Is CVE-2025-59375 being exploited?

There is no known exploitation of CVE-2025-59375 in the wild and no public exploit code.

## Other vulnerabilities in Libexpat Project Libexpat

- [CVE-2024-45490](https://insights.sbomify.com/CVE-2024-45490/): Integer overflow in n/a (critical 9.8)
- [CVE-2026-66046](https://insights.sbomify.com/CVE-2026-66046/): Expat Denial of Service via storeAtts() Quadratic Complexity (high 8.7)
- [CVE-2021-46143](https://insights.sbomify.com/CVE-2021-46143/): Integer overflow in n/a (high 8.1)
- [CVE-2017-11742](https://insights.sbomify.com/CVE-2017-11742/): Privilege escalation in n/a (high 7.8)
- [CVE-2023-52425](https://insights.sbomify.com/CVE-2023-52425/): Denial of service in n/a (high 7.5)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2025-59375 and fix it if it is affected.

What it is: CVE-2025-59375 is a high-severity denial of service vulnerability in Libexpat Project Libexpat, published on 15 Sep 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2025-59375 in the wild and no public exploit code.

Affected product: Libexpat Project Libexpat. No package-level version data is available, so check the vendor advisory linked from the reference page.

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2025-59375/ (Markdown: https://insights.sbomify.com/CVE-2025-59375/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2025-59375
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2025-59375
- OSV: https://osv.dev/vulnerability/CVE-2025-59375

---
From sbomify Insights: https://insights.sbomify.com/CVE-2025-59375/
Summaries are generated and may contain mistakes; the official description above is the record.
