CVE-2007-0450: Apache Tomcat Directory Traversal

org.apache.tomcat:tomcat Updated 02 Oct 2025

Summary

01/05/2022
Yes i
Moderate
Not published

CVE-2007-0450: Apache Tomcat Directory Traversal. Affects org.apache.tomcat:tomcat across 2 version ranges.

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

Fixed in 5.5.22 or 6.0.10, 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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

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 Servlet and JavaServer Pages (JSP) environment for running web applications. The vulnerability in Apache Tomcat allows remote attackers to read arbitrary files through a directory traversal attack. This vulnerability affects versions 5.x before 5.5.22 and 6.x before 6.0.10 when certain proxy modules (mod_proxy, mod_rewrite, mod_jk) are used.

Vulnerability Detail

The vulnerability arises due to a directory traversal flaw in Tomcat. By exploiting this vulnerability, remote attackers can read arbitrary files on the server. The attack involves using a combination of .. (dot dot) sequences and certain characters like /, \, and URL-encoded backslash (%5C) in the URL. While these characters are valid separators in Tomcat, they are not recognized as such in Apache. This allows attackers to bypass file access restrictions and retrieve sensitive information from the server.

How To Fix

Latest published version: 11.0.27 as of 23 Oct 2026

Upgrading to it may include breaking changes; the versions below are the minimum fixed release for this vulnerability.

If you can't move to the latest

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

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

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

Workaround

If upgrading to a fixed version is not immediately feasible, a temporary workaround is to disable the affected proxy modules (mod_proxy, mod_rewrite, mod_jk) in the Apache configuration. By disabling these modules, the vulnerability can be mitigated until a proper upgrade can be performed. Here is an example of how to disable the mod_proxy module in the Apache configuration:

# Disable mod_proxy
LoadModule proxy_module modules/mod_proxy.so
# Comment out the above line to disable the module

Please note that this workaround may impact the functionality of certain applications or services that rely on these modules.

Conclusion

The directory traversal vulnerability in Apache Tomcat can lead to unauthorized access to sensitive files on the server. It is crucial to apply the recommended fixes or workarounds to mitigate the risk of exploitation. For further assistance and support in vulnerability remediation, please contact DevNack.com.

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

Share this vulnerability

FAQ

The vulnerability allows remote attackers to read arbitrary files on the server, potentially exposing sensitive information such as configuration files, user data, or other confidential data.

Yes, this vulnerability can be exploited remotely by sending specially crafted requests to the affected server.

There have been reported instances of this vulnerability being exploited in the wild. It is important to apply the necessary patches or upgrades to protect against potential attacks.

The CVSS score for this vulnerability is not available in the provided information. It is recommended to refer to the National Vulnerability Database (NVD) or other reliable sources for the latest CVSS score.

Yes, a temporary workaround is to disable the affected proxy modules (mod_proxy, mod_rewrite, mod_jk) in the Apache configuration. However, it is strongly advised to upgrade to a fixed version as soon as possible.

Related vulnerabilities

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

How To Fix

Latest published version: 11.0.27 as of 23 Oct 2026

Upgrading to it may include breaking changes; the versions below are the minimum fixed release for this vulnerability.

If you can't move to the latest

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

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

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