CVE-2008-5515: Path Traversal

Published Jun 9, 2009
·
Updated

Apache Tomcat 4.1.0 through 4.1.39, 5.5.0 through 5.5.27, 6.0.0 through 6.0.18, and possibly earlier versions normalizes the target pathname before filtering the query string when using the RequestDispatcher method, which allows remote attackers to bypass intended access restrictions and conduct directory traversal attacks via .. (dot dot) sequences and the WEB-INF directory in a Request.

Other sources

http://marc.info/?l=tomcat-dev&m=124449799021570&w=2

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1

CVE-2008-5515: Apache Tomcat information disclosure vulnerability

Severity: Important

Vendor: The Apache Software Foundation

Versions Affected: Tomcat 4.1.0 to 4.1.39 Tomcat 5.5.0 to 5.5.27 Tomcat 6.0.0 to 6.0.18 The unsupported Tomcat 3.x, 4.0.x and 5.0.x versions may be also affected

Description: When using a RequestDispatcher obtained from the Request, the target path was normalised before the query string was removed. A request that included a specially crafted request parameter could be used to access content that would otherwise be protected by a security constraint or by locating it in under the WEB-INF directory.

Mitigation: 6.0.x users should upgrade to 6.0.20 or apply this patch: http://svn.apache.org/viewvc?view=rev&revision=734734 5.5.x users should upgrade to 5.5.28 when released or apply this patch: http://svn.apache.org/viewvc?view=rev&revision=782757 4.1.x users should upgrade to 4.1.40 when released or apply this patch: http://svn.apache.org/viewvc?view=rev&revision=782763

Example: For a page that contains: <% request.getRequestDispatcher( "bar.jsp?somepar=someval&par=" + request.getParameter( "blah" ) ).forward( request, response ); %>

an attacker can use: http://host/page.jsp?blah=/../WEB-INF/web.xml

Credit: This issue was discovered by Iida Minehiko, Fujitsu Limited

References: http://tomcat.apache.org/security.html -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkotiBQACgkQb7IeiTPGAkMi6QCgnlzEt/7byUJo2YXGHMLj2ckH rF8AoK8dmpZcxd5pV9VvEaPqm4xhXJPO =bDV5 -----END PGP SIGNATURE-----

— Red Hat

Affected Software

