Apache Software Foundation Apache Struts
Apache Struts Deserialization of Untrusted Data Vulnerability
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 versions and mitigation
From the CVE record, GitHub Security Advisories and the vendor's references.Affected
- >= 2.1.1, < 2.3.34
Fixed in 2.3.34
from GitHub Security Advisory GHSA-gg9m-fj3v-r58c
- >= 2.5.0, < 2.5.13
Fixed in 2.5.13
from GitHub Security Advisory GHSA-gg9m-fj3v-r58c
Mitigation
Upgrade org.apache.struts:struts2-rest-plugin to 2.3.34 or later.
Upgrade org.apache.struts:struts2-rest-plugin to 2.5.13 or later.
Timeline
Days relative to CVE publicationFirst public PoC 9.8 days before publication; added to CISA KEV 4.1 years after publication. First PoC: Apache Struts 2.5 < 2.5.12 - REST Plugin XStream Remote Code Execution (Exploit-DB, 6 Sep 2017).
PoC repositories
Found on GitHub.21 PoCs · 3 pending · 2 informational · 1 suspicious or fake
PoCs 21
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| luc10/struts-rce-cve-2017-9805 | 6 Sep 2017 −9.4 d | 60 | PoC |
| hahwul/struts2-rce-cve-2017-9805-ruby | 7 Sep 2017 −8.4 d | 3 | PoC |
| mazen160/struts-pwn_CVE-2017-9805 | 9 Sep 2017 −6.7 d | 247 | PoC |
| Lone-Ranger/apache-struts-pwn_CVE-2017-9805 | 10 Sep 2017 −5.6 d | 5 | PoC |
| 0x00-0x00/-CVE-2017-9805 | 24 Nov 2017 +70 d | 15 | PoC |
| chrisjd20/cve-2017-9805.py | 4 Dec 2017 +80 d | 21 | PoC |
| RayScri/Struts2-052-POC | 10 Apr 2019 +1.6 y | 3 | PoC
Flags · score 30
Below the suspicion threshold (50); does not change the assessment. |
| UbuntuStrike/struts_rest_rce_fuzz-CVE-2017-9805- | 31 Aug 2019 +2.0 y | 1 | PoC |
| UbuntuStrike/CVE-2017-9805-Apache-Struts-Fuzz-N-Sploit | 2 Sep 2019 +2.0 y | 0 | PoC |
| wifido/CVE-2017-9805-Exploit | 11 Jun 2020 +2.7 y | 0 | PoC |
| samqbush/struts-rest-showcase | 13 Nov 2020 +3.2 y | 0 | PoC
Flags · score 30
Below the suspicion threshold (50); does not change the assessment. |
| rvermeulen/apache-struts-cve-2017-9805 | 13 Nov 2020 +3.2 y | 0 | PoC |
| jongmartinez/-CVE-2017-9805- | 28 Nov 2020 +3.2 y | 1 | PoC |
| z3bd/CVE-2017-9805 | 5 Mar 2021 +3.5 y | 0 | PoC
Flags · score 15
Below the suspicion threshold (50); does not change the assessment. |
| 0xd3vil/CVE-2017-9805-Exploit | 4 Apr 2021 +3.5 y | 1 | PoC |
| agent3137/CVE-2017-9805-Exploit | 4 Apr 2021 +3.5 y | 1 | PoC |
| SavoBit/apache-exploit-demo | 17 Jun 2021 +3.8 y | 0 | PoC via PoC Index |
| Shakun8/CVE-2017-9805 | 3 Oct 2022 +5.0 y | 3 | PoC |
| NoSpaceAvailable/CVE-2017-9805_example_build | 13 Dec 2025 +8.2 y | 0 | PoC |
| 7s26simon/CVE-2017-9805-S2-052 | 28 Feb 2026 +8.5 y | 0 | PoC |
| Experience-rookie/struts-s2-052-deserialization-rce-lab | 16 Mar 2026 +8.5 y | 0 | PoC |
Pending 3
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| Vancir/s2-052-reproducing | 26 Oct 2017 +41 d | 20 | Pending · repository exceeds size limit via PoC Index |
| sujithvaddi/apache_struts_cve_2017_9805 | 20 Aug 2021 +3.9 y | 0 | Pending · repository exceeds size limit via PoC Index |
| RaniaMathlouthi/cve-2017-9805-struts-lab | 24 Sep 2026 +9.0 y | 0 | Pending · repository unavailable (HTTP 404) |
Informational 2
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| AvishkaSenadheera/CVE-2017-9805---Documentation---IT19143378 | 12 May 2020 +2.7 y | 0 | Informational · write-up |
| Fl5xia/CVE-2017-9805 | 4 Jan 2026 +8.3 y | 0 | Informational · write-up
Flags · score 30
Below the suspicion threshold (50); does not change the assessment. |
Suspicious or fake 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| BeyondCy/S2-052 | 28 Nov 2017 +73 d | 1 | Fake |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
Other public exploits
Exploit-DB, Metasploit and nuclei count as public PoCs. Exploit-tagged references from the CVE record and NVD are links only. None of these are analysed by us.| Source | Title | Published | Found by us |
|---|---|---|---|
| CVE record (tagged exploit) | 42627 | unknown | 14 Nov 2026 |
| Exploit-DB | Apache Struts 2.5 < 2.5.12 - REST Plugin XStream Remote Code Execution | 6 Sep 2017 | 14 Nov 2026 |
| Metasploit | Metasploit exploit: Apache Struts 2 REST Plugin XStream RCE (exploit/multi/http/struts2_rest_xstream) | 8 Sep 2017 | 14 Nov 2026 |
| nuclei template | nuclei template: Apache Struts2 S2-052 - Remote Code Execution | 27 Apr 2023 | 14 Nov 2026 |
PoC characteristics
What to hunt for in your logs · from 23 PoC reposGET /struts2-rest-showcase{var}/orders/
- Seen in
- 2 repos: UbuntuStrike/CVE-2017-9805-Apache-Struts-Fuzz-N-Sploit, UbuntuStrike/struts_rest_rce_fuzz-CVE-2017-9805-
- Evidence
- UbuntuStrike/CVE-2017-9805-Apache-Struts-Fuzz-N-Sploit/CVE-2017-9805_Struts_Fuzz_N_Sploit.py:48 UbuntuStrike/CVE-2017-9805-Apache-Struts-Fuzz-N-Sploit/CVE-2017-9805_Struts_Fuzz_N_Sploit.py:59 UbuntuStrike/struts_rest_rce_fuzz-CVE-2017-9805-/struts_rest_rce_fuzz.py:45
GET /struts2-rest-showcase-2.3.11/orders.xhtml
- Seen in
- 1 repo: z3bd/CVE-2017-9805
- Evidence
- z3bd/CVE-2017-9805/CVE-2017-9805.yaml:18
GET /struts2-rest-showcase-2.5.10/orders.xhtml
- Seen in
- 1 repo: z3bd/CVE-2017-9805
- Evidence
- z3bd/CVE-2017-9805/CVE-2017-9805.yaml:19
GET /struts2-rest-showcase-2.5.12/orders.xhtml
- Seen in
- 1 repo: z3bd/CVE-2017-9805
- Evidence
- z3bd/CVE-2017-9805/CVE-2017-9805.yaml:20
GET /struts2-rest-showcase/orders.xhtml
- Seen in
- 1 repo: z3bd/CVE-2017-9805
- Evidence
- z3bd/CVE-2017-9805/CVE-2017-9805.yaml:17
POST /api/login
- Key headers
Accept: */*Accept-Language: en-US,en;q=0.9Cookie: JSESSIONID=401BE92E6851ED598126022E8173EE3FOrigin: http://localhost:8000Referer: http://localhost:8000/auth.jspSec-Ch-Ua: "Not_A Brand";v="99", "Chromium";v="142"Sec-Ch-Ua-Mobile: ?0Sec-Ch-Ua-Platform: "Windows"Sec-Fetch-Dest: emptySec-Fetch-Mode: corsSec-Fetch-Site: same-origin- Content-Type
application/xml;charset=UTF-8- Ports
- 8000
- PoC User-Agent
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36- Seen in
- 1 repo: NoSpaceAvailable/CVE-2017-9805_example_build
- Evidence
- NoSpaceAvailable/CVE-2017-9805_example_build/payload.txt:1
POST /struts2-rest-showcase-2.3.1/orders/3
- Content-Type
application/xml- Seen in
- 1 repo: z3bd/CVE-2017-9805
- Evidence
- z3bd/CVE-2017-9805/CVE-2017-9805.yaml:28
POST /struts2-rest-showcase-2.5.10/orders/3
- Content-Type
application/xml- Seen in
- 1 repo: z3bd/CVE-2017-9805
- Evidence
- z3bd/CVE-2017-9805/CVE-2017-9805.yaml:29
POST /struts2-rest-showcase-2.5.12/orders/3
- Content-Type
application/xml- Seen in
- 1 repo: z3bd/CVE-2017-9805
- Evidence
- z3bd/CVE-2017-9805/CVE-2017-9805.yaml:30
POST /struts2-rest-showcase/orders/3
- Content-Type
application/xml- Seen in
- 1 repo: z3bd/CVE-2017-9805
- Evidence
- z3bd/CVE-2017-9805/CVE-2017-9805.yaml:27
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/struts2-rest-showcase[^/?#]*/orders/(?:[?#].*)?$
(?i)^/struts2-rest-showcase-2\.3\.11/orders\.xhtml(?:[?#].*)?$
(?i)^/struts2-rest-showcase-2\.5\.10/orders\.xhtml(?:[?#].*)?$
(?i)^/struts2-rest-showcase-2\.5\.12/orders\.xhtml(?:[?#].*)?$
(?i)^/struts2-rest-showcase/orders\.xhtml(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2017-9805 Apache Software Foundation Apache Struts exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/struts2-rest-showcase"; http.uri; content:"/orders/"; reference:url,poc.griffinguard.io/cve/CVE-2017-9805; classtype:web-application-attack; sid:9396322; rev:1;)
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2017-9805 Apache Software Foundation Apache Struts exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/struts2-rest-showcase-2.3.11/orders.xhtml"; reference:url,poc.griffinguard.io/cve/CVE-2017-9805; classtype:web-application-attack; sid:9306441; rev:1;)
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2017-9805 Apache Software Foundation Apache Struts exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/struts2-rest-showcase-2.5.10/orders.xhtml"; reference:url,poc.griffinguard.io/cve/CVE-2017-9805; classtype:web-application-attack; sid:9290586; rev:1;)
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2017-9805 Apache Software Foundation Apache Struts exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/struts2-rest-showcase-2.5.12/orders.xhtml"; reference:url,poc.griffinguard.io/cve/CVE-2017-9805; classtype:web-application-attack; sid:9322748; rev:1;)
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2017-9805 Apache Software Foundation Apache Struts exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/struts2-rest-showcase/orders.xhtml"; reference:url,poc.griffinguard.io/cve/CVE-2017-9805; classtype:web-application-attack; sid:9219789; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: Apache Software Foundation Apache Struts exploit attempt (CVE-2017-9805)
id: gg-pocmon-cve-2017-9805-9396322
status: experimental
description: Request pattern taken from public PoCs for CVE-2017-9805. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2017-9805
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/struts2-rest-showcase'
- '/orders/'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2017.9805
title: Apache Software Foundation Apache Struts exploit attempt (CVE-2017-9805)
id: gg-pocmon-cve-2017-9805-9306441
status: experimental
description: Request pattern taken from public PoCs for CVE-2017-9805. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2017-9805
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/struts2-rest-showcase-2.3.11/orders.xhtml'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2017.9805
title: Apache Software Foundation Apache Struts exploit attempt (CVE-2017-9805)
id: gg-pocmon-cve-2017-9805-9290586
status: experimental
description: Request pattern taken from public PoCs for CVE-2017-9805. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2017-9805
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/struts2-rest-showcase-2.5.10/orders.xhtml'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2017.9805
title: Apache Software Foundation Apache Struts exploit attempt (CVE-2017-9805)
id: gg-pocmon-cve-2017-9805-9322748
status: experimental
description: Request pattern taken from public PoCs for CVE-2017-9805. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2017-9805
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/struts2-rest-showcase-2.5.12/orders.xhtml'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2017.9805
title: Apache Software Foundation Apache Struts exploit attempt (CVE-2017-9805)
id: gg-pocmon-cve-2017-9805-9219789
status: experimental
description: Request pattern taken from public PoCs for CVE-2017-9805. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2017-9805
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/struts2-rest-showcase/orders.xhtml'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2017.9805