CVE-2010-3718: Path Traversal

Published Feb 7, 2011
·
Updated

Apache Tomcat 5.5.30 and 6.0.30 were released [1],[2] to fix, among other things, a bypass of security manager file permissions. The work directory that web applications are granted read/write access is determined by a ServletContext attribute that is supposed to be a read-only attribute to web applications. Due to a coding error, a web application could modify the attribute before Tomcat applied file permissions, which could allow a malicious web application to set the work directory to any area of the file system, granting that web application read/write permissions to the specified directory.

This vulnerability is only applicable in environments that host web applications from untrusted sources, such as in shared hosting environments.

For Tomcat 5.5.x, this was fixed in upstream revision 1027610 [4] and for Tomcat 6.x it was fixed in upstream revision 1022560 [5].

[1] http://tomcat.apache.org/security-5.html#FixedinApacheTomcat5.5.30 [2] http://tomcat.apache.org/security-6.html#FixedinApacheTomcat6.0.30 [3] http://archives.neohapsis.com/archives/fulldisclosure/2011-02/0074.html [4] http://svn.apache.org/viewvc?rev=1027610&view=rev [5] http://svn.apache.org/viewvc?rev=1022560&view=rev

Other sources

Apache Tomcat 7.0.0 through 7.0.3, 6.0.x, and 5.5.x, when running within a SecurityManager, does not make the ServletContext attribute read-only, which allows local web applications to read or write files outside of the intended working directory, as demonstrated using a directory traversal attack.

— GitHub

Affected Software

66 affected componentsFixes available
maven/org.apache.tomcat:tomcat>=5.5.0<5.5.30
5.5.30
maven/org.apache.tomcat:tomcat>=6.0.0<6.0.30
6.0.30
maven/org.apache.tomcat:tomcat>=7.0.0<7.0.4
7.0.4
Apache Tomcat=7.0.0
Apache Tomcat=7.0.1
Apache Tomcat=7.0.2
Apache Tomcat=7.0.3
Apache Tomcat=6.0
Apache Tomcat=6.0.0
Apache Tomcat=6.0.1
Apache Tomcat=6.0.2
Apache Tomcat=6.0.3
Apache Tomcat=6.0.4
Apache Tomcat=6.0.5
Apache Tomcat=6.0.6
Apache Tomcat=6.0.7
Apache Tomcat=6.0.8
Apache Tomcat=6.0.9
Apache Tomcat=6.0.10
Apache Tomcat=6.0.11
Apache Tomcat=6.0.12
Apache Tomcat=6.0.13
Apache Tomcat=6.0.14
Apache Tomcat=6.0.15
Apache Tomcat=6.0.16
Apache Tomcat=6.0.17
Apache Tomcat=6.0.18
Apache Tomcat=6.0.19
Apache Tomcat=6.0.20
Apache Tomcat=6.0.24
Apache Tomcat=6.0.26
Apache Tomcat=6.0.27
Apache Tomcat=6.0.28
Apache Tomcat=6.0.29
Apache Tomcat=5.5.0
Apache Tomcat=5.5.1
Apache Tomcat=5.5.2
Apache Tomcat=5.5.3
Apache Tomcat=5.5.4
Apache Tomcat=5.5.5
Apache Tomcat=5.5.6
Apache Tomcat=5.5.7
Apache Tomcat=5.5.8
Apache Tomcat=5.5.9
Apache Tomcat=5.5.10
Apache Tomcat=5.5.11
Apache Tomcat=5.5.12
Apache Tomcat=5.5.13
Apache Tomcat=5.5.14
Apache Tomcat=5.5.15
Apache Tomcat=5.5.16
Apache Tomcat=5.5.17
Apache Tomcat=5.5.18
Apache Tomcat=5.5.19
Apache Tomcat=5.5.20
Apache Tomcat=5.5.21
Apache Tomcat=5.5.22
Apache Tomcat=5.5.23
Apache Tomcat=5.5.24
Apache Tomcat=5.5.25
Apache Tomcat=5.5.26
Apache Tomcat=5.5.27
Apache Tomcat=5.5.28
Apache Tomcat=5.5.29
Apache Tomcat=5.5.30
Apache Tomcat=5.5.32

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 5.5.30
  2. Upgrade

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

    Fixed in 6.0.30
  3. Upgrade

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

    Fixed in 7.0.4
  4. Upgrade

    Upgrade Apache Tomcat to a version that resolves this vulnerability.

    Fixed in 5.5.30
  5. Upgrade

    Upgrade Apache Tomcat to a version that resolves this vulnerability.

    Fixed in 6.0.30

Event History

Feb 7, 2011
Data Sourced
via Red Hat·06:55 PM
DescriptionSeverityAffected Software
Feb 10, 2011
CVE Published
via MITRE·05:00 PM
Data Sourced
via MITRE·05:00 PM
Description
Data Sourced
06:00 PM
DescriptionWeaknessAffected Software
Data Sourced
via NVD·06:00 PM
DescriptionSeverityAffected Software
May 14, 2022
Advisory Published
via GitHub·01:17 AM
Data Sourced
via GitHub·01:17 AM
DescriptionWeaknessAffected Software
Feb 13, 2023
Data Sourced
04:25 AM
Severity
Feb 21, 2024
Advisory Published
via GitHub·08:24 PM
Jun 16, 2026
Updated
via NVD·11:23 PM
Affected Software

Frequently Asked Questions

1

What is the severity of CVE-2010-3718?

CVE-2010-3718 has a moderate severity level due to the risk of unauthorized file access and manipulation by local web applications.

2

How do I fix CVE-2010-3718?

To fix CVE-2010-3718, upgrade Apache Tomcat to version 5.5.30, 6.0.30, or 7.0.4 or later.

3

What versions of Apache Tomcat are affected by CVE-2010-3718?

CVE-2010-3718 affects Apache Tomcat versions 7.0.0 to 7.0.3, as well as all 6.0.x and 5.5.x versions.

4

What type of attack does CVE-2010-3718 facilitate?

CVE-2010-3718 facilitates local website applications to conduct directory traversal attacks.

5

Is it safe to use vulnerable versions of Apache Tomcat if patched?

Even if patched, it is advisable to use the latest versions of Apache Tomcat to avoid vulnerabilities like CVE-2010-3718.

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