# CVE-2023-24998: Apache Commons FileUpload, Apache Tomcat: FileUpload DoS with excessive parts

> Attackers can cause denial of service by sending excessive file upload parts, affecting applications using Apache Commons FileUpload.

- **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:** 20 Feb 2023
- **Updated:** 7 Oct 2026
- **Also known as:** CLEANSTART-2026-VW03331, CLSA-2026-1779410887, CLSA-2026-1780929699, DEBIAN-CVE-2023-24998, GHSA-hfrx-6qgj-fp6c, MGASA-2023-0070, MINI-qvjr-6hmw-wgj2, OESA-2023-1155, ROOT-APP-MAVEN-CVE-2023-24998, SUSE-SU-2023:0695-1, SUSE-SU-2023:0696-1, SUSE-SU-2023:0697-1, SUSE-SU-2023:2390-1, UBUNTU-CVE-2023-24998, openSUSE-SU-2024:12750-1, openSUSE-SU-2024:12950-1

## What is CVE-2023-24998?

CVE-2023-24998 is a high-severity denial of service vulnerability in Debian Debian Linux, published on 20 Feb 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

Apache Commons FileUpload before 1.5 does not limit the number of request parts to be processed resulting in the possibility of an attacker triggering a DoS with a malicious upload or series of uploads.

