Apache Software Foundation Apache Struts
Apache Struts Remote Code Execution Vulnerability
Apache Struts versions 2.3 to 2.3.34 and 2.5 to 2.5.16 suffer from possible Remote Code Execution when alwaysSelectFullNamespace is true (either by user or a plugin like Convention Plugin) and then: results are used with no namespace and in same time, its upper package have no or wildcard namespace and similar to results, same possibility when using url tag which doesn't have value and action set and in same time, its upper package have no or wildcard namespace.
Affected versions and mitigation
From the CVE record, GitHub Security Advisories and the vendor's references.Affected
- >= 2.0.4, < 2.3.35
Fixed in 2.3.35
from GitHub Security Advisory GHSA-cr6j-3jp9-rw65
- >= 2.5, < 2.5.17
Fixed in 2.5.17
from GitHub Security Advisory GHSA-cr6j-3jp9-rw65
Mitigation
Upgrade org.apache.struts:struts2-core to 2.3.35 or later.
Upgrade org.apache.struts:struts2-core to 2.5.17 or later.
Timeline
Days relative to CVE publicationFirst public PoC 1.3 days after publication; added to CISA KEV 3.2 years after publication. First PoC: xfox64x/CVE-2018-11776 (created 23 Aug 2018, found by us: backfilled).
PoC repositories
Found on GitHub.22 PoCs · 2 pending · 4 informational · 3 suspicious or fake
PoCs 22
Pending 2
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| Fnzer0/S2-057-poc | 24 Aug 2018 +2 d | 13 | Pending · repository exceeds size limit via PoC Index |
| trbpnd/CVE-2018-11776 | unknown | 0 | Pending · repository unavailable (HTTP 404) |
Informational 4
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| bhdresh/CVE-2018-11776 | 25 Aug 2018 +2.6 d | 12 | Informational · write-up |
| Steven1ay/S2-057 | 23 Nov 2018 +93 d | 0 | Informational · write-up |
| cved-sources/cve-2018-11776 | 6 Jan 2019 +137 d | 1 | Informational · write-up
Flags · score 30
Below the suspicion threshold (50); does not change the assessment. |
| cucadili/CVE-2018-11776 | 8 Oct 2019 +1.1 y | 0 | Informational · detection |
Suspicious or fake 3
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| hook-s3c/CVE-2018-11776-Python-PoC | 24 Aug 2018 +2 d | 123 | Suspicious · score 60
Why suspicious
|
| Ekultek/Strutter | 27 Aug 2018 +5.2 d | 21 | Fake |
| sanyaade-teachings/securicad-enterprise-sdk | 12 Aug 2022 +4.0 y | 0 | Fake |
Only PoCs count toward the first-PoC date and the characteristics below. Suspicious repositories (score ≥ 50) never count. 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) | 45260 | unknown | 14 Nov 2026 |
| CVE record (tagged exploit) | 45262 | unknown | 14 Nov 2026 |
| CVE record (tagged exploit) | 45367 | unknown | 14 Nov 2026 |
| Exploit-DB | Apache Struts 2.3 < 2.3.34 / 2.5 < 2.5.16 - Remote Code Execution (1) | 26 Aug 2018 | 14 Nov 2026 |
| Exploit-DB | Apache Struts 2.3 < 2.3.34 / 2.5 < 2.5.16 - Remote Code Execution (2) | 25 Aug 2018 | 14 Nov 2026 |
| Exploit-DB | Apache Struts 2 - Namespace Redirect OGNL Injection (Metasploit) | 10 Sep 2018 | 14 Nov 2026 |
| Metasploit | Metasploit exploit: Apache Struts 2 Namespace Redirect OGNL Injection (exploit/multi/http/struts2_namespace_ognl) | 31 Aug 2018 | 14 Nov 2026 |
| nuclei template | nuclei template: Apache Struts2 S2-057 - Remote Code Execution | 27 Apr 2023 | 14 Nov 2026 |
PoC characteristics
What to hunt for in your logs · from 23 PoC reposPOST /
- Body markers
id=%inapplication/x-www-form-urlencoded- Ports
- 8080
- Seen in
- 4 repos: hy30nq/WHS_Struts2-S2-059-, hyeonql/WHS, hyeonql/WHS_Struts2-S2-059-, techgyu/WHS
- Evidence
- hy30nq/WHS_Struts2-S2-059-/POC.py:20 hy30nq/WHS_Struts2-S2-059-/POC.py:25 hyeonql/WHS/POC.py:20 hyeonql/WHS/POC.py:25 hyeonql/WHS_Struts2-S2-059-/POC.py:20 hyeonql/WHS_Struts2-S2-059-/POC.py:25
GET /{var}/help.action
GET /{var}/actionChain1.action
- Ports
- 8080
- Seen in
- 1 repo: m4sk0ff/CVE-2018-11776
- Evidence
- m4sk0ff/CVE-2018-11776/bashexploit.py:30 m4sk0ff/CVE-2018-11776/bashexploit.py:34
GET /{var}/chain.action
- Seen in
- 1 repo: knqyf263/CVE-2018-11776
- Evidence
- knqyf263/CVE-2018-11776/exploit.py:32
GET /{var}/help.action'%(r1,r2)
- Seen in
- 1 repo: 649/Apache-Struts-Shodan-Exploit
- Evidence
- 649/Apache-Struts-Shodan-Exploit/Struts.py:92
GET /{var}/index.action'%(r1,r2)
- Seen in
- 1 repo: jiguangsdf/CVE-2018-11776
- Evidence
- jiguangsdf/CVE-2018-11776/s2-057.py:37
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/(?:[?#].*)?$
(?i)^/[^/?#]*/help\.action(?:[?#].*)?$
(?i)^/[^/?#]*/actionChain1\.action(?:[?#].*)?$
(?i)^/[^/?#]*/chain\.action(?:[?#].*)?$
(?i)^/[^/?#]*/help\.action'%\(r1,r2\)(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET [8080] (msg:"GG PoC-Monitor CVE-2018-11776 Apache Software Foundation Apache Struts exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.request_body; content:"id=%"; reference:url,poc.griffinguard.io/cve/CVE-2018-11776; classtype:web-application-attack; sid:9557189; rev:1;)
alert http any any -> $HOME_NET [8080] (msg:"GG PoC-Monitor CVE-2018-11776 Apache Software Foundation Apache Struts exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/help.action"; reference:url,poc.griffinguard.io/cve/CVE-2018-11776; classtype:web-application-attack; sid:9280082; rev:1;)
alert http any any -> $HOME_NET [8080] (msg:"GG PoC-Monitor CVE-2018-11776 Apache Software Foundation Apache Struts exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/actionChain1.action"; reference:url,poc.griffinguard.io/cve/CVE-2018-11776; classtype:web-application-attack; sid:9809877; rev:1;)
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2018-11776 Apache Software Foundation Apache Struts exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/chain.action"; reference:url,poc.griffinguard.io/cve/CVE-2018-11776; classtype:web-application-attack; sid:9388262; rev:1;)
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2018-11776 Apache Software Foundation Apache Struts exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/help.action'%(r1,r2)"; reference:url,poc.griffinguard.io/cve/CVE-2018-11776; classtype:web-application-attack; sid:9561068; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: Apache Software Foundation Apache Struts exploit attempt (CVE-2018-11776)
id: gg-pocmon-cve-2018-11776-9557189
status: experimental
description: Request pattern taken from public PoCs for CVE-2018-11776. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2018-11776
logsource:
category: webserver
detection:
selection:
cs-method: POST
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2018.11776
title: Apache Software Foundation Apache Struts exploit attempt (CVE-2018-11776)
id: gg-pocmon-cve-2018-11776-9280082
status: experimental
description: Request pattern taken from public PoCs for CVE-2018-11776. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2018-11776
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/help.action'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2018.11776
title: Apache Software Foundation Apache Struts exploit attempt (CVE-2018-11776)
id: gg-pocmon-cve-2018-11776-9809877
status: experimental
description: Request pattern taken from public PoCs for CVE-2018-11776. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2018-11776
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/actionChain1.action'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2018.11776
title: Apache Software Foundation Apache Struts exploit attempt (CVE-2018-11776)
id: gg-pocmon-cve-2018-11776-9388262
status: experimental
description: Request pattern taken from public PoCs for CVE-2018-11776. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2018-11776
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/chain.action'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2018.11776
title: Apache Software Foundation Apache Struts exploit attempt (CVE-2018-11776)
id: gg-pocmon-cve-2018-11776-9561068
status: experimental
description: Request pattern taken from public PoCs for CVE-2018-11776. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2018-11776
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/help.action''%(r1,r2)'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2018.11776