WaratekVRT Sign in

CVE-2016-6795 Apache Struts

Affected softwareApache Struts
Severity9.8 Critical CVSS 3.0 2 scores
Fixed in2.3.31, 2.5.5
WeaknessPath traversal (CWE-22)
Published20 Sep 2017
Updated17 Jun 2026

Description

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.

Exploitation status

No public exploit

No exploit has been reported in the sources we check. Published 9 years ago.

  • CISA KEV not listed
  • VulnCheck KEV not listed
  • CISA Vulnrichment no assessment published
  • Indexed PoC none indexed
  • EPSS 8.2% chance in 30 days

Waratek protection

Protected by Waratek

Waratek has a rule that blocks attacks on this vulnerability.

Decided by A vulnerability class already blocked by an ARMR security rule
Finding Protected by Waratek's ARMR path-traversal security rule, which blocks this class of attack at the JVM level without a rule written for this CVE specifically. The CVE's weakness is CWE-22: Path Traversal.

How to mitigate CVE-2016-6795

Upgrade Apache Struts to a release that fixes it: 2.3.31 or 2.5.5. Until you can, Waratek RASP blocks exploitation with its path traversal rule. It runs inside the Java application, with no code changes.

Waratek RASP Runtime protection for Java applications

CVSS

9.8 CRITICAL v3.0 CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H 2 metrics

We show the highest score from the newest CVSS version. Scores from different versions can't be compared, and the first score listed is sometimes a 0.0 placeholder.

VersionScoreBandVectorAssignerType
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 NVD Primary published
CVSS 2.0 7.5 none AV:N/AC:L/Au:N/C:P/I:P/A:P NVD Primary

Affected software and releases

Maven packages

Affected and fixed versions, from OSV.dev
PackageIntroducedFixedLast affected
org.apache.struts:struts2-convention-plugin 2.3.0 2.3.31 unbounded
org.apache.struts:struts2-convention-plugin 2.5.0 2.5.5 unbounded

Products and versions

2 products, 20 version entries
SourceVendorProductSchemeAffected versions
nvd apache struts generic 2.3.20 · 2.3.20.1 · 2.3.20.2 · 2.3.20.3 · 2.3.21 · 2.3.22 · 2.3.23 · 2.3.24 · 2.3.24.1 · 2.3.24.2 · 2.3.24.3 · 2.3.25 · 2.3.26 · 2.3.27 · 2.3.28 · 2.3.28.1 · 2.3.29 · 2.3.30
osv org.apache.struts struts2-convention-plugin generic ≥ 2.3.0 and < 2.3.31 · ≥ 2.5.0 and < 2.5.5

References

URLTags
https://github.com/apache/struts/commit/8e67b9144aa643769b261e2492cb561e04d016ab WEB
https://github.com/apache/struts/commit/c1869f4989942dd33fa4e189e0ac1f766fb5ac14 WEB
https://github.com/apache/struts PACKAGE
https://security.netapp.com/advisory/ntap-20180629-0003 WEB
https://struts.apache.org/docs/s2-042.html WEB
https://web.archive.org/web/20200227214705/http://www.securityfocus.com/bid/93773 WEB
http://www.securityfocus.com/bid/93773 Third Party Advisory, VDB Entry
https://security.netapp.com/advisory/ntap-20180629-0003/

Timeline

Published2017-09-20By the CVE Program.
NVD record modified2026-06-17NVD's own last-modified date for this record.