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


Vulnerability identifier: #VU81098

Vulnerability risk: High

CVSSv4.0: 8.1 [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: Network

Exploit availability: No

Vulnerable software:
Apache Commons FileUpload
Server applications / Frameworks for developing and running applications

Vendor: Apache Foundation

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.

Mitigation
Install updates from vendor's website.

Vulnerable software versions

Apache Commons FileUpload: 1.0 - 1.2.1


External links
https://lists.opensuse.org/opensuse-security-announce/2013-11/msg00008.html
https://lists.opensuse.org/opensuse-updates/2013-10/msg00033.html
https://lists.opensuse.org/opensuse-updates/2013-10/msg00050.html
https://rhn.redhat.com/errata/RHSA-2013-1428.html
https://rhn.redhat.com/errata/RHSA-2013-1429.html
https://rhn.redhat.com/errata/RHSA-2013-1430.html
https://rhn.redhat.com/errata/RHSA-2013-1442.html
https://rhn.redhat.com/errata/RHSA-2013-1448.html
https://secunia.com/advisories/55716
https://ubuntu.com/usn/usn-2029-1
https://www.debian.org/security/2013/dsa-2827
https://www.oracle.com/technetwork/topics/security/cpujan2015-1972971.html
https://www.oracle.com/technetwork/topics/security/cpujan2016-2367955.html
https://www.oracle.com/technetwork/topics/security/cpujul2015-2367936.html
https://www.securityfocus.com/bid/63174
https://access.redhat.com/errata/RHSA-2016:0070
https://exchange.xforce.ibmcloud.com/vulnerabilities/88133
https://wiki.jenkins-ci.org/display/SECURITY/Jenkins+Security+Advisory+2014-10-01
https://www.tenable.com/security/research/tra-2016-23


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.


Latest bulletins with this vulnerability