CVEs / CVE-2017-9805
CVE-2017-9805: Apache Struts Deserialization of Untrusted Data Vulnerability
- Known exploited in the CISA KEV catalog since 3 Nov 2021
- high 8.1 CVSS 3.1 (NVD)
- EPSS 99.3% chance of exploitation in the next 30 days, higher than 99% of CVEs (30 Oct 2026)
- Last changed at its sources
Are you affected? Check your servers with Stackurity: it lists the software on each server and the vulnerabilities to fix first.
Check your servers with Stackurity Already using Stackurity? Search for CVE-2017-9805
Summary
Apache Struts REST Plugin uses an XStreamHandler with an instance of XStream for deserialization without any type filtering, which can lead to remote code execution when deserializing XML payloads.
Description
The REST Plugin in Apache Struts 2.1.1 through 2.3.x before 2.3.34 and 2.5.x before 2.5.13 uses an XStreamHandler with an instance of XStream for deserialization without any type filtering, which can lead to Remote Code Execution when deserializing XML payloads.
Affected and fixed versions
| Product | Affected | Fixed in |
|---|---|---|
| Apache Software Foundation Apache Struts | Apache Struts before 2.3.34 and 2.5.x before 2.5.13 | — |
| Product | Affected | Fixed in |
|---|---|---|
| org.apache.struts:struts2-rest-plugin (Maven) | from 2.1.1, before 2.3.34 | 2.3.34 |
| org.apache.struts:struts2-rest-plugin (Maven) | from 2.5.0, before 2.5.13 | 2.5.13 |
Package versions from GHSA-gg9m-fj3v-r58c.
Exploitation
| In CISA KEV since | 3 Nov 2021 |
|---|---|
| Due date for US federal agencies | 3 May 2022 |
| Used in ransomware campaigns | Unknown |
| Required action | Apply updates per vendor instructions. |
Severity
| CVSS 3.1 | 8.1 highCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:HScored by NVD |
|---|---|
| Weakness | CWE-502 |
References
- CVE-2017-9805 on NVD
- CVE-2017-9805 in the CISA KEV catalog
- CVE-2017-9805 on OSV
- http://www.oracle.com/technetwork/security-advisory/alert-cve-2017-9805-3889403.html Patch, Third Party Advisory
- http://www.securityfocus.com/bid/100609 Broken Link, Third Party Advisory, VDB Entry
- http://www.securitytracker.com/id/1039263 Broken Link, Third Party Advisory, VDB Entry
- https://blogs.apache.org/foundation/entry/apache-struts-statement-on-equifax Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1488482 Issue Tracking, Third Party Advisory, VDB Entry
- https://cwiki.apache.org/confluence/display/WW/S2-052 Mitigation, Vendor Advisory
- https://lgtm.com/blog/apache_struts_CVE-2017-9805 Broken Link
- https://security.netapp.com/advisory/ntap-20170907-0001/ Third Party Advisory
- https://struts.apache.org/docs/s2-052.html Mitigation, Vendor Advisory
- https://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-20170907-struts2 Third Party Advisory
- https://www.exploit-db.com/exploits/42627/ Exploit, Third Party Advisory, VDB Entry
- https://www.kb.cert.org/vuls/id/112992 Third Party Advisory, US Government Resource
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2017-9805 US Government Resource
Sources
Exploitation status from the CISA Known Exploited Vulnerabilities catalog. EPSS scores from FIRST. Descriptions, severity and references from the National Vulnerability Database. Open-source package versions from OSV (CC-BY 4.0). Text is shown as each source states it; Stackurity does not edit it. Check the vendor's advisory before acting.
This product uses data from the NVD API but is not endorsed or certified by the NVD.