Note that, like all of the file upload limits, the
          new configuration option (FileUploadBase#setFileCountMax) is not
          enabled by default and must be explicitly configured.

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

## Which versions are affected by CVE-2023-24998?

26 open source packages ship an affected version, including org.apache.tomcat.embed:tomcat-embed-core, commons-fileupload:commons-fileupload and org.apache.tomcat:tomcat-catalina. It affects 2 products.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `org.apache.tomcat.embed:tomcat-embed-core` | Maven | From 10.1.0-M1 | 10.1.5 |
| `org.apache.tomcat.embed:tomcat-embed-core` | Maven | From 10.1.0-M1 | 10.1.5 |
| `org.apache.tomcat.embed:tomcat-embed-core` | Maven | From 11.0.0-M2 | 11.0.0-M5 |
| `org.apache.tomcat.embed:tomcat-embed-core` | Maven | From 11.0.0-M2 | 11.0.0-M5 |
| `org.apache.tomcat.embed:tomcat-embed-core` | Maven | From 8.5.85 | 8.5.88 |
| `org.apache.tomcat.embed:tomcat-embed-core` | Maven | From 8.5.85 | 8.5.88 |
| `org.apache.tomcat.embed:tomcat-embed-core` | Maven | From 9.0.0-M1 | 9.0.71 |
| `org.apache.tomcat.embed:tomcat-embed-core` | Maven | From 9.0.0-M1 | 9.0.71 |
| `commons-fileupload:commons-fileupload` | Maven | All versions | 1.5 |
| `commons-fileupload:commons-fileupload` | Maven | All versions | 1.5 |
| `org.apache.tomcat:tomcat-catalina` | Maven | From 10.1.0-M1 | 10.1.5 |
| `org.apache.tomcat:tomcat-catalina` | Maven | From 10.1.0-M1 | 10.1.5 |
| `org.apache.tomcat:tomcat-catalina` | Maven | From 11.0.0-M2 | 11.0.0-M5 |
| `org.apache.tomcat:tomcat-catalina` | Maven | From 11.0.0-M2 | 11.0.0-M5 |
| `org.apache.tomcat:tomcat-catalina` | Maven | From 8.5.85 | 8.5.88 |
| `org.apache.tomcat:tomcat-catalina` | Maven | From 8.5.85 | 8.5.88 |
| `org.apache.tomcat:tomcat-catalina` | Maven | From 9.0.0-M1 | 9.0.71 |
| `org.apache.tomcat:tomcat-catalina` | Maven | From 9.0.0-M1 | 9.0.71 |
| `org.apache.tomcat:tomcat-coyote` | Maven | From 10.1.0-M1 | 10.1.5 |
| `org.apache.tomcat:tomcat-coyote` | Maven | From 10.1.0-M1 | 10.1.5 |
| `org.apache.tomcat:tomcat-coyote` | Maven | From 11.0.0-M2 | 11.0.0-M5 |
| `org.apache.tomcat:tomcat-coyote` | Maven | From 11.0.0-M2 | 11.0.0-M5 |
| `org.apache.tomcat:tomcat-coyote` | Maven | From 8.5.85 | 8.5.88 |
| `org.apache.tomcat:tomcat-coyote` | Maven | From 8.5.85 | 8.5.88 |
| `org.apache.tomcat:tomcat-coyote` | Maven | From 9.0.0-M1 | 9.0.71 |
| `org.apache.tomcat:tomcat-coyote` | Maven | From 9.0.0-M1 | 9.0.71 |
| `apache-commons-fileupload` | SUSE:Enterprise Storage 7 | All versions | 1.5-150200.3.9.1 |
| `apache-commons-fileupload` | SUSE:Enterprise Storage 7.1 | All versions | 1.5-150200.3.9.1 |
| `tomcat` | SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS | All versions | 9.0.36-150100.4.87.1 |
| `apache-commons-fileupload` | SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS | All versions | 1.5-150200.3.9.1 |
| `apache-commons-fileupload` | SUSE:Linux Enterprise High Performance Computing 15 SP3-ESPOS | All versions | 1.5-150200.3.9.1 |
| `apache-commons-fileupload` | SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS | All versions | 1.5-150200.3.9.1 |
| `apache-commons-fileupload` | SUSE:Linux Enterprise Module for Web and Scripting 15 SP4 | All versions | 1.5-150200.3.9.1 |
| `apache-commons-fileupload` | SUSE:Linux Enterprise Module for Web and Scripting 15 SP5 | All versions | 1.5-150200.3.9.1 |
| `tomcat` | SUSE:Linux Enterprise Server 12 SP2-BCL | All versions | 8.0.53-29.63.1 |
| `tomcat` | SUSE:Linux Enterprise Server 12 SP4-ESPOS | All versions | 9.0.36-3.99.1 |
| `tomcat` | SUSE:Linux Enterprise Server 12 SP4-LTSS | All versions | 9.0.36-3.99.1 |
| `tomcat` | SUSE:Linux Enterprise Server 12 SP5 | All versions | 9.0.36-3.99.1 |
| `tomcat` | SUSE:Linux Enterprise Server 15 SP1-LTSS | All versions | 9.0.36-150100.4.87.1 |
| `apache-commons-fileupload` | SUSE:Linux Enterprise Server 15 SP2-LTSS | All versions | 1.5-150200.3.9.1 |

Products: Apache Commons Fileupload, Debian Debian Linux.

## How do I fix CVE-2023-24998?

Upgrade org.apache.tomcat.embed:tomcat-embed-core to a fixed version for your release line: 10.1.5, 11.0.0-M5, 8.5.88 or 9.0.71.

## Is CVE-2023-24998 being exploited?

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

Public exploit code:

- Apache Commons FileUpload 보안 취약점 테스트 (github_poc): https://github.com/nice1st/CVE-2023-24998

## Other vulnerabilities in Debian Debian Linux

- [CVE-2016-1000031](https://insights.sbomify.com/CVE-2016-1000031/): Improper Access Control in commons-fileupload (critical 9.8)
- [CVE-2025-48976](https://insights.sbomify.com/CVE-2025-48976/): Apache Commons FileUpload, Apache Commons FileUpload: FileUpload DoS via part headers (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-2023-24998 and fix it if it is affected.

What it is: CVE-2023-24998 is a high-severity denial of service vulnerability in Debian Debian Linux, published on 20 Feb 2023. 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-2023-24998 in the wild and no public exploit code.

Affected packages and fixed versions:
- org.apache.tomcat.embed:tomcat-embed-core (Maven): affected from 10.1.0-M1; fixed in 10.1.5
- org.apache.tomcat.embed:tomcat-embed-core (Maven): affected from 10.1.0-M1; fixed in 10.1.5
- org.apache.tomcat.embed:tomcat-embed-core (Maven): affected from 11.0.0-M2; fixed in 11.0.0-M5
- org.apache.tomcat.embed:tomcat-embed-core (Maven): affected from 11.0.0-M2; fixed in 11.0.0-M5
- org.apache.tomcat.embed:tomcat-embed-core (Maven): affected from 8.5.85; fixed in 8.5.88
- org.apache.tomcat.embed:tomcat-embed-core (Maven): affected from 8.5.85; fixed in 8.5.88
- org.apache.tomcat.embed:tomcat-embed-core (Maven): affected from 9.0.0-M1; fixed in 9.0.71
- org.apache.tomcat.embed:tomcat-embed-core (Maven): affected from 9.0.0-M1; fixed in 9.0.71
- commons-fileupload:commons-fileupload (Maven): affected all versions; fixed in 1.5
- commons-fileupload:commons-fileupload (Maven): affected all versions; fixed in 1.5
- org.apache.tomcat:tomcat-catalina (Maven): affected from 10.1.0-M1; fixed in 10.1.5
- org.apache.tomcat:tomcat-catalina (Maven): affected from 10.1.0-M1; fixed in 10.1.5

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

## Sources

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

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