Skip to content

Apache Tomcat Path Traversal Vulnerability

Moderate severity GitHub Reviewed Published May 1, 2022 to the GitHub Advisory Database • Updated Feb 9, 2024

Package

maven org.apache.tomcat:tomcat (Maven)

Affected versions

>= 4.1.0, <= 4.1.37
>= 5.5.0, <= 5.5.26
>= 6.0.0, <= 6.0.16

Patched versions

4.1.38
5.5.27
6.0.18

Description

Apache Tomcat 4.1.0 through 4.1.37, 5.5.0 through 5.5.26, and 6.0.0 through 6.0.16, when a RequestDispatcher is used, performs path normalization before removing the query string from the URI, which allows remote attackers to conduct directory traversal attacks and read arbitrary files via a .. (dot dot) in a request parameter.

References

Published by the National Vulnerability Database Aug 4, 2008
Published to the GitHub Advisory Database May 1, 2022
Reviewed Feb 9, 2024
Last updated Feb 9, 2024

Severity

Moderate

EPSS score

Exploit Prediction Scoring System (EPSS)

This score estimates the probability of this vulnerability being exploited within the next 30 days. Data provided by FIRST.
(99th percentile)

Weaknesses

Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory. Learn more on MITRE.

CVE ID

CVE-2008-2370

GHSA ID

GHSA-m8h8-6rvg-f4mg

Source code

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