Apache Software Foundation Apache Struts
Apache Struts Remote Code Execution Vulnerability
Forced OGNL evaluation, when evaluated on raw user input in tag attributes, may lead to remote code execution. Affected software : Apache Struts 2.0.0 - Struts 2.5.25.
Affected versions and mitigation
From the CVE record, GitHub Security Advisories and the vendor's references.Affected
- >= 2.0.0, < 2.5.26
Fixed in 2.5.26
from GitHub Security Advisory GHSA-jc35-q369-45pv
Mitigation
Upgrade org.apache.struts:struts2-core to 2.5.26 or later.
Timeline
Days relative to CVE publicationFirst public PoC 2.6 days before publication; added to CISA KEV 327 days after publication. First PoC: phil-fly/CVE-2020-17530 (created 8 Dec 2020, found by us: backfilled).
PoC repositories
Found on GitHub.15 PoCs · 1 informational · 5 not a PoC
PoCs 15
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| phil-fly/CVE-2020-17530 | 8 Dec 2020 −2.6 d | 4 | PoC |
| pangyu360es/CVE-2020-17530 | 9 Dec 2020 −2 d | 1 | PoC via PoC Index |
| secpool2000/CVE-2020-17530 | 9 Dec 2020 −2 d | 1 | PoC via PoC Index |
| ka1n4t/CVE-2020-17530 | 9 Dec 2020 −1.6 d | 64 | PoC |
| whale-baby/exploitation-of-vulnerability | 10 Dec 2020 −16 h | 0 | PoC older repo: PoC date unknown, not used for the first PoC |
| wuzuowei/CVE-2020-17530 | 10 Dec 2020 −7 h | 45 | PoC |
| Al1ex/CVE-2020-17530 | 13 Dec 2020 +2.4 d | 29 | PoC |
| fengziHK/CVE-2020-17530-strust2-061 | 14 Dec 2020 +3.2 d | 7 | PoC |
| ludy-dev/freemarker_RCE_struts2_s2-061 | 18 Dec 2020 +7.2 d | 0 | PoC |
| CyborgSecurity/CVE-2020-17530 | 30 Dec 2020 +20 d | 4 | PoC |
| killmonday/CVE-2020-17530-s2-061 | 24 Jan 2021 +44 d | 0 | PoC |
| lucksec/S2-62poc | 15 Apr 2022 +1.3 y | 1 | PoC via PoC Index |
| keyuan15/CVE-2020-17530 | 2 Apr 2023 +2.3 y | 0 | PoC |
| nth347/CVE-2020-17530 | 4 Aug 2023 +2.6 y | 0 | PoC via PoC Index |
| fatkz/CVE-2020-17530 | 14 May 2025 +4.4 y | 0 | PoC |
Informational 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| uzzzval/CVE-2020-17530 | 7 Jan 2021 +28 d | 5 | Informational · write-up |
Not a PoC 5
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| Wrin9/CVE-2021-31805 | 15 Apr 2022 +1.3 y | 37 | Not a PoC · unrelated |
| JordanANDJohn/CVE-2021-31805-POC | 18 Apr 2022 +1.4 y | 1 | Not a PoC · unrelated |
| fleabane1/CVE-2021-31805-POC | 18 Apr 2022 +1.4 y | 1 | Not a PoC · unrelated |
| z92g/CVE-2021-31805 | 10 Jul 2022 +1.6 y | 5 | Not a PoC · unrelated
Flags · score 30
Below the suspicion threshold (50); does not change the assessment. |
| nth347/struts2-CVE-2020-17530 | 4 Aug 2023 +2.6 y | 0 | Not a PoC · unrelated
Flags · score 15
Below the suspicion threshold (50); does not change the assessment. |
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 |
|---|---|---|---|
| Metasploit | Metasploit exploit: Apache Struts 2 Forced Multi OGNL Evaluation (exploit/multi/http/struts2_multi_eval_ognl) | 16 Dec 2020 | 14 Nov 2026 |
| nuclei template | nuclei template: Apache Struts 2.0.0-2.5.25 - Remote Code Execution | 27 Apr 2023 | 14 Nov 2026 |
PoC characteristics
What to hunt for in your logs · from 15 PoC reposGET /
- Query
id=%{('Powered_by_Unicode_Potats0,enjoy_it').(#UnicodeSec = #application['org.apache.tomcat.InstanceManager']).(#potats0=#UnicodeSec.newInstance('org.apache.commons.collections.BeanMap')).(#stackvalue=#attr['struts.valueStack']).(#potats0.setBean(#stackvalue)).(#context=#potats0.get('context')).(#potats0.setBean(#context)).(#sm=#potats0.get('memberAccess')).(#emptySet=#UnicodeSec.newInstance('java.util.HashSet')).(#potats0.setBean(#sm)).(#potats0.put('excludedClasses',#emptySet)).(#potats0.put('excludedPackageNames',#emptySet)).(#exec=#UnicodeSec.newInstance('freemarker.template.utility.Execute')).(#cmd={'id=id=/?id=%{('Powered_by_Unicode_Potats0,enjoy_it').(#UnicodeSec = #application['org.apache.tomcat.InstanceManager']).(#potats0=#UnicodeSec.newInstance('org.apache.commons.collections.BeanMap')).(#stackvalue=#attr['struts.valueStack']).(#potats0.setBean(#stackvalue)).(#context=#potats0.get('context')).(#potats0.setBean(#context)).(#sm=#potats0.get('memberAccess')).(#emptySet=#UnicodeSec.newInstance('java.util.HashSet')).(#potats0.setBean(#sm)).(#potats0.put('excludedClasses',#emptySet)).(#potats0.put('excludedPackageNames',#emptySet)).(#exec=#UnicodeSec.newInstance('freemarker.template.utility.Execute')).(#cmd={'- Ports
- 8080, 8081
- Seen in
- 4 repos: fengziHK/CVE-2020-17530-strust2-061, ludy-dev/freemarker_RCE_struts2_s2-061, whale-baby/exploitation-of-vulnerability, wuzuowei/CVE-2020-17530
- Evidence
- fengziHK/CVE-2020-17530-strust2-061/struts2-061-poc.py:15 ludy-dev/freemarker_RCE_struts2_s2-061/freemarker_RCE_struts2_s2-061.py:9 whale-baby/exploitation-of-vulnerability/CVE-2020-17530 S2-061远程命令执行漏洞/s2-061.py:16 wuzuowei/CVE-2020-17530/struts2-061-poc.py:14
POST /SimpleStruts_war_exploded/S2061.action
- Key headers
Accept-Language: zh-CN,zh;q=0.9Cookie: JSESSIONID=0DD7F8E6B11D062C574037318DC36C2D- Body markers
------WebKitFormBoundaryl7d1B1aGsV2wcZwF Content-Disposition: form-data; name="id"inmultipart/form-data; boundary=----WebKitFormBoundaryl7d1B1aGsV2wcZwF- Ports
- 8080
- PoC User-Agent
Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36- Seen in
- 1 repo: Al1ex/CVE-2020-17530
- Evidence
- Al1ex/CVE-2020-17530/README.md:19 Al1ex/CVE-2020-17530/README.md:44 Al1ex/CVE-2020-17530/README.md:65
GET /seeyon/PeiQi.jspx
- Ports
- 8080
- Seen in
- 1 repo: whale-baby/exploitation-of-vulnerability
- Evidence
- whale-baby/exploitation-of-vulnerability/致远OA ajax.do登录绕过任意文件上传/poc.py:39
GET /seeyon/htmlofficeservlet
GET /seeyon/thirdpartyController.do.css/..;/ajax.do
- Ports
- 8080
- Seen in
- 1 repo: whale-baby/exploitation-of-vulnerability
- Evidence
- whale-baby/exploitation-of-vulnerability/致远OA ajax.do登录绕过任意文件上传/poc.py:13
GET /{var}&fileExt=txt
- Ports
- 8080
- Seen in
- 1 repo: whale-baby/exploitation-of-vulnerability
- Evidence
- whale-baby/exploitation-of-vulnerability/泛微OA云桥未授权任意文件读取/fwy.py:13
POST ///{var}
- Body markers
name="name"inmultipart/form-data- Seen in
- 1 repo: CyborgSecurity/CVE-2020-17530
- Evidence
- CyborgSecurity/CVE-2020-17530/CVE-2020-17530.py:35
POST /seeyon/htmlofficeservlet
- Key headers
Pragma: no-cache- Ports
- 8080
- PoC User-Agent
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)- Seen in
- 1 repo: whale-baby/exploitation-of-vulnerability
- Evidence
- whale-baby/exploitation-of-vulnerability/2019 致远 OA A8远程Getshell/oaupload.py:38
POST /struts2_showcase_war/hello.action
- Body markers
name=%inapplication/x-www-form-urlencoded- Ports
- 8080
- Seen in
- 1 repo: ka1n4t/CVE-2020-17530
- Evidence
- ka1n4t/CVE-2020-17530/s2-061.py:8
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/\?(?:.*&)?id=%\{\('Powered_by_Unicode_Potats0,enjoy_it'\)\.\(#UnicodeSec = #application\['org\.apache\.tomcat\.InstanceManager'\]\)\.\(#potats0=#UnicodeSec\.newInstance\('org\.apache\.commons\.collections\.BeanMap'\)\)\.\(#stackvalue=#attr\['struts\.valueStack'\]\)\.\(#potats0\.setBean\(#stackvalue\)\)\.\(#context=#potats0\.get\('context'\)\)\.\(#potats0\.setBean\(#context\)\)\.\(#sm=#potats0\.get\('memberAccess'\)\)\.\(#emptySet=#UnicodeSec\.newInstance\('java\.util\.HashSet'\)\)\.\(#potats0\.setBean\(#sm\)\)\.\(#potats0\.put\('excludedClasses',#emptySet\)\)\.\(#potats0\.put\('excludedPackageNames',#emptySet\)\)\.\(#exec=#UnicodeSec\.newInstance\('freemarker\.template\.utility\.Execute'\)\)\.\(#cmd=\{'.*id=.*id=/\?id=%\{\('Powered_by_Unicode_Potats0,enjoy_it'\)\.\(#UnicodeSec = #application\['org\.apache\.tomcat\.InstanceManager'\]\)\.\(#potats0=#UnicodeSec\.newInstance\('org\.apache\.commons\.collections\.BeanMap'\)\)\.\(#stackvalue=#attr\['struts\.valueStack'\]\)\.\(#potats0\.setBean\(#stackvalue\)\)\.\(#context=#potats0\.get\('context'\)\)\.\(#potats0\.setBean\(#context\)\)\.\(#sm=#potats0\.get\('memberAccess'\)\)\.\(#emptySet=#UnicodeSec\.newInstance\('java\.util\.HashSet'\)\)\.\(#potats0\.setBean\(#sm\)\)\.\(#potats0\.put\('excludedClasses',#emptySet\)\)\.\(#potats0\.put\('excludedPackageNames',#emptySet\)\)\.\(#exec=#UnicodeSec\.newInstance\('freemarker\.template\.utility\.Execute'\)\)\.\(#cmd=\{'
(?i)^/SimpleStruts_war_exploded/S2061\.action(?:[?#].*)?$
(?i)^/seeyon/PeiQi\.jspx(?:[?#].*)?$
(?i)^/seeyon/htmlofficeservlet(?:[?#].*)?$
(?i)^/seeyon/thirdpartyController\.do\.css/\.\.;/ajax\.do(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET [8080,8081] (msg:"GG PoC-Monitor CVE-2020-17530 Apache Software Foundation Apache Struts exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"id=%{('Powered_by_Unicode_Potats0,enjoy_it').(#UnicodeSec = #application['org.apache.tomcat.InstanceManager']).(#potats0=#UnicodeSec.newInstance('org.apache.commons.collections.BeanMap')).(#stackvalue=#attr['struts.valueStack']).(#potats0.setBean(#stackvalue)).(#context=#potats0.get('context')).(#potats0.setBean(#context)).(#sm=#potats0.get('memberAccess')).(#emptySet=#UnicodeSec.newInstance('java.util.HashSet')).(#potats0.setBean(#sm)).(#potats0.put('excludedClasses',#emptySet)).(#potats0.put('excludedPackageNames',#emptySet)).(#exec=#UnicodeSec.newInstance('freemarker.template.utility.Execute')).(#cmd={'"; http.uri; content:"id="; http.uri; content:"id=/?id=%{('Powered_by_Unicode_Potats0,enjoy_it').(#UnicodeSec = #application['org.apache.tomcat.InstanceManager']).(#potats0=#UnicodeSec.newInstance('org.apache.commons.collections.BeanMap')).(#stackvalue=#attr['struts.valueStack']).(#potats0.setBean(#stackvalue)).(#context=#potats0.get('context')).(#potats0.setBean(#context)).(#sm=#potats0.get('memberAccess')).(#emptySet=#UnicodeSec.newInstance('java.util.HashSet')).(#potats0.setBean(#sm)).(#potats0.put('excludedClasses',#emptySet)).(#potats0.put('excludedPackageNames',#emptySet)).(#exec=#UnicodeSec.newInstance('freemarker.template.utility.Execute')).(#cmd={'"; reference:url,poc.griffinguard.io/cve/CVE-2020-17530; classtype:web-application-attack; sid:9177286; rev:1;)
alert http any any -> $HOME_NET [8080] (msg:"GG PoC-Monitor CVE-2020-17530 Apache Software Foundation Apache Struts exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/SimpleStruts_war_exploded/S2061.action"; http.header; content:"Accept-Language: zh-CN,zh|3b|q=0.9"; nocase; http.header; content:"Cookie: JSESSIONID=0DD7F8E6B11D062C574037318DC36C2D"; nocase; http.request_body; content:"------WebKitFormBoundaryl7d1B1aGsV2wcZwF Content-Disposition: form-data|3b| name=|22|id|22|"; reference:url,poc.griffinguard.io/cve/CVE-2020-17530; classtype:web-application-attack; sid:9339551; rev:1;)
alert http any any -> $HOME_NET [8080] (msg:"GG PoC-Monitor CVE-2020-17530 Apache Software Foundation Apache Struts exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/seeyon/PeiQi.jspx"; reference:url,poc.griffinguard.io/cve/CVE-2020-17530; classtype:web-application-attack; sid:9320799; rev:1;)
alert http any any -> $HOME_NET [8080] (msg:"GG PoC-Monitor CVE-2020-17530 Apache Software Foundation Apache Struts exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/seeyon/htmlofficeservlet"; reference:url,poc.griffinguard.io/cve/CVE-2020-17530; classtype:web-application-attack; sid:9668572; rev:1;)
alert http any any -> $HOME_NET [8080] (msg:"GG PoC-Monitor CVE-2020-17530 Apache Software Foundation Apache Struts exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/seeyon/thirdpartyController.do.css/..|3b|/ajax.do"; reference:url,poc.griffinguard.io/cve/CVE-2020-17530; classtype:web-application-attack; sid:9112697; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: Apache Software Foundation Apache Struts exploit attempt (CVE-2020-17530)
id: gg-pocmon-cve-2020-17530-9177286
status: experimental
description: Request pattern taken from public PoCs for CVE-2020-17530. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2020-17530
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-query|contains|all:
- 'id=%{(''Powered_by_Unicode_Potats0,enjoy_it'').(#UnicodeSec = #application[''org.apache.tomcat.InstanceManager'']).(#potats0=#UnicodeSec.newInstance(''org.apache.commons.collections.BeanMap'')).(#stackvalue=#attr[''struts.valueStack'']).(#potats0.setBean(#stackvalue)).(#context=#potats0.get(''context'')).(#potats0.setBean(#context)).(#sm=#potats0.get(''memberAccess'')).(#emptySet=#UnicodeSec.newInstance(''java.util.HashSet'')).(#potats0.setBean(#sm)).(#potats0.put(''excludedClasses'',#emptySet)).(#potats0.put(''excludedPackageNames'',#emptySet)).(#exec=#UnicodeSec.newInstance(''freemarker.template.utility.Execute'')).(#cmd={'''
- 'id='
- 'id=/?id=%{(''Powered_by_Unicode_Potats0,enjoy_it'').(#UnicodeSec = #application[''org.apache.tomcat.InstanceManager'']).(#potats0=#UnicodeSec.newInstance(''org.apache.commons.collections.BeanMap'')).(#stackvalue=#attr[''struts.valueStack'']).(#potats0.setBean(#stackvalue)).(#context=#potats0.get(''context'')).(#potats0.setBean(#context)).(#sm=#potats0.get(''memberAccess'')).(#emptySet=#UnicodeSec.newInstance(''java.util.HashSet'')).(#potats0.setBean(#sm)).(#potats0.put(''excludedClasses'',#emptySet)).(#potats0.put(''excludedPackageNames'',#emptySet)).(#exec=#UnicodeSec.newInstance(''freemarker.template.utility.Execute'')).(#cmd={'''
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2020.17530
title: Apache Software Foundation Apache Struts exploit attempt (CVE-2020-17530)
id: gg-pocmon-cve-2020-17530-9339551
status: experimental
description: Request pattern taken from public PoCs for CVE-2020-17530. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2020-17530
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/SimpleStruts_war_exploded/S2061.action'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2020.17530
title: Apache Software Foundation Apache Struts exploit attempt (CVE-2020-17530)
id: gg-pocmon-cve-2020-17530-9320799
status: experimental
description: Request pattern taken from public PoCs for CVE-2020-17530. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2020-17530
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/seeyon/PeiQi.jspx'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2020.17530
title: Apache Software Foundation Apache Struts exploit attempt (CVE-2020-17530)
id: gg-pocmon-cve-2020-17530-9668572
status: experimental
description: Request pattern taken from public PoCs for CVE-2020-17530. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2020-17530
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/seeyon/htmlofficeservlet'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2020.17530
title: Apache Software Foundation Apache Struts exploit attempt (CVE-2020-17530)
id: gg-pocmon-cve-2020-17530-9112697
status: experimental
description: Request pattern taken from public PoCs for CVE-2020-17530. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2020-17530
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/seeyon/thirdpartyController.do.css/..;/ajax.do'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2020.17530