Description
Apache Struts 2.0.0 to 2.5.20 forced double OGNL evaluation, when evaluated on raw user input in tag attributes, may lead to remote code execution.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| — | Apache Struts | Apache Struts 2.0.0 to 2.5.20 | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Metasploit 1 module
-
Apache Struts 2 Forced Multi OGNL Evaluation
exploit/multi/http/struts2_multi_eval_ognl
Exploit-DB 1
- Apache Struts 2.5.20 - Double OGNL evaluation EDB-49068 · remote · Nov 17, 2020
GitHub 4 repositories
-
ramoncjs3/CVE-2019-0230 ★ 34 · Aug 20, 2020
CVE-2019-0230 & s2-059 poc.
-
PrinceFPF/CVE-2019-0230 ★ 15 · Aug 13, 2020
CVE-2019-0230 Exploit POC
-
Al1ex/CVE-2019-0230 ★ 9 · Dec 11, 2020
S2-059(CVE-2019-0230)
-
f8al/CVE-2019-0230-PoC ★ 1 · Oct 22, 2020
PoC for apache struts 2 vuln cve-2019-0230
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Automated scanner template
A ready-made Nuclei template detects this vulnerability automatically. Vulnerabilities with public scanner templates are typically probed across the internet soon after the template appears — exposed systems should be patched first.
- Apache Struts <=2.5.20 - Remote Code Execution http/cves/2019/CVE-2019-0230.yaml
Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Maven | org.apache.struts:struts2-core | >= 2.0.0, < 2.5.22 | 2.5.22 | GHSA-wp4h-pvgw-5727 |
References
- https://cwiki.apache.org/confluence/display/ww/s2-059
- https://www.oracle.com/security-alerts/cpujan2021.html
- http://packetstormsecurity.com/files/160108/Apache-Struts-2.5.20-Double-OGNL-Evaluation.html
- https://launchpad.support.sap.com/#/notes/2982840
- http://packetstormsecurity.com/files/160721/Apache-Struts-2-Forced-Multi-OGNL-Evaluation.html
- [announce] 20210125 Apache Software Foundation Security Report: 2020 mailing-list
- [announce] 20210223 Re: Apache Software Foundation Security Report: 2020 mailing-list
- https://www.oracle.com/security-alerts/cpuApr2021.html
- https://www.oracle.com/security-alerts/cpuoct2021.html