Skip to content

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

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

Package

maven org.apache.tomcat:tomcat (Maven)

Affected versions

>= 5.5.0, <= 5.5.28
>= 6.0.0, <= 6.0.20

Patched versions

5.5.29
6.0.24

Description

Directory traversal vulnerability in Apache Tomcat 5.5.0 through 5.5.28 and 6.0.0 through 6.0.20 allows remote attackers to delete work-directory files via directory traversal sequences in a WAR filename, as demonstrated by the ...war filename.

References

Published by the National Vulnerability Database Jan 28, 2010
Published to the GitHub Advisory Database May 2, 2022
Reviewed Jun 17, 2022
Last updated Feb 21, 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.
(93rd 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-2009-2902

GHSA ID

GHSA-8wch-9gcg-v2pr

Source code

Credits

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