DoS Vulnerability in Apache Commons FileUpload and Tomcat9 Packages

libcommons-fileupload-java Updated 02 Oct 2025

Summary

16/06/2025
N/A
Yes i
Unrated
Not published

DEBIAN-CVE-2025-48976: Allocation of resources for multipart headers with insufficient limits enabled a DoS vulnerability in Apache Commons FileUpload. Affects libcommons-fileupload-java versions < 1.4-1+deb11u1. Fixed in 1.4-1+deb11u1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Apache Commons FileUpload is a library that provides support for file uploads in Java applications. It is widely used in conjunction with web servers and applications to handle multipart file uploads. The affected versions of this library, prior to 1.6, have a vulnerability that allows for Denial of Service (DoS) attacks due to insufficient limits on multipart headers. Tomcat9, a popular Java Servlet container, also utilizes this library, making it susceptible to the same vulnerability.

Vulnerability Detail

The vulnerability arises from the allocation of resources for multipart headers without adequate limits, which can lead to a Denial of Service (DoS) condition. Attackers can exploit this flaw by sending specially crafted multipart requests that overwhelm the server, causing it to become unresponsive. This issue affects Apache Commons FileUpload versions from 1.0 before 1.6 and from 2.0.0-M1 before 2.0.0-M4. The ramifications include potential downtime and service disruption for applications relying on these libraries.

How To Fix

Minimum fixed version

1.4-1+deb11u1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade libcommons-fileupload-java

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary measure, users can implement request size limits in their application configurations to mitigate the risk of DoS attacks until the packages are updated. This can be done by setting appropriate limits on the size of multipart requests in the server configuration.

Conclusion

In summary, the vulnerability in Apache Commons FileUpload and Tomcat9 poses a significant risk of Denial of Service attacks due to insufficient limits on multipart headers. Users are strongly advised to upgrade to the patched versions of the affected packages to ensure the security and stability of their applications.

See every vulnerability recorded for libcommons-fileupload-java →

Share this vulnerability

FAQ

The vulnerability is a Denial of Service (DoS) issue caused by insufficient limits on multipart headers in Apache Commons FileUpload.

Apache Commons FileUpload versions prior to 1.6 and Tomcat9 versions prior to 9.0.107-0+deb11u1 for Debian 11 are affected.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.

The vulnerability can lead to service disruption and downtime for applications that rely on the affected libraries, as attackers can exploit it to make the server unresponsive.

Yes, implementing request size limits in your application configurations can help mitigate the risk of DoS attacks until the packages are updated.

Related vulnerabilities

Recent vulnerabilities recorded for libcommons-fileupload-java.

How To Fix

Minimum fixed version

1.4-1+deb11u1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade libcommons-fileupload-java

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback