CVE-2016-6795
Path Traversal in Apache Struts
In the Convention plugin 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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
9.8
In the Convention plugin 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.
- Record
CVE-2016-6795- CVSS 3.0
- 9.8 Critical
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - CVSS 2.0
- 7.5 High
AV:N/AC:L/Au:N/C:P/I:P/A:P - Weakness
- CWE-22
- Updated
- 2026-11-02
CVE List No score
In the Convention plugin 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.
- Record
CVE-2016-6795- Updated
- 2026-11-02
EUVDEUVD-2022-2295 No score
In the Convention plugin 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.
- Record
EUVD-2022-2295- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-44hv-jjx7-qfjg
9.8
Path Traversal in Apache Struts
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.
- Record
GHSA-44hv-jjx7-qfjg- CVSS 3.0
- 9.8 Critical
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-22
- Updated
- 2026-11-02
OSV
9.8
In the Convention plugin 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.
- Record
CVE-2016-6795- CVSS 3.0
- 9.8 Critical
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVGHSA-44hv-jjx7-qfjg
9.8
Path Traversal in Apache Struts
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.
- Record
GHSA-44hv-jjx7-qfjg- CVSS 3.0
- 9.8 Critical
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-22
- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
org.apache.struts:struts2-convention-pluginMaven |
2.3.0 up to 2.3.31 | 2.3.31 |
org.apache.struts:struts2-convention-pluginMaven |
2.5.0 up to 2.5.5 | 2.5.5 |
org.apache.struts:struts2-convention-pluginMaven |
2.3.0 up to 2.3.31, plus listed versions 2.3.12.3.1.12.3.1.22.3.122.3.14 Show 26 moreShow less2.3.14.12.3.14.22.3.14.32.3.152.3.15.12.3.15.22.3.15.32.3.162.3.16.12.3.16.22.3.16.32.3.202.3.20.12.3.20.32.3.242.3.24.12.3.24.32.3.282.3.28.12.3.292.3.32.3.302.3.42.3.4.12.3.72.3.8 |
2.3.31 |
org.apache.struts:struts2-convention-pluginMaven |
2.5.0 up to 2.5.5, plus listed versions 2.52.5.12.5.2 |
2.5.5 |
History
| Recorded | Changed | Sources |
|---|---|---|
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2016-6795 is a critical vulnerability (CVSS 9.8) in Apache Struts, published September 20, 2017. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 8.22%, the 94th percentile. Fixed in org.apache.struts:struts2-convention-plugin 2.3.31.
References
securityfocus.com/bid/93773
struts.apache.org/docs/s2-042.html
security.netapp.com/advisory/ntap-20180629-0003
nvd.nist.gov/vuln/detail/CVE-2016-6795
github.com/apache/struts/commit/8e67b9144aa643769b261e2492cb561e04d016ab
github.com/apache/struts/commit/c1869f4989942dd33fa4e189e0ac1f766fb5ac14
web.archive.org/web/20200227214705/http://www.securityfocus.com/bid/93773
github.com/advisories/GHSA-44hv-jjx7-qfjg
github.com/apache/struts