CVE-2013-2186: Arbitrary file write in Apache Commons FileUpload DiskFileItem
- Vendors
- Red HatCanonical
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.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
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.
Mitigation
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.
Remediation
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.
Exploits
1 exploit validated by Mallory's analysis. Hidden: 1 rejected by Mallory's analysis as not a working exploit.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2013-2186 exploited in the wild?
- As of Oct 16, 2026, Mallory has no reports of CVE-2013-2186 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2013-2186?
- Yes. Mallory tracks 1 public exploit or proof of concept for CVE-2013-2186, the earliest disclosed Feb 8, 2016.
- Is there a patch for CVE-2013-2186?
- 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.
- What products are affected by CVE-2013-2186?
- Red Hat Jboss Enterprise Brms Platform, Red Hat Jboss Enterprise Portal Platform, Red Hat Jboss Enterprise Web Server, Red Hat Openshift, and Canonical Ubuntu.
- How severe is CVE-2013-2186?
- CVE-2013-2186 has a CVSS v2 score of 7.5 (High) and an EPSS score of 12.7% (96th percentile) as of Oct 16, 2026.
Recent activity
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.