CVE-2017-15707: Struts2 rest plugin Struts2-rest-plugin Vulnerability

MODERATE
Advisory Identifier: GHSA-xcrm-qpp8-hcw4
CVSS 6.2
CWE-20
Published
Advisory Summary

CVE-2017-15707 is a MODERATE (CVSS 6.2) struts2-rest-plugin vulnerability (CWE-20: Improper Input Validation) affecting Struts2 rest plugin libraries in the Maven ecosystem. The issue involves struts2-rest-plugin. Remediation is available by upgrading affected packages to version 2.5.16.

CVE-2017-15707 at a Glance

CVE Identifier CVE-2017-15707
GHSA Identifier GHSA-xcrm-qpp8-hcw4
Severity MODERATE
CVSS v3.1 Base Score 6.2
CWE Classification CWE-20: Improper Input Validation
Affected Product Struts2 rest plugin
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 6.2

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).

Attack Vector Local (AV:L)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability High (A:H)

How to Fix CVE-2017-15707

To remediate this vulnerability, upgrade all affected Struts2 rest plugin dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

org.apache.struts:struts2-rest-plugin fixed: 2.5.16
<dependency>
    <groupId>org.apache.struts</groupId>
    <artifactId>struts2-rest-plugin</artifactId>
    <version>2.5.16</version>
</dependency>
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree -Dincludes=org.apache.struts

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2017-15707, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=org.apache.struts

Analyze the terminal output to locate any version of Struts2 rest plugin in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.5.16), your application is affected.

Note: The mvn dependency:tree -Dincludes=org.apache.struts command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. In Struts2 rest plugin, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

In Apache Struts 2.5 to 2.5.14, the REST Plugin is using an outdated JSON-lib library which is vulnerable and allow perform a DoS attack using malicious request with specially crafted JSON payload.

CVE-2017-15707 Affected Struts2 rest plugin Versions

1 component(s)
Fixed Versions:
2.5.16
Product / Package Ecosystem Affected Versions Fixed Version
org.apache.struts:struts2-rest-plugin
Maven
≥ 2.5.0
< 2.5.16
2.5.16

References

Frequently Asked Questions

What is CVE-2017-15707?
CVE-2017-15707 is a security vulnerability in Struts2 rest plugin involving struts2-rest-plugin under CWE-20: Improper Input Validation.
Which Struts2 rest plugin versions are affected?
Affected versions include releases prior to 2.5.16 across affected packages: org.apache.struts:struts2-rest-plugin.
What version fixes CVE-2017-15707?
Upgrading to 2.5.16 (or the latest patched release for your respective branch) resolves the vulnerability.
Is struts2-rest-plugin affected?
Yes, org.apache.struts:struts2-rest-plugin is affected in releases prior to 2.5.16. Upgrade your dependency to 2.5.16 or later.
What is the CVSS score of CVE-2017-15707?
CVE-2017-15707 has a CVSS v3.1 base score of 6.2 (MODERATE) with vector string CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2017-15707?
CVE-2017-15707 is classified under CWE-20: Improper Input Validation (The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.).
How can I check Maven dependencies for CVE-2017-15707?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.apache.struts'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-xcrm-qpp8-hcw4",
  "modified" : "2021-09-21T22:29:46Z",
  "published" : "2018-10-16T19:35:55Z",
  "aliases" : [ "CVE-2017-15707" ],
  "summary" : "Moderate severity vulnerability that affects org.apache.struts:struts2-rest-plugin",
  "details" : "In Apache Struts 2.5 to 2.5.14, the REST Plugin is using an outdated JSON-lib library which is vulnerable and allow perform a DoS attack using malicious request with specially crafted JSON payload.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.struts:struts2-rest-plugin"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.5.0"
      }, {
        "fixed" : "2.5.16"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 2.5.14"
    }
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2017-15707"
  }, {
    "type" : "WEB",
    "url" : "https://cwiki.apache.org/confluence/display/WW/S2-054"
  }, {
    "type" : "ADVISORY",
    "url" : "https://github.com/advisories/GHSA-xcrm-qpp8-hcw4"
  }, {
    "type" : "WEB",
    "url" : "https://security.netapp.com/advisory/ntap-20171214-0001"
  }, {
    "type" : "WEB",
    "url" : "http://www.oracle.com/technetwork/security-advisory/cpuapr2018-3678067.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.oracle.com/technetwork/security-advisory/cpujul2018-4258247.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.securityfocus.com/bid/102021"
  }, {
    "type" : "WEB",
    "url" : "http://www.securitytracker.com/id/1039946"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-20" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-06-16T22:02:58Z",
    "nvd_published_at" : null
  }
}