cbcvebase.
CVE-2013-2186
published 2013-10-28

CVE-2013-2186: The DiskFileItem class in Apache Commons FileUpload, as used in 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…

PriorityP352high7.5CVSS 2.0
AVNACLAuNCPIPAP
EPSS
12.77%
95.8th percentile
The DiskFileItem class in Apache Commons FileUpload, as used in 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 allows remote attackers to write to arbitrary files via a NULL byte in a file name in a serialized instance.

Affected

14 ranges
VendorProductVersion rangeFixed in
apachetomcat<= 7.0.39
debianlibcommons-fileupload-java< libcommons-fileupload-java 1.3-2.1 (bookworm)libcommons-fileupload-java 1.3-2.1 (bookworm)
jenkinscertain_pages_in_monitoring_plugin
jenkinsjenkins_core
jenkinsmonitoring_plugin
jenkinsuser_of_monitoring_plugin
redhatjboss_enterprise_application_platform
redhatjboss_enterprise_brms_platform
redhatjboss_enterprise_portal_platform
redhatjboss_enterprise_portal_platform
redhatjboss_enterprise_portal_platform
redhatjboss_enterprise_web_server
redhatopenshift<= 3.1
ubuntuubuntu

Detection & IOCsextracted from sources · hover to see the quote

  • Detect deserialization of DiskFileItem class instances containing a NULL byte in the file name field — the core exploit primitive for this CVE
  • Monitor for arbitrary file writes (especially .jsp files) to web-accessible directories following deserialization activity on Tomcat/JBoss endpoints, as exploitation can result in a malicious JSP being uploaded and executed
  • Inspect serialized Java objects arriving over HTTP for the DiskFileItem class signature combined with NULL bytes (0x00) embedded within file name strings — this is the payload pattern for CVE-2013-2186
  • ·Affected components are Apache Commons FileUpload (commons-fileupload) as used in Red Hat JBoss BRMS 5.3.1, JBoss Portal 4.3 CP07 / 5.2.2 / 6.0.0, and Red Hat JBoss Web Server 1.0.2 — detection should be scoped to these deployments
  • ·Versions of Tomcat shipped with Red Hat Enterprise Linux 5, 6, and 7 and Red Hat JBoss Web Server 1 and 2 are NOT affected — avoid false-positive alerting on those platforms
  • ·Red Hat Satellite 5 is explicitly not affected because defaultReadObject is not used in its code path — exclude from detection scope
  • ·The vulnerability requires an attacker to be able to supply a serialized DiskFileItem instance to the server for deserialization — exploitation is only possible where untrusted serialized data reaches the readObject method

CVSS provenance

nvdv2.07.5HIGHAV:N/AC:L/Au:N/C:P/I:P/A:P
ghsa7.5HIGH
osv7.5HIGH
vendor_debian7.5HIGH
vendor_redhat7.5HIGH
Stop checking back — get the weekly exploitation signal.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.