Infinite-loop denial of service in Apache Commons FileUpload
CVE-2014-0050 is an infinite-loop vulnerability in Apache Commons FileUpload versions 1.0 through 1.3. MultipartStream mishandles small-sized buffers, allowing a crafted multipart request Content-Type header to bypass the processing loop's intended exit conditions. Exploitation causes excessive CPU consumption and denial of service. Affected integrations include Apache Tomcat 7.0.0 through 7.0.50, Tomcat 8.0.0-RC1 through 8.0.1, JBoss Web, and other products bundling the vulnerable library. Upstream Tomcat 6 and earlier do not expose the vulnerable core multipart processing, although Tomcat 6 uses Commons FileUpload in its administrator-authenticated Manager application and vendor distributions may contain affected integrations.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
A malformed multipart request can trap request processing in an infinite loop, consuming CPU and disrupting availability of the affected application server. Remote unauthenticated exploitation is possible where vulnerable multipart processing is publicly accessible.
If you can’t patch tonight, do this now.
Limit Content-Type header size to fewer than 4,091 bytes. Disable file-upload functionality where it is unnecessary, particularly in affected Web Experience Factory deployments, where uploads are disabled by default. For Web Experience Factory's bundled Liberty server, an alternative is to remove that server and use another application server supported for model development.
Patch, then assume compromise.
Upgrade Apache Commons FileUpload to 1.3.1 or later, or apply the corresponding vendor patch. Apache identified Tomcat 7.0.51 and 8.0.2 as fixed releases; upgrading to later maintained releases also incorporates the fix. For affected Red Hat products, install the applicable backported security updates and restart the server process. For Web Experience Factory using its bundled Liberty application server, apply interim fix 8551-wlp-archive-IFPI12926; unrelated Liberty fixes may break model development. For affected Web Experience Factory and WebSphere Dashboard Framework bundled libraries, apply the applicable LO80075, LO80076, LO80077, or LO80078 fix, and obtain the Portal-specific fix for portlet deployments. The patched Commons FileUpload requires Java 1.5 or later, and no fix was released for WEF/WDF 6.1.5 running on Java 1.4.2.
1 exploit validated by Mallory's analysis. Hidden: 3 rejected by Mallory's analysis as not a working exploit; 1 not yet analyzed, such as Exploit-DB entries.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
35 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.