Apache Commons FileUpload, Apache Tomcat: FileUpload DoS with excessive parts
Key Information:
- Vendor
Apache
- CVE ID
- CVE ID:
- CVE-2023-24998
- Vendor
- CVE Published:
- 20 February 2023
- Fixed in
- Fixed in:
- 1.5
Timeline
Exploit known 37 days after it was published
- ๐ก
Public PoC available
- ๐พ
Exploit known to exist
Vulnerability published
Vulnerability Reserved
Badges
How risky is it?
- Yes: Works over the network, no login needed
- Yes: Public exploit code (1 proof-of-concept)
- No: Not on CISA's exploited list
- No: No ransomware use seen
Our verdict
Patch this week
Exploitation is likely. Prioritise the fix.
What to do
1Update to a fixed version
Several version ranges are affected; the full list is under Affected Version(s).
2Can't patch yet? Reduce exposure
It can be reached over the network, so limit who can reach Apache Commons FileUpload. Block it from the internet, allow only trusted hosts or a VPN, and turn off the affected feature if you don't use it, until you can update.
3Look for signs of compromise
Exploit code is public, so check logs on exposed Apache Commons FileUpload systems for unusual requests or new processes from before you patched. The 1 public proof-of-concept show what an attack looks like.
4Why it's rated "Patch this week"
- Exploit code is public, so attacks are easy to copy.
- It can be exploited remotely without credentials.
- Its CVSS severity is high (7.5).
What is CVE-2023-24998?
The Apache Commons FileUpload before version 1.5 is susceptible to a Denial of Service attack due to its failure to restrict the number of parts processed in a request. This oversight allows an attacker to exploit the system by making malicious uploads or sending a series of uploads, potentially overwhelming the application. Additionally, the new configuration option, FileUploadBase#setFileCountMax, which addresses this issue by limiting the number of request parts, is not enabled by default and requires explicit configuration to safeguard against these attacks.
Affected Version(s)
Apache Commons FileUpload 0 < 1.5
Apache Tomcat 11.0.0-M1
Apache Tomcat 10.0.0-M1 <= 10.1.4
Exploit Proof of Concept (PoC)
PoC code is written by security researchers to demonstrate the vulnerability can be exploited. PoC code is also a key component for weaponization which could lead to ransomware.
References
More Apache Vulnerabilities
Key Exchange Vulnerability in Apache Tomcat
Improper Exception Management in Apache Tomcat Affects Multiple Versions
Deserialization Vulnerability in Apache Roller Affects Multiple Versions
Facts on this page come from the sources listed above; the writeup is AI-assisted. How we rate vulnerabilities ยท Report a correction