Skip to content

Apache Tomcat Directory Traversal

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

Package

maven org.apache.tomcat:tomcat (Maven)

Affected versions

>= 5.0, < 5.5.22
>= 6.0, < 6.0.10

Patched versions

5.5.22
6.0.10

Description

Directory traversal vulnerability in Tomcat 5.x before 5.5.22 and 6.x before 6.0.10, when using certain proxy modules (mod_proxy, mod_rewrite, mod_jk), allows remote attackers to read arbitrary files via a .. (dot dot) sequence with combinations of (1) / (slash), (2) \ (backslash), and (3) URL-encoded backslash (%5C) characters in the URL, which are valid separators in Tomcat but not in Apache.

References

Published by the National Vulnerability Database Mar 16, 2007
Published to the GitHub Advisory Database May 1, 2022
Reviewed Sep 21, 2023
Last updated Jan 8, 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-2007-0450

GHSA ID

GHSA-4prh-gqw8-rgh5

Source code

Credits

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