Arbitrary file write in Apache Commons FileUpload DiskFileItem
CVE-2013-2186 is an arbitrary file write vulnerability in the DiskFileItem class of Apache Commons FileUpload. A remote attacker can exploit a NULL byte in the file name of a serialized instance to write to arbitrary files. Affected integrations include Red Hat JBoss BRMS 5.3.1, JBoss Portal 4.3 CP07, 5.2.2, and 6.0.0, and Red Hat JBoss Web Server 1.0.2.
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.
Successful exploitation permits unauthorized writes to arbitrary files accessible to the affected application, compromising file integrity. The available information does not establish code execution, information disclosure, or service disruption as direct outcomes.
If you can’t patch tonight, do this now.
If immediate patching is not possible, reduce exposure by preventing deserialization of untrusted data involving DiskFileItem objects, restricting remote inputs that can influence serialized object content, and running affected services with minimal filesystem privileges to limit writable locations. Additional defensive measures include isolating upload-processing components, enforcing strict validation of filenames and object data before use, and disabling or removing unnecessary functionality that accepts serialized objects from untrusted sources.
Patch, then assume compromise.
For HCL Commerce installations containing an affected bundled Commons FileUpload component, apply fix pack 8.0.4.25 or later for version 8, or the applicable security fixes for affected 9.0.1 releases after verifying release-specific applicability. These fixes upgrade bundled libraries, including Commons FileUpload. A fixed standalone Commons FileUpload version and specific fixes for the listed Red Hat products are not identified.
1 exploit validated by Mallory's analysis. Hidden: 1 rejected by Mallory's analysis as not a working exploit.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
1 sources tracked across advisories and community write-ups. News coverage will land here when it surfaces.
No news coverage yet. Advisories and community discussion only.