Denial of Service Vulnerability in libcommons-fileupload-java: Apache Commons Fileupload MultipartStream Class

libcommons-fileupload-java Updated 02 Oct 2025

Summary

04/07/2016
N/A
Yes i
Unrated
Not published

DEBIAN-CVE-2016-3092: The MultipartStream class in Apache Commons Fileupload before 1.3.2, as used in Apache Tomcat 7.x before 7.0.70, 8.x before 8.0.36, 8.5.x before 8.5.3, and 9.x before 9.0.0.M7 and other products, allows remote attackers... Affects libcommons-fileupload-java versions < 1.3.2-1. Fixed in 1.3.2-1. 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

libcommons-fileupload-java is a Java library that provides support for file uploads in web applications. It is widely used in conjunction with Java-based web servers like Apache Tomcat. The library facilitates the handling of multipart/form-data requests, which are essential for file uploads. However, prior to version 1.3.2, the MultipartStream class contained a vulnerability that could be exploited by attackers to cause excessive CPU consumption, leading to denial of service.

Vulnerability Detail

The vulnerability arises from the MultipartStream class in Apache Commons Fileupload versions before 1.3.2. It allows remote attackers to send a long boundary string, which can lead to high CPU usage and potentially crash the server. This issue affects various versions of Apache Tomcat and other products that utilize this library, making it a significant concern for web applications relying on file uploads.

How To Fix

Minimum fixed version

1.3.2-1

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 workaround, you can implement input validation to restrict the length of boundary strings in multipart requests. This can help mitigate the risk of denial of service until the package is updated.

Conclusion

The vulnerability in the libcommons-fileupload-java package poses a significant risk of denial of service due to excessive CPU consumption from long boundary strings. It is crucial to update to the patched version to mitigate this risk and ensure the stability of web applications that rely on file uploads.

See every vulnerability recorded for libcommons-fileupload-java →

Share this vulnerability

FAQ

The vulnerability can lead to denial of service by consuming excessive CPU resources, potentially crashing the server.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

Yes, the patch is available in version 1.3.2-1 of the libcommons-fileupload-java package.

Implement input validation to restrict the length of boundary strings in multipart requests as a temporary workaround.

Related vulnerabilities

Recent vulnerabilities recorded for libcommons-fileupload-java.

How To Fix

Minimum fixed version

1.3.2-1

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