Apache Struts directory traversal vulnerability
Multiple directory traversal vulnerabilities in Apache Struts 2.0.x before 2.0.12 and 2.1.x before 2.1.3 allow remote attackers to read arbitrary files via a ..%252f (encoded dot dot slash) in a URI with a /struts/ path, related to (1) FilterDispatcher in 2.0.x and (2) DefaultStaticContentLoader in 2.1.x.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Java / Kotlin (Maven) | org.apache.struts:struts2-core | >= 2.0.0, < 2.0.12, >= 2.1.0, < 2.1.3 | 2.0.12, 2.1.3 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2008-6505
- https://github.com/apache/struts/commit/04fcefa44bae1263c7cad6986a9dafed67f0164f
- https://github.com/apache/struts/commit/1f1c996eb1f0f3e2193fba0075f62ccd04e3c0c3
- https://github.com/apache/struts
- https://web.archive.org/web/20081208214512/http://secunia.com/advisories/32497
- https://web.archive.org/web/20111025094319/http://www.securityfocus.com/bid/32104
- http://issues.apache.org/struts/browse/WW-2779
- http://struts.apache.org/2.x/docs/s2-004.html
- Weakness (CWE)
CWE-22- Platform
- Java / Kotlin (Maven)
- Package
org.apache.struts:struts2-core- Disclosed
- 17.05.2022
- Updated
- 11.10.2026 12:21
Sources and licenses
OSV / GitHub Advisory Database - GHSA-wv7g-xhvw-8hcp - CC BY 4.0
Vulnerability history: org.apache.struts:struts2-core
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
- 60
- First → latest
- 10.2018 01.2026
- Without a fix
- 0
- Exploited in attacks
- 6
Severity breakdown
- Critical 14
- High 25
- Medium 20
- Low 1
Disclosures per year
- 2018: 6
- 2019: 0
- 2020: 0
- 2021: 1
- 2022: 45
- 2023: 4
- 2024: 1
- 2025: 2
- 2026: 1
-
Apache Struts directory traversal vulnerability 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.