patchminder
Exploited in the wild · CISA KEV CVE-2017-9805

Remote code executionin Apache Struts.

Published 15 Sep 2017 · Updated 21 Oct 2025 · Every fact sourced

JSONCite
Is it exploited?
Yes

On CISAThe US cyber defence agency. Its list names every hole it has seen used in real attacks.'s exploited list since 3 Nov 2021.

On CISA's listAttack code is public
Severity
High 8.1
CVSSA severity score from 0 to 10. 9 and higher is critical. 3.1 · CISAThe US cyber defence agency. Its list names every hole it has seen used in real attacks. assessment · no login needed
Attack likelihood
Very high
EPSSA daily score from FIRST: the chance a hole is attacked in the next 30 days. 99.4% chance in 30 days · 4 Dec 2026
Fix
Available
Fixed in 2.3.34, 2.5.13
In plain words

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.

CISA: 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.

What to do now
  • Upgrade org.apache.struts:struts2-rest-plugin (Maven) to 2.3.34, 2.5.13 or later, whichever matches your release line.
  • CISA requires US federal agencies to fix it by 3 May 2022.
Versions

Affected and fixed versions

Product or package
Affected
Fixed in
Source
Apache Struts
Not confirmed
Not confirmed
CVE record
org.apache.struts:struts2-rest-plugin (Maven)
2.1.1 to before 2.3.34
2.3.34
GitHub advisory
org.apache.struts:struts2-rest-plugin (Maven)
2.5.0 to before 2.5.13
2.5.13
GitHub advisory

From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.

Timeline

From first report to first attacks

  1. 21 Jun 2017
    CVE ID reserved by apache.
  2. 5 Sep 2017
    Metasploit module: Apache Struts 2 REST Plugin XStream RCE.
  3. 6 Sep 2017
    First public proof of concept on GitHub.
  4. 15 Sep 2017
    Published in the CVE List.
  5. 3 Nov 2021
    Added to CISA's Known Exploited Vulnerabilities list.
  6. 21 Oct 2025
    CVE record last updated.
Exploit code

Attack code anyone can find

Exploit maturity: Exploited in the wild (CISA KEV). CISA assessment (SSVC): exploitation active.

Metasploit module
1 module
Nuclei scan template
Available
Exploit-DB
1 entry
GitHub proof of concepts
21 repositories
Exploit-DBEDB-ID 42627remote exploit for linux, published 6 Sep 2017
GitHubno warning signs foundmazen160/struts-pwn_CVE-2017-9805247 stars · created 9 Sep 2017An exploit for Apache Struts CVE-2017-9805
GitHubno warning signs foundluc10/struts-rce-cve-2017-980560 stars · created 6 Sep 2017CVE 2017-9805
GitHubno warning signs foundchrisjd20/cve-2017-9805.py21 stars · created 4 Dec 2017Better Exploit Code For CVE 2017 9805 apache struts
GitHubno warning signs found0x00-0x00/-CVE-2017-980515 stars · created 24 Nov 2017Exploit script for Apache Struts2 REST Plugin XStream RCE (‎CVE-2017-9805)
GitHubno warning signs foundLone-Ranger/apache-struts-pwn_CVE-2017-98055 stars · created 10 Sep 2017An exploit for Apache Struts CVE-2017-9805
GitHubno warning signs foundhahwul/struts2-rce-cve-2017-9805-ruby4 stars · created 7 Sep 2017cve -2017-9805
GitHubno warning signs foundShakun8/CVE-2017-98053 stars · created 3 Oct 2022CVE-2017-9805 POC
GitHubno warning signs foundBeyondCy/S2-0521 stars · created 28 Nov 2017CVE-2017-9805 · Exploit
GitHubno warning signs foundUbuntuStrike/struts_rest_rce_fuzz-CVE-2017-9805-1 stars · created 31 Aug 2019Simple python script to fuzz site for CVE-2017-9805
GitHubno warning signs foundjongmartinez/-CVE-2017-9805-1 stars · created 28 Nov 2020Exploit script for Apache Struts2 REST Plugin XStream RCE (‎CVE-2017-9805)
Referencewww.exploit-db.comnamed as exploit in the CVE record

Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.

Related

Other Struts vulnerabilities

Same weakness: Deserialization of untrusted data

All CWE-502 vulnerabilities

References
Cite this page

Patchminder. CVE-2017-9805: Remote code execution in Apache Struts. https://patchminder.com/cve/cve-2017-9805/ (accessed 5 December 2026).