# CVE-2025-48976: Apache Commons FileUpload, Apache Commons FileUpload: FileUpload DoS via part headers

> Attackers can cause denial of service in applications using Apache Commons FileUpload by sending multipart headers with excessive resource allocation.

- **Severity:** High 7.5 (`CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 16 Jun 2025
- **Updated:** 3 Nov 2025
- **Also known as:** CLSA-2026-1777509601, CLSA-2026-1777509603, CLSA-2026-1777941823, DEBIAN-CVE-2025-48976, ECHO-830f-870a-69ba, GHSA-vv7r-c36w-3prj, MGASA-2025-0296, MINI-3fwh-37pf-5p96, MINI-fmhp-x964-9h9j, MINI-m7c4-4p5h-hhvc, MINI-w78r-7f6p-6fv3, OESA-2025-1706, OESA-2025-1765, OESA-2025-1814, OESA-2025-1815, OESA-2025-1817, OESA-2025-1818, OESA-2025-1819, RHLW-2026-8f37e023b4e3806b, ROOT-APP-MAVEN-CVE-2025-48976, SUSE-SU-2025:02159-1, SUSE-SU-2025:02184-1, UBUNTU-CVE-2025-48976, openSUSE-SU-2025:15208-1

## What is CVE-2025-48976?

CVE-2025-48976 is a high-severity denial of service vulnerability in Apache Commons FileUpload, published on 16 Jun 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

Allocation of resources for multipart headers with insufficient limits enabled a DoS vulnerability in Apache Commons FileUpload.

This issue affects Apache Commons FileUpload: from 1.0 before 1.6; from 2.0.0-M1 before 2.0.0-M4.

Users are recommended to upgrade to versions 1.6 or 2.0.0-M4, which fix the issue.

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

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

4 open source packages ship an affected version, including org.apache.commons:commons-fileupload2-core and commons-fileupload:commons-fileupload. It affects 1 product.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `org.apache.commons:commons-fileupload2-core` | Maven | From 2.0.0-M1 | 2.0.0-M4 |
| `org.apache.commons:commons-fileupload2-core` | Maven | From 2.0.0-M1 | 2.0.0-M4 |
| `commons-fileupload:commons-fileupload` | Maven | From 1.0 | 1.6.0 |
| `commons-fileupload:commons-fileupload` | Maven | From 1.0 | 1.6.0 |
| `apache-commons-fileupload` | SUSE:Enterprise Storage 7.1 | All versions | 1.6.0-150200.3.12.1 |
| `apache-commons-fileupload` | SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS | All versions | 1.6.0-150200.3.12.1 |
| `apache-commons-fileupload` | SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS | All versions | 1.6.0-150200.3.12.1 |
| `apache-commons-fileupload` | SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS | All versions | 1.6.0-150200.3.12.1 |
| `apache-commons-fileupload` | SUSE:Linux Enterprise High Performance Computing 15 SP5-ESPOS | All versions | 1.6.0-150200.3.12.1 |
| `apache-commons-fileupload` | SUSE:Linux Enterprise High Performance Computing 15 SP5-LTSS | All versions | 1.6.0-150200.3.12.1 |
| `apache-commons-fileupload` | SUSE:Linux Enterprise Module for Web and Scripting 15 SP6 | All versions | 1.6.0-150200.3.12.1 |
| `apache-commons-fileupload` | SUSE:Linux Enterprise Module for Web and Scripting 15 SP7 | All versions | 1.6.0-150200.3.12.1 |
| `jakarta-commons-fileupload` | SUSE:Linux Enterprise Server 12 SP5-LTSS | All versions | 1.6.0-126.3.1 |
| `apache-commons-fileupload` | SUSE:Linux Enterprise Server 15 SP3-LTSS | All versions | 1.6.0-150200.3.12.1 |
| `apache-commons-fileupload` | SUSE:Linux Enterprise Server 15 SP4-LTSS | All versions | 1.6.0-150200.3.12.1 |
| `apache-commons-fileupload` | SUSE:Linux Enterprise Server 15 SP5-LTSS | All versions | 1.6.0-150200.3.12.1 |
| `jakarta-commons-fileupload` | SUSE:Linux Enterprise Server LTSS Extended Security 12 SP5 | All versions | 1.6.0-126.3.1 |
| `apache-commons-fileupload` | SUSE:Linux Enterprise Server for SAP Applications 15 SP3 | All versions | 1.6.0-150200.3.12.1 |
| `apache-commons-fileupload` | SUSE:Linux Enterprise Server for SAP Applications 15 SP4 | All versions | 1.6.0-150200.3.12.1 |
| `apache-commons-fileupload` | SUSE:Linux Enterprise Server for SAP Applications 15 SP5 | All versions | 1.6.0-150200.3.12.1 |
| `apache-commons-fileupload` | SUSE:Manager Server 4.3 | All versions | 1.6.0-150200.3.12.1 |
| `apache-commons-fileupload` | openSUSE:Leap 15.6 | All versions | 1.6.0-150200.3.12.1 |
| `apache-commons-fileupload` | openSUSE:Tumbleweed | All versions | 1.6.0-1.1 |

Products: Apache Commons Fileupload.

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

Upgrade org.apache.commons:commons-fileupload2-core to 2.0.0-M4 or later.

## Is CVE-2025-48976 being exploited?

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

Public exploit code:

- CVE-2025-48976_CVE-2025-48988 (github_poc): https://github.com/nankuo/CVE-2025-48976_CVE-2025-48988

## Other vulnerabilities in Apache Commons FileUpload

- [CVE-2016-1000031](https://insights.sbomify.com/CVE-2016-1000031/): Improper Access Control in commons-fileupload (critical 9.8)
- [CVE-2023-24998](https://insights.sbomify.com/CVE-2023-24998/): Apache Commons FileUpload, Apache Tomcat: FileUpload DoS with excessive parts (high 7.5)
- [CVE-2016-3092](https://insights.sbomify.com/CVE-2016-3092/): High severity vulnerability that affects commons-fileupload:commons-fileupload (high 7.5)
- [CVE-2014-0050](https://insights.sbomify.com/CVE-2014-0050/): Commons FileUpload Denial of service vulnerability (high 7.5)
- [CVE-2013-0248](https://insights.sbomify.com/CVE-2013-0248/): Incorrect Default Permissions in Apache Commons FileUpload (medium 6.8)

## Fix prompt for AI coding agents

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

What it is: CVE-2025-48976 is a high-severity denial of service vulnerability in Apache Commons FileUpload, published on 16 Jun 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-48976 in the wild and no public exploit code.

Affected packages and fixed versions:
- org.apache.commons:commons-fileupload2-core (Maven): affected from 2.0.0-M1; fixed in 2.0.0-M4
- org.apache.commons:commons-fileupload2-core (Maven): affected from 2.0.0-M1; fixed in 2.0.0-M4
- commons-fileupload:commons-fileupload (Maven): affected from 1.0; fixed in 1.6.0
- commons-fileupload:commons-fileupload (Maven): affected from 1.0; fixed in 1.6.0

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-48976/ (Markdown: https://insights.sbomify.com/CVE-2025-48976/index.md)
```

## Sources

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

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