CVE-2013-2185
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedThe readObject method in the DiskFileItem class in Apache Tomcat and JBoss Web, as used in Red Hat JBoss Enterprise Application Platform 6.1.0 and Red Hat JBoss Portal 6.0.0, allows remote attackers to write to arbitrary files via a NULL byte in a file name in a serialized instance, a similar issue to CVE-2013-2186. NOTE: this issue is reportedly disputed by the Apache Tomcat team, although Red Hat considers it a vulnerability. The dispute appears to regard whether it is the responsibility of applications to avoid providing untrusted data to be deserialized, or whether this class should inherently protect against this issue
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceA deserialization vulnerability in Apache Tomcat/JBoss Web's DiskFileItem class allows remote attackers to write arbitrary files via a NULL byte injection in the file name field of a serialized object. When readObject() deserializes the crafted object, the NULL byte truncates the filename path, enabling path traversal and arbitrary file write operations.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.
NVD · CPE data<= 7.0.39= 6.1.0= 6.0.0CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- Low
- Authentication
- None
- Confidentiality
- Partial
- Integrity
- Partial
- Availability
- Partial
AV:N/AC:L/Au:N/C:P/I:P/A:P
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Identify the installed Apache Tomcat versionCheck the version.jar or RELEASE-NOTES file in the Tomcat installation directory, or query the server's /manager/html/status page if enabledAffected if The installed Tomcat version is 7.0.39 or lower
-
Identify the installed JBoss EAP or Portal versionCheck the version file in the JBoss installation (typically in $JBOSS_HOME/bin/version.properties or $JBOSS_HOME/jboss-modules.jar), or inspect the system properties from the server startup logsAffected if The installed version is exactly JBoss EAP 6.1.0 or JBoss Portal Platform 6.0.0
-
Determine if the application uses DiskFileItem serializationSearch application code and libraries for usage of org.apache.commons.fileupload.disk.DiskFileItem, particularly look for readObject() calls or serialization of file upload objects from remote clientsAffected if The application deserializes DiskFileItem objects from untrusted network sources
-
Check for exposed file upload endpointsReview web.xml and application deployment descriptors for servlet mappings that handle multipart file uploads, particularly those that may accept serialized Java objectsAffected if File upload endpoints accept and process requests from untrusted clients without input validation
-
Inspect deserialization security controlsReview server configuration and custom code for java.deserialization filters, SecurityManager settings, or allowlist-based deserialization controls applied to incoming object streamsAffected if No deserialization filters or allowlists are configured to block untrusted object deserialization
You are affected if you run Apache Tomcat 7.0.39 or lower, JBoss EAP 6.1.0, or JBoss Portal 6.0.0 AND your application deserializes DiskFileItem objects from untrusted network sources.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
From vendor dataValidate and sanitize all input before deserialization; apply vendor patches for JBoss EAP 6.1.0 and JBoss Portal 6.0.0; if no patch available, implement whitelist-based deserialization controls or disable serialization of DiskFileItem objects from untrusted sources.
- Consultation3.0 h
- Implementation6.0 h
- Testing5.0 h
- Review / QA2.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $4,464.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2013-2185 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2013-2185 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data