CVE-2014-0050: Commons fileupload Denial of Service Vulnerability
HIGHCVE-2014-0050 is a HIGH denial of service vulnerability (CWE-20: Improper Input Validation) affecting Commons fileupload libraries in the Maven ecosystem. The issue involves commons fileupload denial of service vulnerability. Remediation is available by upgrading affected packages to version 1.3.1, 8.0.3, 7.0.52.
CVE-2014-0050 at a Glance
How to Fix CVE-2014-0050
To remediate this vulnerability, upgrade all affected Commons fileupload dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
<dependency>
<groupId>commons-fileupload</groupId>
<artifactId>commons-fileupload</artifactId>
<version>1.3.1</version>
</dependency>
<dependency>
<groupId>org.apache.tomcat</groupId>
<artifactId>tomcat</artifactId>
<version>8.0.3</version>
</dependency>
<dependency>
<groupId>org.apache.tomcat</groupId>
<artifactId>tomcat</artifactId>
<version>7.0.52</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree -Dincludes=commons-fileupload
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2014-0050, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=commons-fileupload
Analyze the terminal output to locate any version of Commons fileupload in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.3.1), your application is affected.
Note: The mvn dependency:tree -Dincludes=commons-fileupload command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. In Commons fileupload, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2014-0050 Affected Commons fileupload Versions
3 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
commons-fileupload:commons-fileupload
|
Maven |
< 1.3.1
|
1.3.1
|
|
org.apache.tomcat:tomcat
|
Maven |
≥ 8.0.0-RC1
< 8.0.3
|
8.0.3
|
|
org.apache.tomcat:tomcat
|
Maven |
≥ 7.0.0
< 7.0.52
|
7.0.52
|
References
Frequently Asked Questions
What is CVE-2014-0050?
Which Commons fileupload versions are affected?
What version fixes CVE-2014-0050?
Is commons-fileupload affected?
Is tomcat affected?
What CWE is associated with CVE-2014-0050?
How can I check Maven dependencies for CVE-2014-0050?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-xx68-jfcg-xmmf",
"modified" : "2024-03-05T19:13:45Z",
"published" : "2018-12-21T17:51:42Z",
"aliases" : [ "CVE-2014-0050" ],
"summary" : "Commons FileUpload Denial of service vulnerability",
"details" : "MultipartStream.java in Apache Commons FileUpload before 1.3.1, as used in Apache Tomcat, JBoss Web, and other products, allows remote attackers to cause a denial of service (infinite loop and CPU consumption) via a crafted Content-Type header that bypasses a loop's intended exit conditions.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "commons-fileupload:commons-fileupload"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.3.1"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.apache.tomcat:tomcat"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "8.0.0-RC1"
}, {
"fixed" : "8.0.3"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 8.0.1"
}
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.apache.tomcat:tomcat"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "7.0.0"
}, {
"fixed" : "7.0.52"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 7.0.50"
}
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2014-0050"
}, {
"type" : "WEB",
"url" : "https://github.com/apache/commons-fileupload/commit/c61ff05b3241cb14d989b67209e57aa71540417a"
}, {
"type" : "WEB",
"url" : "https://github.com/apache/tomcat/commit/29384723d8d9645b87e05be9fa369a4deeb78b9c"
}, {
"type" : "WEB",
"url" : "https://bugzilla.redhat.com/show_bug.cgi?id=1062337"
}, {
"type" : "ADVISORY",
"url" : "https://github.com/advisories/GHSA-xx68-jfcg-xmmf"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/apache/commons-fileupload"
}, {
"type" : "WEB",
"url" : "https://h20566.www2.hpe.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c05324755"
}, {
"type" : "WEB",
"url" : "https://h20566.www2.hpe.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c05376917"
}, {
"type" : "WEB",
"url" : "https://h20566.www2.hpe.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c05390722"
}, {
"type" : "WEB",
"url" : "https://svn.apache.org/viewvc?view=revision&revision=1565143"
}, {
"type" : "WEB",
"url" : "https://svn.apache.org/viewvc?view=revision&revision=1565163"
}, {
"type" : "WEB",
"url" : "https://svn.apache.org/viewvc?view=revision&revision=1565169"
}, {
"type" : "WEB",
"url" : "https://tomcat.apache.org/security-7.html"
}, {
"type" : "WEB",
"url" : "https://tomcat.apache.org/security-8.html"
}, {
"type" : "WEB",
"url" : "http://advisories.mageia.org/MGASA-2014-0110.html"
}, {
"type" : "WEB",
"url" : "http://blog.spiderlabs.com/2014/02/cve-2014-0050-exploit-with-boundaries-loops-without-boundaries.html"
}, {
"type" : "WEB",
"url" : "http://jvn.jp/en/jp/JVN14876762/index.html"
}, {
"type" : "WEB",
"url" : "http://jvndb.jvn.jp/jvndb/JVNDB-2014-000017"
}, {
"type" : "WEB",
"url" : "http://mail-archives.apache.org/mod_mbox/commons-dev/201402.mbox/%3C52F373FC.9030907@apache.org%3E"
}, {
"type" : "WEB",
"url" : "http://marc.info/?l=bugtraq&m=143136844732487&w=2"
}, {
"type" : "WEB",
"url" : "http://packetstormsecurity.com/files/127215/VMware-Security-Advisory-2014-0007.html"
}, {
"type" : "WEB",
"url" : "http://rhn.redhat.com/errata/RHSA-2014-0252.html"
}, {
"type" : "WEB",
"url" : "http://rhn.redhat.com/errata/RHSA-2014-0253.html"
}, {
"type" : "WEB",
"url" : "http://rhn.redhat.com/errata/RHSA-2014-0400.html"
}, {
"type" : "WEB",
"url" : "http://seclists.org/fulldisclosure/2014/Dec/23"
}, {
"type" : "WEB",
"url" : "http://secunia.com/advisories/57915"
}, {
"type" : "WEB",
"url" : "http://secunia.com/advisories/58075"
}, {
"type" : "WEB",
"url" : "http://secunia.com/advisories/58976"
}, {
"type" : "WEB",
"url" : "http://secunia.com/advisories/59039"
}, {
"type" : "WEB",
"url" : "http://secunia.com/advisories/59041"
}, {
"type" : "WEB",
"url" : "http://secunia.com/advisories/59183"
}, {
"type" : "WEB",
"url" : "http://secunia.com/advisories/59184"
}, {
"type" : "WEB",
"url" : "http://secunia.com/advisories/59185"
}, {
"type" : "WEB",
"url" : "http://secunia.com/advisories/59187"
}, {
"type" : "WEB",
"url" : "http://secunia.com/advisories/59232"
}, {
"type" : "WEB",
"url" : "http://secunia.com/advisories/59399"
}, {
"type" : "WEB",
"url" : "http://secunia.com/advisories/59492"
}, {
"type" : "WEB",
"url" : "http://secunia.com/advisories/59500"
}, {
"type" : "WEB",
"url" : "http://secunia.com/advisories/59725"
}, {
"type" : "WEB",
"url" : "http://secunia.com/advisories/60475"
}, {
"type" : "WEB",
"url" : "http://secunia.com/advisories/60753"
}, {
"type" : "WEB",
"url" : "http://svn.apache.org/r1565143"
}, {
"type" : "WEB",
"url" : "http://tomcat.apache.org/security-7.html"
}, {
"type" : "WEB",
"url" : "http://tomcat.apache.org/security-8.html"
}, {
"type" : "WEB",
"url" : "http://www-01.ibm.com/support/docview.wss?uid=swg21669554"
}, {
"type" : "WEB",
"url" : "http://www-01.ibm.com/support/docview.wss?uid=swg21675432"
}, {
"type" : "WEB",
"url" : "http://www-01.ibm.com/support/docview.wss?uid=swg21676091"
}, {
"type" : "WEB",
"url" : "http://www-01.ibm.com/support/docview.wss?uid=swg21676092"
}, {
"type" : "WEB",
"url" : "http://www-01.ibm.com/support/docview.wss?uid=swg21676401"
}, {
"type" : "WEB",
"url" : "http://www-01.ibm.com/support/docview.wss?uid=swg21676403"
}, {
"type" : "WEB",
"url" : "http://www-01.ibm.com/support/docview.wss?uid=swg21676405"
}, {
"type" : "WEB",
"url" : "http://www-01.ibm.com/support/docview.wss?uid=swg21676410"
}, {
"type" : "WEB",
"url" : "http://www-01.ibm.com/support/docview.wss?uid=swg21676656"
}, {
"type" : "WEB",
"url" : "http://www-01.ibm.com/support/docview.wss?uid=swg21676853"
}, {
"type" : "WEB",
"url" : "http://www-01.ibm.com/support/docview.wss?uid=swg21677691"
}, {
"type" : "WEB",
"url" : "http://www-01.ibm.com/support/docview.wss?uid=swg21677724"
}, {
"type" : "WEB",
"url" : "http://www-01.ibm.com/support/docview.wss?uid=swg21681214"
}, {
"type" : "WEB",
"url" : "http://www.debian.org/security/2014/dsa-2856"
}, {
"type" : "WEB",
"url" : "http://www.hitachi.co.jp/Prod/comp/soft1/global/security/info/vuls/HS14-015/index.html"
}, {
"type" : "WEB",
"url" : "http://www.hitachi.co.jp/Prod/comp/soft1/global/security/info/vuls/HS14-016/index.html"
}, {
"type" : "WEB",
"url" : "http://www.hitachi.co.jp/Prod/comp/soft1/global/security/info/vuls/HS14-017/index.html"
}, {
"type" : "WEB",
"url" : "http://www.huawei.com/en/security/psirt/security-bulletins/security-advisories/hw-350733.htm"
}, {
"type" : "WEB",
"url" : "http://www.mandriva.com/security/advisories?name=MDVSA-2015:084"
}, {
"type" : "WEB",
"url" : "http://www.oracle.com/technetwork/security-advisory/cpuoct2016-2881722.html"
}, {
"type" : "WEB",
"url" : "http://www.oracle.com/technetwork/security-advisory/cpuoct2017-3236626.html"
}, {
"type" : "WEB",
"url" : "http://www.oracle.com/technetwork/topics/security/cpuapr2015-2365600.html"
}, {
"type" : "WEB",
"url" : "http://www.oracle.com/technetwork/topics/security/cpujan2015-1972971.html"
}, {
"type" : "WEB",
"url" : "http://www.oracle.com/technetwork/topics/security/cpujan2016-2367955.html"
}, {
"type" : "WEB",
"url" : "http://www.oracle.com/technetwork/topics/security/cpujul2014-1972956.html"
}, {
"type" : "WEB",
"url" : "http://www.oracle.com/technetwork/topics/security/cpuoct2014-1972960.html"
}, {
"type" : "WEB",
"url" : "http://www.oracle.com/technetwork/topics/security/cpuoct2015-2367953.html"
}, {
"type" : "WEB",
"url" : "http://www.securityfocus.com/archive/1/532549/100/0/threaded"
}, {
"type" : "WEB",
"url" : "http://www.securityfocus.com/archive/1/534161/100/0/threaded"
}, {
"type" : "WEB",
"url" : "http://www.securityfocus.com/bid/65400"
}, {
"type" : "WEB",
"url" : "http://www.ubuntu.com/usn/USN-2130-1"
}, {
"type" : "WEB",
"url" : "http://www.vmware.com/security/advisories/VMSA-2014-0007.html"
}, {
"type" : "WEB",
"url" : "http://www.vmware.com/security/advisories/VMSA-2014-0008.html"
}, {
"type" : "WEB",
"url" : "http://www.vmware.com/security/advisories/VMSA-2014-0012.html"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-20" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2020-06-16T22:04:56Z",
"nvd_published_at" : "2014-04-01T06:27:00Z"
}
}