Skip to main content
Mallory
HighPublic exploitVulnerability

CVE-2013-2186: Arbitrary file write in Apache Commons FileUpload DiskFileItem

Published Oct 28, 2013 · Updated 1 month ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS7.5High · v2
EPSS12.7%96th percentile
CISA KEVNoNot listed
In the wildNonePublic exploit, no exploitation reported
Vendors
Red HatCanonical
IdentifiersCVE-2013-2186CWE-158

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.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

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.

Exposure surface

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.

VendorProductType
CanonicalUbuntuoperating_system
Red HatJboss Enterprise Brms Platformapplication
Red HatJboss Enterprise Portal Platformapplication
Red HatJboss Enterprise Web Serverapplication
Red HatOpenshiftoperating_system
FAQ

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.
Activity feed

Recent activity

1 sources tracked across advisories and community write-ups. News coverage will land here when it surfaces.

View more in app →

No news coverage yet. Advisories and community discussion only.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activityCommunity discussion across Reddit, Mastodon, and other social sources.