Apache Struts - RCE (CVE-2017-9805)
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.
psychologyCrowdSec Analysis
CVE-2017-9805 is a critical vulnerability in the REST Plugin of Apache Struts versions 2.1.1 through 2.3.x before 2.3.34 and 2.5.x before 2.5.13, where unsafe deserialization of XML payloads via XStreamHandler can lead to remote code execution. Attackers can exploit this flaw to execute arbitrary code on the affected server, potentially leading to full system compromise and further attacks within the network.
CrowdSec has been tracking this vulnerability and its exploits since 30th of June 2025.
According to CrowdSec data, while opportunistic exploitation dominates, a portion of threat actors trying to exploit CVE-2017-9805 apply basic targeting methods such as port or service detection. This indicates emerging patterns of selective targeting. CrowdSec data also reveals a clear uptick in attacks involving CVE-2017-9805 over the past week. Activity is above the usual baseline, suggesting growing attention from attackers. This may reflect rising awareness, recent exploit releases, or expanded targeting efforts.
Attackers exploit this vulnerability by sending crafted POST requests with malicious XML payloads to /struts2-rest-showcase/orders/ endpoints, leading to remote code execution via unsafe deserialization.
Full Intelligence Available
Connect your API key to access CrowdSec scores, exploit timelines, and attacker IPs.
| Event | Date |
|---|---|
| CVE Published | 2017-09-15 |
| CISA KEV | 2021-11-03 |
| CISA Remediation Deadline | 2022-05-03 |
| Rule Released | 2025-06-30 |
| CrowdSec First Seen | 2025-07-07 |
Remediation & Protection
External References
- https://www.exploit-db.com/exploits/42627/
- http://www.securityfocus.com/bid/100609
- https://www.kb.cert.org/vuls/id/112992
- https://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-20170907-struts2
- https://blogs.apache.org/foundation/entry/apache-struts-statement-on-equifax
- http://www.securitytracker.com/id/1039263
- https://cwiki.apache.org/confluence/display/WW/S2-052
- https://lgtm.com/blog/apache_struts_CVE-2017-9805
- https://security.netapp.com/advisory/ntap-20170907-0001/
- https://struts.apache.org/docs/s2-052.html
- http://www.oracle.com/technetwork/security-advisory/alert-cve-2017-9805-3889403.html
- https://bugzilla.redhat.com/show_bug.cgi?id=1488482