Improper Limitation of a Pathname to a Restricted Directory in Apache Tomcat
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.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Java / Kotlin (Maven) | org.apache.tomcat:tomcat | >= 7.0.0, < 7.0.4, >= 6.0.0, < 6.0.30, >= 5.5.0, < 5.5.30 | 7.0.4, 6.0.30, 5.5.30 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2010-3718
- https://github.com/apache/tomcat/commit/a697f7b52c4e3aea0c6763b33d413b54a518e883
- https://github.com/apache/tomcat55/commit/53b9e4bf21aef92321404644bfbb22ae625c033b
- https://tomcat.apache.org/security-6.html#Fixed_in_Apache_Tomcat_6.0.30
- https://tomcat.apache.org/security-5.html#Fixed_in_Apache_Tomcat_5.0.30
- https://marc.info/?l=bugtraq&m=139344343412337&w=2
- https://marc.info/?l=bugtraq&m=136485229118404&w=2
- https://marc.info/?l=bugtraq&m=132215163318824&w=2
- https://marc.info/?l=bugtraq&m=130168502603566&w=2
- https://lists.opensuse.org/opensuse-security-announce/2011-04/msg00000.html
- https://lists.apple.com/archives/Security-announce/2011//Oct/msg00003.html
- https://lists.apache.org/thread.html/r584a714f141eff7b1c358d4679288177bd4ca4558e9999d15867d4b5@%3Cdev.tomcat.apache.org%3E
- https://lists.apache.org/thread.html/r584a714f141eff7b1c358d4679288177bd4ca4558e9999d15867d4b5%40%3Cdev.tomcat.apache.org%3E
- https://lists.apache.org/thread.html/r3aacc40356defc3f248aa504b1e48e819dd0471a0a83349080c6bcbf@%3Cdev.tomcat.apache.org%3E
- https://lists.apache.org/thread.html/r3aacc40356defc3f248aa504b1e48e819dd0471a0a83349080c6bcbf%40%3Cdev.tomcat.apache.org%3E
- https://lists.apache.org/thread.html/8dcaf7c3894d66cb717646ea1504ea6e300021c85bb4e677dc16b1aa%40%3Cdev.tomcat.apache.org%3E
- https://lists.apache.org/thread.html/06cfb634bc7bf37af7d8f760f118018746ad8efbd519c4b789ac9c2e@%3Cdev.tomcat.apache.org%3E
- https://lists.apache.org/thread.html/06cfb634bc7bf37af7d8f760f118018746ad8efbd519c4b789ac9c2e%40%3Cdev.tomcat.apache.org%3E
- https://github.com/apache/tomcat
- Weakness (CWE)
CWE-22- Platform
- Java / Kotlin (Maven)
- Package
org.apache.tomcat:tomcat- Disclosed
- 14.05.2022
- Updated
- 11.10.2026 12:20
Sources and licenses
OSV / GitHub Advisory Database - GHSA-fj6c-prgj-gr3r - CC BY 4.0
Vulnerability history: org.apache.tomcat:tomcat
All published vulnerabilities of this package (Java / Kotlin (Maven)), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 162
- First → latest
- 12.2018 08.2026
- Without a fix
- 20
- Exploited in attacks
- 1
Severity breakdown
- Critical 8
- High 40
- Medium 102
- Low 12
Disclosures per year
- 2018: 1
- 2019: 1
- 2020: 2
- 2021: 5
- 2022: 125
- 2023: 3
- 2024: 2
- 2025: 4
- 2026: 19
-
Improper Limitation of a Pathname to a Restricted Directory in Apache Tomcat this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.