83 affected componentsFixes available
maven/org.apache.tomcat:tomcat>=6.0.0<6.0.20
6.0.20
maven/org.apache.tomcat:tomcat>=5.5.0<5.5.28
5.5.28
maven/org.apache.tomcat:tomcat>=4.1.0<4.1.40
4.1.40
Apache Tomcat=5.5.27
Apache Tomcat=4.1.2
Apache Tomcat=4.1.35
Apache Tomcat=4.1.36
Apache Tomcat=5.5.18
Apache Tomcat=4.1.21
Apache Tomcat=6.0.6
Apache Tomcat=5.5.12
Apache Tomcat=5.5.14
Apache Tomcat=4.1.24
Apache Tomcat=5.5.10
Apache Tomcat=5.5.4
Apache Tomcat=5.5.7
Apache Tomcat=5.5.1
Apache Tomcat=6.0.7
Apache Tomcat=5.5.11
Apache Tomcat=4.1.25
Apache Tomcat=6.0.4
Apache Tomcat=5.5.6
Apache Tomcat=5.5.26
Apache Tomcat=4.1.39
Apache Tomcat=5.5.20
Apache Tomcat=5.5.15
Apache Tomcat=5.5.5
Apache Tomcat=4.1.27
Apache Tomcat=6.0.15
Apache Tomcat=4.1.30
Apache Tomcat=4.1.38
Apache Tomcat=4.1.11
Apache Tomcat=5.5.21
Apache Tomcat=4.1.18
Apache Tomcat=5.5.22
Apache Tomcat=4.1.14
Apache Tomcat=6.0.10
Apache Tomcat=6.0.3
Apache Tomcat=4.1.19
Apache Tomcat=6.0.9
Apache Tomcat=4.1.31
Apache Tomcat=5.5.3
Apache Tomcat=4.1.16
Apache Tomcat=4.1.29
Apache Tomcat=6.0.17
Apache Tomcat=4.1.22
Apache Tomcat=6.0
Apache Tomcat=4.1.26
Apache Tomcat=4.1.13
Apache Tomcat=5.5.9
Apache Tomcat=5.5.25
Apache Tomcat=6.0.0
Apache Tomcat=4.1.17
Apache Tomcat=6.0.14
Apache Tomcat=5.5.2
Apache Tomcat=4.1.33
Apache Tomcat=5.5.0
Apache Tomcat=4.1.1
Apache Tomcat=5.5.13
Apache Tomcat=6.0.1
Apache Tomcat=6.0.12
Apache Tomcat=5.5.24
Apache Tomcat=4.1.12
Apache Tomcat=4.1.28
Apache Tomcat=6.0.18
Apache Tomcat=4.1.15
Apache Tomcat=4.1.10
Apache Tomcat=5.5.8
Apache Tomcat=5.5.16
Apache Tomcat=4.1.0
Apache Tomcat=6.0.5
Apache Tomcat=4.1.20
Apache Tomcat=5.5.17
Apache Tomcat=4.1.3
Apache Tomcat=5.5.19
Apache Tomcat=4.1.23
Apache Tomcat=4.1.34
Apache Tomcat=4.1.32
Apache Tomcat=4.1.37
Apache Tomcat=6.0.2
Apache Tomcat=6.0.13
Apache Tomcat=5.5.23
Apache Tomcat=6.0.16

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade maven/org.apache.tomcat:tomcat to a version that resolves this vulnerability.

    Fixed in 6.0.20
  2. Upgrade

    Upgrade maven/org.apache.tomcat:tomcat to a version that resolves this vulnerability.

    Fixed in 5.5.28
  3. Upgrade

    Upgrade maven/org.apache.tomcat:tomcat to a version that resolves this vulnerability.

    Fixed in 4.1.40
  4. Upgrade

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

    Fixed in 4.1.40
  5. Upgrade

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

    Fixed in 5.5.28
  6. Upgrade

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

    Fixed in 6.0.20

Event History

Jun 9, 2009
Data Sourced
via Red Hat·08:19 AM
DescriptionSeverityAffected Software
Jun 16, 2009
CVE Published
via MITRE·08:26 PM
Data Sourced
via MITRE·08:26 PM
Description
Data Sourced
09:00 PM
DescriptionWeaknessAffected Software
Data Sourced
via NVD·09:00 PM
RemedyDescriptionSeverityWeaknessAffected Software
May 14, 2022
Advisory Published
via GitHub·01:17 AM
Data Sourced
via GitHub·01:17 AM
DescriptionSeverityWeaknessAffected Software
Feb 13, 2023
Data Sourced
02:19 AM
RemedySeverity
Feb 21, 2024
Advisory Published
via GitHub·07:56 PM
Event
via GitHub·07:56 PM
Jun 16, 2026
Updated
via NVD·11:00 PM
RemedyAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2008-5515?

The severity of CVE-2008-5515 is considered high due to the potential for unauthorized access to restricted resources.

2

How do I fix CVE-2008-5515?

You can fix CVE-2008-5515 by upgrading to Apache Tomcat version 5.5.28, 6.0.20, or 4.1.40, which contain the necessary patches.

3

What versions of Apache Tomcat are affected by CVE-2008-5515?

Apache Tomcat versions 4.1.0 through 4.1.39, 5.5.0 through 5.5.27, and 6.0.0 through 6.0.18 are affected by CVE-2008-5515.

4

Can CVE-2008-5515 lead to data breaches?

Yes, CVE-2008-5515 can allow remote attackers to bypass access restrictions, potentially leading to data breaches.

5

What type of vulnerability is CVE-2008-5515?

CVE-2008-5515 is a path traversal vulnerability that exploits improper pathname normalization in Apache Tomcat.

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