CVE-2007-5461: Path Traversal

Published Oct 15, 2007
·
Updated

Absolute path traversal vulnerability in Apache Tomcat 4.0.0 through 4.0.6, 4.1.0, 5.0.0, 5.5.0 through 5.5.25, and 6.0.0 through 6.0.14, under certain configurations, allows remote authenticated users to read arbitrary files via a WebDAV write request that specifies an entity with a SYSTEM tag.

Other sources

Description:

Absolute path traversal vulnerability in Apache Tomcat, under certain configurations, allows remote authenticated users to read arbitrary files via a WebDAV write request that specifies an entity with a SYSTEM tag.

Mail from Mark Thomas (Apache.org):

A vulnerability in the Apache Tomcat webdav servlet was publicly disclosed on full disclosure yesterday, 14-Oct-2007.[1]

The Tomcat security team has evaluated this vulnerability and determined that default installations of Tomcat 6.0.x, 5.5.x and 4.1.x and not affected.

In order to be affected systems must have: - one or more contexts configured for webdav using Tomcat's built-in webdav implementation - enabled write capability via webdav

Note: - Tomcat 6.0.x has no webdav enabled contexts by default - Tomcat 5.5.x and 4.1.x have a read-only webdav enabled context (/webdav) by default

Systems with write-enabled webdav contexts are exposed to this vulnerability which, for such systems, is critical.

Mitigations available are: - Disable write access until a fixed version is available - Limit write access to trusted users - Apply the following patch which will be included in the next releases of 6.0.x, 5.5.x and 4.1.x

Index: src/share/org/apache/catalina/servlets/WebdavServlet.java =================================================================== --- src/share/org/apache/catalina/servlets/WebdavServlet.java (revision 584648) +++ src/share/org/apache/catalina/servlets/WebdavServlet.java (working copy) @@ -252,6 +252,7 @@ try { documentBuilderFactory = DocumentBuilderFactory.newInstance(); documentBuilderFactory.setNamespaceAware(true); + documentBuilderFactory.setExpandEntityReferences(false); documentBuilder = documentBuilderFactory.newDocumentBuilder(); } catch(ParserConfigurationException e) { throw new ServletException

[1] http://archives.neohapsis.com/archives/fulldisclosure/2007-10/0371.html

— Red Hat

Affected Software

50 affected componentsFixes available
maven/org.apache.tomcat:tomcat>=6.0.0<=6.0.14
maven/org.apache.tomcat:tomcat>=5.5.0<=5.5.25
maven/org.apache.tomcat:tomcat=5.0.0
maven/org.apache.tomcat:tomcat=4.1.0
maven/org.apache.tomcat:tomcat>=4.0.0<=4.0.6
Apache Tomcat=4.0.0
Apache Tomcat=4.0.1
Apache Tomcat=4.0.2
Apache Tomcat=4.0.3
Apache Tomcat=4.0.4
Apache Tomcat=4.0.5
Apache Tomcat=4.0.6
Apache Tomcat=4.1.0
Apache Tomcat=4.1.1
Apache Tomcat=4.1.2
Apache Tomcat=4.1.3
Apache Tomcat=4.1.4
Apache Tomcat=4.1.5
Apache Tomcat=4.1.6
Apache Tomcat=4.1.7
Apache Tomcat=4.1.8
Apache Tomcat=4.1.9
Apache Tomcat=4.1.10
Apache Tomcat=4.1.11
Apache Tomcat=4.1.12
Apache Tomcat=4.1.13
Apache Tomcat=4.1.14
Apache Tomcat=4.1.15
Apache Tomcat=4.1.16
Apache Tomcat=4.1.17
Apache Tomcat=4.1.18
Apache Tomcat=4.1.19
Apache Tomcat=4.1.20
Apache Tomcat=4.1.21
Apache Tomcat=4.1.22
Apache Tomcat=4.1.23
Apache Tomcat=4.1.24
Apache Tomcat=4.1.25
Apache Tomcat=4.1.26
Apache Tomcat=4.1.27
Apache Tomcat=4.1.28
Apache Tomcat=4.1.29
Apache Tomcat=4.1.30
Apache Tomcat=4.1.31
Apache Tomcat=4.1.32
Apache Tomcat=4.1.33
Apache Tomcat=4.1.34
Apache Tomcat=4.1.35
Apache Tomcat=4.1.36
redhat/5.5.25<1
1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/5.5.25 to a version that resolves this vulnerability.

    Fixed in 1
  2. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Patch revision 584648
  3. Configuration

    Disable write access until a fixed version is available

    Tomcat WebDAV contexts write access = disabled
  4. Compensating control

    Limit WebDAV write access to trusted users

Event History

Oct 15, 2007
CVE Published
via MITRE·06:00 PM
Data Sourced
via MITRE·06:00 PM
Description
Data Sourced
06:17 PM
DescriptionWeaknessAffected Software
CVE Published
via MITRE·10:00 PM
Oct 16, 2007
Data Sourced
via Red Hat·09:46 AM
DescriptionSeverityAffected Software
Mar 25, 2019
Data Sourced
11:29 AM
Severity
May 1, 2022
Advisory Published
06:33 PM
Nov 7, 2023
Data Sourced
via NVD·02:01 AM
DescriptionSeverityWeaknessAffected Software
Updated
via NVD·02:01 AM
Affected Software
Jan 8, 2024
Advisory Published
10:09 PM
Data Sourced
via GitHub·10:09 PM
DescriptionWeaknessAffected Software
Jun 16, 2026
Updated
via NVD·10:46 PM
Affected Software

Frequently Asked Questions

1

What is the severity of CVE-2007-5461?

CVE-2007-5461 has been rated as a medium severity vulnerability.

2

How do I fix CVE-2007-5461?

To fix CVE-2007-5461, upgrade Apache Tomcat to version 6.0.15 or later.

3

Which versions of Apache Tomcat are affected by CVE-2007-5461?

CVE-2007-5461 affects Apache Tomcat versions 4.0.0 through 4.0.6, 4.1.0, 5.0.0, 5.5.0 through 5.5.25, and 6.0.0 through 6.0.14.

4

What types of users can exploit CVE-2007-5461?

CVE-2007-5461 can be exploited by remote authenticated users.

5

What is an absolute path traversal vulnerability in the context of CVE-2007-5461?

An absolute path traversal vulnerability allows an attacker to read arbitrary files from the server by using manipulated input.

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