CVE-2013-2186: Arbitrary file write in Apache Commons Fileupload
N/A
CVSS Score
Basic Information
CVE ID
GHSA ID
EPSS Score
0.99563%
CWE
Published
5/14/2022
Updated
3/5/2024
KEV Status
No
Technology
Java
Technical Details
CVSS Vector
-
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
commons-fileupload:commons-fileupload | maven | < 1.3.1 | 1.3.1 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from improper input validation during deserialization of DiskFileItem objects. The commit diff shows critical validation checks were added to the readObject method, including null byte detection in repository paths and directory verification. Prior to this fix, the absence of these checks allowed attackers to exploit Java's serialization mechanism to write files to unintended locations. The test cases added in DiskFileItemSerializeTest.java specifically validate these scenarios, confirming the attack vector involved deserialization of malicious DiskFileItem instances.