CVE-2009-2902: Path Traversal Vulnerability in Apache Tomcat

org.apache.tomcat:tomcat Updated 02 Oct 2025

Summary

02/05/2022
Yes i
Moderate
Not published

CVE-2009-2902: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in Apache Tomcat. Affects org.apache.tomcat:tomcat across 2 version ranges.

>= 5.5.0, < 5.5.29 >= 6.0.0, < 6.0.24

Fixed in 5.5.29 or 6.0.24, depending on the release line you run. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

Apache Tomcat is an open-source web server and servlet container that is used to deploy Java-based web applications. It provides a Java HTTP web server environment for running Java code. The vulnerability in Apache Tomcat allows remote attackers to delete files in the work directory by exploiting a directory traversal vulnerability. This vulnerability affects Apache Tomcat versions 5.5.0 through 5.5.28 and 6.0.0 through 6.0.20.

Vulnerability Detail

The vulnerability arises from improper limitation of a pathname to a restricted directory, also known as a 'Path Traversal' vulnerability. Attackers can exploit this vulnerability by using directory traversal sequences in a WAR (Web Application Archive) filename. By manipulating the filename, an attacker can traverse directories and delete files within the work directory. This can lead to the deletion of critical files and disruption of the web application's functionality.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • >= 5.5.0, < 5.5.29 5.5.29
  • >= 6.0.0, < 6.0.24 6.0.24

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Workaround

There is no specific workaround mentioned for this vulnerability.

Conclusion

The directory traversal vulnerability in Apache Tomcat can be exploited by remote attackers to delete files in the work directory. To mitigate this vulnerability, it is crucial to upgrade to the fixed versions of Apache Tomcat. For further support on vulnerability remediation, you can contact DevNack.com.

See every vulnerability recorded for org.apache.tomcat:tomcat →

Share this vulnerability

FAQ

A directory traversal vulnerability, also known as a path traversal vulnerability, allows an attacker to access files and directories outside of the intended directory structure. By manipulating input parameters or filenames, an attacker can traverse directories and access sensitive files.

The vulnerability allows remote attackers to delete files in the work directory of Apache Tomcat. This can lead to the disruption of web application functionality and potential data loss.

The vulnerability affects Apache Tomcat versions 5.5.0 through 5.5.28 and 6.0.0 through 6.0.20.

You can use Vulert's playground (https://vulert.com/scanner) to check if your application is affected by this vulnerability. Vulert monitors and alerts in real-time for open-source vulnerabilities, using just the pom.xml file.

Yes, upgrading to the fixed versions of Apache Tomcat (5.5.29 or later for versions 5.5.0 through 5.5.28, and 6.0.24 or later for versions 6.0.0 through 6.0.20) will patch the vulnerability and prevent exploitation.

Related vulnerabilities

Recent vulnerabilities recorded for org.apache.tomcat:tomcat.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • >= 5.5.0, < 5.5.29 5.5.29
  • >= 6.0.0, < 6.0.24 6.0.24

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback

Follow Vulert in Google

Get more Vulert vulnerability and dependency-security updates in Google Search and AI results.