CVE-2007-0450: Path Traversal

Published Mar 14, 2007
·
Updated

Directory traversal vulnerability in Apache HTTP Server and Tomcat 5.x before 5.5.22 and 6.x before 6.0.10, when using certain proxy modules (modproxy, modrewrite, modjk), 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.

Other sources

Directory traversal vulnerability in Tomcat 5.x before 5.5.22 and 6.x before 6.0.10, when using certain proxy modules (modproxy, modrewrite, modjk), 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.

From http://tomcat.apache.org/security-5.html

Fixed in Apache Tomcat 5.5.22, 5.0.HEAD

Directory traversal CVE-2007-0450

Tomcat permits '\', '%2F' and '%5C' as path delimiters. When Tomcat is used behind a proxy (including, but not limited to, Apache HTTP server with modproxy and modjk) configured to only proxy some contexts, a HTTP request containing strings like "/\../" may allow attackers to work around the context restriction of the proxy, and access the non-proxied contexts.

The following Java system properties have been added to Tomcat to provide additional control of the handling of path delimiters in URLs (both options default to false):

org.apache.tomcat.util.buf.UDecoder.ALLOWENCODEDSLASH: true|false org.apache.catalina.connector.CoyoteAdapter.ALLOWBACKSLASH: true|false

Due to the impossibility to guarantee that all URLs are handled by Tomcat as they are in proxy servers, Tomcat should always be secured as if no proxy restricting context access was used.

Affects: 5.5.0-5.5.21, 5.0.0-5.0.30

Red Hat

Affected Software

26 affected componentsFixes available
maven/org.apache.tomcat:tomcat>=6.0<6.0.10
6.0.10
maven/org.apache.tomcat:tomcat>=5.0<5.5.22
5.5.22
redhat/pcsc-lite<0:1.3.3-3.el4
0:1.3.3-3.el4
redhat/rhpki-ca<0:7.3.0-20.el4
0:7.3.0-20.el4
redhat/rhpki-java-tools<0:7.3.0-10.el4
0:7.3.0-10.el4
redhat/rhpki-kra<0:7.3.0-14.el4
0:7.3.0-14.el4
redhat/rhpki-manage<0:7.3.0-19.el4
0:7.3.0-19.el4
redhat/rhpki-native-tools<0:7.3.0-6.el4
0:7.3.0-6.el4
redhat/rhpki-ocsp<0:7.3.0-13.el4
0:7.3.0-13.el4
redhat/rhpki-tks<0:7.3.0-13.el4
0:7.3.0-13.el4
redhat/jakarta-commons-modeler<0:1.1-8jpp.1.0.2.el5
0:1.1-8jpp.1.0.2.el5
redhat/tomcat5<0:5.5.23-0jpp.1.0.3.el5
0:5.5.23-0jpp.1.0.3.el5
redhat/java<1.4.2-ibm-0:1.4.2.10-1jpp.2.el4
1.4.2-ibm-0:1.4.2.10-1jpp.2.el4
redhat/rhn-apache<0:1.3.27-36.rhn.rhel4
0:1.3.27-36.rhn.rhel4
redhat/rhn-modjk<0:1.2.23-2rhn.rhel4
0:1.2.23-2rhn.rhel4
redhat/rhn-modperl<0:1.29-16.rhel4
0:1.29-16.rhel4
redhat/rhn-modssl<0:2.8.12-8.rhn.10.rhel4
0:2.8.12-8.rhn.10.rhel4
redhat/java<1.4.2-ibm-0:1.4.2.10-1jpp.2.el3
1.4.2-ibm-0:1.4.2.10-1jpp.2.el3
redhat/rhn-apache<0:1.3.27-36.rhn.rhel3
0:1.3.27-36.rhn.rhel3
redhat/rhn-modjk<0:1.2.23-2rhn.rhel3
0:1.2.23-2rhn.rhel3
redhat/rhn-modperl<0:1.29-16.rhel3
0:1.29-16.rhel3
redhat/rhn-modssl<0:2.8.12-8.rhn.10.rhel3
0:2.8.12-8.rhn.10.rhel3
redhat/jbossas<0:4.0.5-2.CP04.el4
0:4.0.5-2.CP04.el4
Apache HTTP Server
Apache Tomcat>=5.0.0<5.5.22
Apache Tomcat>=6.0.0<6.0.10

Event History

Mar 14, 2007
CVE Published
via Red Hat·12:00 AM
Mar 17, 2007
CVE Published
via MITRE·02:00 AM
Data Sourced
via MITRE·02:00 AM
Description
Apr 19, 2007
Data Sourced
via Red Hat·11:56 AM
DescriptionSeverityAffected Software
May 1, 2022
Advisory Published
05:44 PM

Frequently Asked Questions

1

What is the severity of CVE-2007-0450?

CVE-2007-0450 is classified as a medium severity vulnerability due to its potential for unauthorized file access.

2

How do I fix CVE-2007-0450?

To fix CVE-2007-0450, upgrade Apache Tomcat to version 5.5.23 or higher, or 6.0.10 or higher.

3

What software is affected by CVE-2007-0450?

CVE-2007-0450 affects Apache HTTP Server and Tomcat versions before 5.5.22 and 6.0.10.

4

What type of vulnerability is CVE-2007-0450?

CVE-2007-0450 is a directory traversal vulnerability that allows attackers to read arbitrary files.

5

Who can exploit CVE-2007-0450?

CVE-2007-0450 can be exploited by remote attackers leveraging specific proxy modules such as mod_proxy or mod_rewrite.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203