CVE-2017-15707: Struts2 rest plugin Struts2-rest-plugin Vulnerability
MODERATECVE-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
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).
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.
<dependency>
<groupId>org.apache.struts</groupId>
<artifactId>struts2-rest-plugin</artifactId>
<version>2.5.16</version>
</dependency>
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
CVE-2017-15707 Affected Struts2 rest plugin Versions
1 component(s)| 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?
Which Struts2 rest plugin versions are affected?
What version fixes CVE-2017-15707?
Is struts2-rest-plugin affected?
What is the CVSS score of CVE-2017-15707?
What CWE is associated with CVE-2017-15707?
How can I check Maven dependencies for CVE-2017-15707?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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
}
}