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

High 7.5 Published Updated

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

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

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

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.

PackageAffectedFixed in
org.apache.tomcat.embed:tomcat-embed-core MavenFrom 10.1.0-M110.1.5
org.apache.tomcat.embed:tomcat-embed-core MavenFrom 10.1.0-M110.1.5
org.apache.tomcat.embed:tomcat-embed-core MavenFrom 11.0.0-M211.0.0-M5
org.apache.tomcat.embed:tomcat-embed-core MavenFrom 11.0.0-M211.0.0-M5
org.apache.tomcat.embed:tomcat-embed-core MavenFrom 8.5.858.5.88
org.apache.tomcat.embed:tomcat-embed-core MavenFrom 8.5.858.5.88
20 more packages
org.apache.tomcat.embed:tomcat-embed-core MavenFrom 9.0.0-M19.0.71
org.apache.tomcat.embed:tomcat-embed-core MavenFrom 9.0.0-M19.0.71
commons-fileupload:commons-fileupload MavenAll versions1.5
commons-fileupload:commons-fileupload MavenAll versions1.5
org.apache.tomcat:tomcat-catalina MavenFrom 10.1.0-M110.1.5
org.apache.tomcat:tomcat-catalina MavenFrom 10.1.0-M110.1.5
org.apache.tomcat:tomcat-catalina MavenFrom 11.0.0-M211.0.0-M5
org.apache.tomcat:tomcat-catalina MavenFrom 11.0.0-M211.0.0-M5
org.apache.tomcat:tomcat-catalina MavenFrom 8.5.858.5.88
org.apache.tomcat:tomcat-catalina MavenFrom 8.5.858.5.88
org.apache.tomcat:tomcat-catalina MavenFrom 9.0.0-M19.0.71
org.apache.tomcat:tomcat-catalina MavenFrom 9.0.0-M19.0.71
org.apache.tomcat:tomcat-coyote MavenFrom 10.1.0-M110.1.5
org.apache.tomcat:tomcat-coyote MavenFrom 10.1.0-M110.1.5
org.apache.tomcat:tomcat-coyote MavenFrom 11.0.0-M211.0.0-M5
org.apache.tomcat:tomcat-coyote MavenFrom 11.0.0-M211.0.0-M5
org.apache.tomcat:tomcat-coyote MavenFrom 8.5.858.5.88
org.apache.tomcat:tomcat-coyote MavenFrom 8.5.858.5.88
org.apache.tomcat:tomcat-coyote MavenFrom 9.0.0-M19.0.71
org.apache.tomcat:tomcat-coyote MavenFrom 9.0.0-M19.0.71
Linux distribution packages (14)
apache-commons-fileupload SUSE:Enterprise Storage 7All versions1.5-150200.3.9.1
apache-commons-fileupload SUSE:Enterprise Storage 7.1All versions1.5-150200.3.9.1
tomcat SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSSAll versions9.0.36-150100.4.87.1
apache-commons-fileupload SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSSAll versions1.5-150200.3.9.1
apache-commons-fileupload SUSE:Linux Enterprise High Performance Computing 15 SP3-ESPOSAll versions1.5-150200.3.9.1
apache-commons-fileupload SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSSAll versions1.5-150200.3.9.1
apache-commons-fileupload SUSE:Linux Enterprise Module for Web and Scripting 15 SP4All versions1.5-150200.3.9.1
apache-commons-fileupload SUSE:Linux Enterprise Module for Web and Scripting 15 SP5All versions1.5-150200.3.9.1
tomcat SUSE:Linux Enterprise Server 12 SP2-BCLAll versions8.0.53-29.63.1
tomcat SUSE:Linux Enterprise Server 12 SP4-ESPOSAll versions9.0.36-3.99.1
tomcat SUSE:Linux Enterprise Server 12 SP4-LTSSAll versions9.0.36-3.99.1
tomcat SUSE:Linux Enterprise Server 12 SP5All versions9.0.36-3.99.1
tomcat SUSE:Linux Enterprise Server 15 SP1-LTSSAll versions9.0.36-150100.4.87.1
apache-commons-fileupload SUSE:Linux Enterprise Server 15 SP2-LTSSAll versions1.5-150200.3.9.1

Products include 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.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

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: 1 proofs of concept on GitHub.

All Debian Debian Linux vulnerabilities

Sources

Also known as CLEANSTART-2026-VW03331, CLSA-2026-1779410887, CLSA-2026-1780929699, DEBIAN-CVE-2023-24998, GHSA-hfrx-6qgj-fp6c, MGASA-2023-0070 and 10 more.

Is CVE-2023-24998 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free