CVE-2023-24998
Apache Commons FileUpload, Apache Tomcat: FileUpload DoS with excessive parts
Also known as GHSA-hfrx-6qgj-fp6c
Mitigation
- Upgrade commons-fileupload:commons-fileupload to 1.5 or later.
- Upgrade org.apache.tomcat:tomcat-coyote to one of 10.1.5, 11.0.0-M5, 8.5.88, 9.0.71 (or later in the same release line).
- Upgrade org.apache.tomcat.embed:tomcat-embed-core to one of 10.1.5, 11.0.0-M5, 8.5.88, 9.0.71 (or later in the same release line).
- Upgrade org.apache.tomcat:tomcat-catalina to one of 10.1.5, 11.0.0-M5, 8.5.88, 9.0.71 (or later in the same release line).
Who should check
- Projects that depend on Maven package commons-fileupload:commons-fileupload (< 1.5)
- Projects that depend on Maven package org.apache.tomcat:tomcat-coyote (>= 10.1.0-M1, < 10.1.5)
- Projects that depend on Maven package org.apache.tomcat.embed:tomcat-embed-core (>= 10.1.0-M1, < 10.1.5)
- Projects that depend on Maven package org.apache.tomcat:tomcat-catalina (>= 10.1.0-M1, < 10.1.5)
- Anyone running Apache Software Foundation Apache Commons FileUpload < 1.5
- Anyone running Apache Software Foundation Apache Tomcat 11.0.0-M1; >= 10.0.0-M1, <= 10.1.4; >= 9.0.0-M1, <= 9.0.70; >= 8.5.0, <= 8.5.84
Vulnerability facts
- Affected
- commons-fileupload:commons-fileupload < 1.5; org.apache.tomcat:tomcat-coyote >= 10.1.0-M1, < 10.1.5; org.apache.tomcat.embed:tomcat-embed-core >= 10.1.0-M1, < 10.1.5; org.apache.tomcat:tomcat-catalina >= 10.1.0-M1, < 10.1.5
- Fixed in
- 1.5, 10.1.5, 11.0.0-M5, 8.5.88, 9.0.71
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 7.5 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: None
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: None
- Integrity impact: None
- Availability impact: High
- EPSS
- 7.73% chance of exploitation in 30 days (percentile 95, 2026-11-26)
- CWE
- CWE-770
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Maven commons-fileupload:commons-fileupload | < 1.5 | 1.5 | osv |
| Maven org.apache.tomcat:tomcat-coyote | >= 10.1.0-M1, < 10.1.5 | 10.1.5, 11.0.0-M5, 8.5.88, 9.0.71 | osv |
| Maven org.apache.tomcat.embed:tomcat-embed-core | >= 10.1.0-M1, < 10.1.5 | 10.1.5, 11.0.0-M5, 8.5.88, 9.0.71 | osv |
| Maven org.apache.tomcat:tomcat-catalina | >= 10.1.0-M1, < 10.1.5 | 10.1.5, 11.0.0-M5, 8.5.88, 9.0.71 | osv |
| Apache Software Foundation Apache Commons FileUpload | < 1.5 | — | cvelist |
| Apache Software Foundation Apache Tomcat | 11.0.0-M1; >= 10.0.0-M1, <= 10.1.4; >= 9.0.0-M1, <= 9.0.70; >= 8.5.0, <= 8.5.84 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2023-24998. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2023-24998.md Affected: commons-fileupload:commons-fileupload < 1.5; org.apache.tomcat:tomcat-coyote >= 10.1.0-M1, < 10.1.5; org.apache.tomcat.embed:tomcat-embed-core >= 10.1.0-M1, < 10.1.5; org.apache.tomcat:tomcat-catalina >= 10.1.0-M1, < 10.1.5 Fixed in: 1.5, 10.1.5, 11.0.0-M5, 8.5.88, 9.0.71 Steps: 1. Search this machine and project for commons-fileupload:commons-fileupload (Maven), org.apache.tomcat:tomcat-coyote (Maven), org.apache.tomcat.embed:tomcat-embed-core (Maven), org.apache.tomcat:tomcat-catalina (Maven), Apache Software Foundation Apache Commons FileUpload, Apache Software Foundation Apache Tomcat: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Patches
- https://github.com/apache/commons-fileupload/commit/e20c04990f7420ca917e96a84cec58b13a1b3d17
- https://github.com/apache/tomcat/commit/8a2285f13affa961cc65595aad999db5efae45ce
- https://github.com/apache/tomcat/commit/9ca96c8c1eba86c0aaa2e6be581ba2a7d4d4ae6e
- https://github.com/apache/tomcat/commit/cf77cc545de0488fb89e24294151504a7432df74
- https://github.com/apache/tomcat/commit/d53d8e7f77042cc32a3b98f589496a1ef5088e38
Other
- http://www.openwall.com/lists/oss-security/2023/05/22/1
- https://security.gentoo.org/glsa/202305-37
- https://www.debian.org/security/2023/dsa-5522
- https://lists.debian.org/debian-lts-announce/2023/10/msg00020.html
- https://security.netapp.com/advisory/ntap-20230302-0013/
- https://lists.debian.org/debian-lts-announce/2025/07/msg00008.html
- https://security.netapp.com/advisory/ntap-20241108-0002/
- https://tomcat.apache.org/security-9.html
- https://tomcat.apache.org/security-8.html
- https://tomcat.apache.org/security-11.html
- https://tomcat.apache.org/security-10.html
- https://security.netapp.com/advisory/ntap-20241108-0002
- https://security.netapp.com/advisory/ntap-20230302-0013
- https://github.com/search?q=repo%3Aapache%2Ftomcat+util.http+path%3A%2F%5Eres%5C%2Fbnd%5C%2F%2F&type=code
- https://github.com/apache/commons-fileupload
- https://commons.apache.org/proper/commons-fileupload/security-reports.html
FAQ
Is CVE-2023-24998 being exploited?
There is no confirmed exploitation: CVE-2023-24998 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 7.73% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2023-24998?
High: CVSS 7.5 (v3.1, scored by CNA). Remote, no login needed.
Which versions are affected by CVE-2023-24998?
commons-fileupload:commons-fileupload < 1.5; org.apache.tomcat:tomcat-coyote >= 10.1.0-M1, < 10.1.5; org.apache.tomcat.embed:tomcat-embed-core >= 10.1.0-M1, < 10.1.5; org.apache.tomcat:tomcat-catalina >= 10.1.0-M1, < 10.1.5.
Is there a fix for CVE-2023-24998?
Yes. Fixed in 1.5, 10.1.5, 11.0.0-M5, 8.5.88, 9.0.71. Upgrade commons-fileupload:commons-fileupload to 1.5 or later. Upgrade org.apache.tomcat:tomcat-coyote to one of 10.1.5, 11.0.0-M5, 8.5.88, 9.0.71 (or later in the same release line). Upgrade org.apache.tomcat.embed:tomcat-embed-core to one of 10.1.5, 11.0.0-M5, 8.5.88, 9.0.71 (or later in the same release line). Upgrade org.apache.tomcat:tomcat-catalina to one of 10.1.5, 11.0.0-M5, 8.5.88, 9.0.71 (or later in the same release line).
How do I check if I'm affected by CVE-2023-24998?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.