CVE-2014-0050 Commons FileUpload Denial of service vulnerability

High 7.5 Published Updated

Remote attackers can cause denial of service via infinite loop in Apache Commons FileUpload using crafted Content-Type headers.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2014-0050?

CVE-2014-0050 is a high-severity denial of service vulnerability in Apache Tomcat, published on 28 Mar 2014. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

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.

Weakness: CWE-264, CWE-835

Which versions are affected by CVE-2014-0050?

6 open source packages ship an affected version, including org.apache.tomcat:tomcat and commons-fileupload:commons-fileupload. It affects 3 products.

PackageAffectedFixed in
org.apache.tomcat:tomcat MavenFrom 7.0.07.0.52
org.apache.tomcat:tomcat MavenFrom 7.0.07.0.52
org.apache.tomcat:tomcat MavenFrom 8.0.0-RC18.0.3
org.apache.tomcat:tomcat MavenFrom 8.0.0-RC18.0.3
commons-fileupload:commons-fileupload MavenAll versions1.3.1
commons-fileupload:commons-fileupload MavenAll versions1.3.1
Linux distribution packages (2)
jbossweb Red Hat:jboss_enterprise_application_platform:6::el5All versions0:7.3.0-2.Final_redhat_2.1.ep6.el5
jbossweb Red Hat:jboss_enterprise_application_platform:6::el6All versions0:7.3.0-2.Final_redhat_2.1.ep6.el6

Products include Apache Commons Fileupload, Apache Tomcat, Oracle Retail Applications.

How do I fix CVE-2014-0050?

Upgrade org.apache.tomcat:tomcat to a fixed version for your release line: 7.0.52 or 8.0.3.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2014-0050 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2014-0050 exists.

Public exploit code: 1 Metasploit module, 1 Exploit-DB entry and 1 proofs of concept on GitHub.

All Apache Tomcat vulnerabilities

Sources

Also known as DEBIAN-CVE-2014-0050, DSA-2856-1, GHSA-xx68-jfcg-xmmf, MGASA-2014-0109, MGASA-2014-0110, RHSA-2014:0253.

Is CVE-2014-0050 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free