StrutsFramework / library · Apache

CVE-2016-6795

CRITICAL · 9.8 CVSS v3.0 Published 2017-09-20
Mitigation only
No fix yet — a mitigation exists. There is no fixed release. A documented workaround reduces exposure in the meantime.
See remediation →
100/100
Remediation priority · Urgent
Remotely reachable No privileges Zero-click

Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.

NVD · unedited
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.

Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.

dbcve analysis · high confidence

The Convention plugin in Apache Struts versions 2.3.x before 2.3.31 and 2.5.x before 2.5.5 contains a path traversal vulnerability that allows attackers to craft special URLs to traverse the file system and execute arbitrary code on the server side.

MitigationUpgrade Apache Struts to version 2.3.31 or 2.5.5 or later to patch the path traversal vulnerability in the Convention plugin.

Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.

Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.

NVD · CPE data
StrutsFramework / library
Affected:= 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

CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.

From the vector
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.

dbcve checks

Work through these to decide whether this CVE applies to you.

  1. Identify Apache Struts version
    Locate the struts2-core.jar file in your application's WEB-INF/lib directory and check its version from the filename or manifest. Alternatively, inspect the pom.xml or build.gradle for the Struts dependency version.
    Affected if The installed Struts version is 2.3.x less than 2.3.31, or 2.5.x less than 2.5.5
  2. Verify Convention plugin is present
    Check if struts2-convention-plugin.jar exists in WEB-INF/lib directory of your deployed application.
    Affected if The struts2-convention-plugin.jar file is present in the application
  3. Confirm Convention plugin is enabled
    Inspect your struts.xml configuration file for the <constant name="struts.convention.action.alwaysSelectExecuteNamespace" value="true"/> setting or look for the convention plugin package in the classpath. Also check if any action classes use @Action annotations which indicate Convention is in use.
    Affected if The Convention plugin is loaded or actions rely on Convention-based URL mapping (e.g., /namespace/actionName.action)
  4. Review application for Convention-based URL patterns
    Test accessing a known action using the Convention plugin URL pattern: /{packageNamespace}/{actionClassNameWithoutActionSuffix}.action to see if the application responds. Alternatively, check logs for Convention plugin initialization messages.
    Affected if Convention-based action URLs are processed by the application (the vulnerability only triggers when Convention handles the request)

You are affected if your Struts version is 2.3.x before 2.3.31 or 2.5.x before 2.5.5 AND the Convention plugin JAR is present and actively handling requests.

Generated from the published advisory. Verify against your own configuration.

Check your environment

Paste your version and any relevant configuration and it will be compared against the affected criteria above. Do not include secrets or credentials.

AI-assisted, checked against the advisory. Informational, not a guarantee.

Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.

dbcve · scoped
Mitigation available No clean upgrade yet — mitigate in the meantime
Mitigation

Upgrade Apache Struts to version 2.3.31 or 2.5.5 or later to patch the path traversal vulnerability in the Convention plugin.

Recommended fix High confidence

Apache Struts 2.3.31 (or 2.5.5+ for 2.5.x branch)

  1. 1. Identify all applications and dependencies using Apache Struts 2.3.x Convention plugin versions 2.3.20 through 2.3.30
  2. 2. For Maven-based projects: Update the struts2-core dependency version in pom.xml to 2.3.31 (e.g., change <version>2.3.20</version> to <version>2.3.31</version>)
  3. 3. For non-Maven projects: Replace struts2-core.jar and struts2-convention-plugin.jar with version 2.3.31 from the Apache Struts distribution
  4. 4. Rebuild the application and run all unit/integration tests to verify compatibility
  5. 5. Deploy the updated application to staging environment for validation
  6. 6. Deploy to production after successful validation
Caveat Minor: Review release notes for 2.3.21 through 2.3.31 for any behavior changes; test thoroughly before production deployment

Generated from the published advisory — verify against the referenced sources before acting.

Fix this in Struts Scoped from the published advisory
  • Consultation4.0 h
  • Implementation4.0 h
  • Testing12.0 h
  • Review / QA4.0 h
24.0 hours of engineering $4,040
Get help mitigating

An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $6,464.

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2016-6795 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.

References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.

Primary sources

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2016-6795 in production — separate from our analysis above.

No notes yet

Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.

What this is

A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.

What belongs here
  • Verified mitigations, workarounds, and config changes
  • Version or environment caveats, and links to real fixes
  • No weaponised exploit code, or anything meant to cause harm
  • No spam, self-promotion, credentials, or personal data