Input validation error in Apache Commons FileUpload - CVE-2013-2186

 

Input validation error in Apache Commons FileUpload - CVE-2013-2186

Published: September 25, 2023


Vulnerability identifier: #VU81098
CSH Severity: High
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Amber
CVE-ID: CVE-2013-2186
CWE-ID: CWE-20
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: Apache Foundation
Affected software:
Apache Commons FileUpload

Detailed vulnerability description

The vulnerability allows a remote attacker to overwrite arbitrary files on the system.

The vulnerability exists due to insufficient validation of user-supplied input when processing file names with a NULL byte within the DiskFileItem class. A remote attacker can upload a specially crafted file with a NULL byte in its name and overwrite arbitrary files on the system.


How to mitigate CVE-2013-2186

Install updates from vendor's website.

Sources