Arbitrary File Upload via Deserialization in libcommons-fileupload-java

libcommons-fileupload-java Updated 02 Oct 2025

Summary

24/12/2013
N/A
Yes i
Unrated
Not published

DSA-2827-1: libcommons-fileupload-java - arbitrary file upload via deserialization. Affects libcommons-fileupload-java versions < 1.2.2-1+deb6u1. Fixed in 1.2.2-1+deb6u1. 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 Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

libcommons-fileupload-java is a package that provides robust and high-performance file upload capability to servlets and web applications. It allows users to easily add file upload functionality to their applications. However, a vulnerability has been discovered in the package that allows remote attackers to upload arbitrary files to the server.

Vulnerability Detail

The vulnerability in libcommons-fileupload-java arises from the incorrect handling of file names with NULL bytes in serialized instances. An attacker can supply a serialized instance of the DiskFileItem class, which will be deserialized on the server. By exploiting this flaw, the attacker can write arbitrary content to any location on the server accessible to the user running the application server process. This can lead to unauthorized access, data leakage, or even remote code execution.

How To Fix

Minimum fixed version

1.2.2-1+deb6u1

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

There is no known workaround for this vulnerability. It is essential to apply the recommended fixes by upgrading the libcommons-fileupload-java package.

Conclusion

The vulnerability in libcommons-fileupload-java allows remote attackers to upload arbitrary files to the server, posing a significant security risk. It is crucial to upgrade the libcommons-fileupload-java package to the fixed versions mentioned in the advisory. For further support on vulnerability remediation, you can contact DevNack.com.

See every vulnerability recorded for libcommons-fileupload-java →

Share this vulnerability

FAQ

libcommons-fileupload-java is a package that provides file upload capability to servlets and web applications.

The vulnerability allows remote attackers to upload arbitrary files to the server, potentially leading to unauthorized access, data leakage, or remote code execution.

To fix this vulnerability, upgrade the libcommons-fileupload-java package to the fixed versions mentioned in the 'how_to_fix' section.

No, there is no known workaround for this vulnerability. It is crucial to apply the recommended fixes.

For more information, you can refer to the Debian Security Advisory DSA-2827-1.

Related vulnerabilities

Recent vulnerabilities recorded for libcommons-fileupload-java.

How To Fix

Minimum fixed version

1.2.2-1+deb6u1

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