Skip to content

Deserialization of Untrusted Data in Apache Tomcat

High severity GitHub Reviewed Published May 17, 2022 to the GitHub Advisory Database • Updated Feb 1, 2023

Package

maven org.apache.tomcat:tomcat (Maven)

Affected versions

< 7.0.39

Patched versions

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. Regardless the tomcat maintainers have altered the behavior of this method in version 7.0.39.

References

Published by the National Vulnerability Database Jan 19, 2014
Published to the GitHub Advisory Database May 17, 2022
Reviewed Nov 3, 2022
Last updated Feb 1, 2023

Severity

High

EPSS score

0.345%
(71st percentile)

Weaknesses

CVE ID

CVE-2013-2185

GHSA ID

GHSA-v6c7-8qx5-8gmp

Source code

Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.