GitHub Advisory Database
GHSA-44hv-jjx7-qfjg
Path Traversal in Apache Struts
Details
In Apache Struts 2.3.x before 2.3.31, and 2.5.x before 2.5.5, it is possible to prepare a special URL which will be used for path traversal and execution of arbitrary code on server side. This vulnerability is only exploitable when using the Struts 2 Convention plugin in conjunction with Apache Struts.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Maven | org.apache.struts:struts2-convention-plugin | From 2.3.0 before 2.3.31 (fixed in 2.3.31) |
| Maven | org.apache.struts:struts2-convention-plugin | From 2.5.0 before 2.5.5 (fixed in 2.5.5) |
References
- https://nvd.nist.gov/vuln/detail/CVE-2016-6795
- https://github.com/apache/struts/commit/8e67b9144aa643769b261e2492cb561e04d016ab
- https://github.com/apache/struts/commit/c1869f4989942dd33fa4e189e0ac1f766fb5ac14
- https://github.com/apache/struts
- https://security.netapp.com/advisory/ntap-20180629-0003
- https://struts.apache.org/docs/s2-042.html
- https://web.archive.org/web/20200227214705/http://www.securityfocus.com/bid/93773