CVE-2019-0230 Improperly Controlled Modification of Dynamically-Determined Object Attributes in Apache Struts
Attackers can execute arbitrary code remotely by exploiting forced double OGNL evaluation in Apache Struts tag attributes.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2019-0230?
CVE-2019-0230 is a critical code injection vulnerability in Apache Struts, published on 14 Sep 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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.
Weakness: CWE-1321
Which versions are affected by CVE-2019-0230?
2 open source packages ship an affected version, including org.apache.struts:struts2-core. It affects 5 products.
| Package | Affected | Fixed in |
|---|---|---|
org.apache.struts:struts2-core Maven | From 2.0.0 | 2.5.22 |
org.apache.struts:struts2-core Maven | From 2.0.0 | 2.5.22 |
Products include Apache Struts, Oracle Communications Policy Management, Oracle Financial Services Data Integration Hub, Oracle Financial Services Market Risk Measurement and Management, Oracle Mysql Enterprise Monitor.
How do I fix CVE-2019-0230?
Upgrade org.apache.struts:struts2-core to 2.5.22 or later.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2019-0230 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2019-0230 exists.
Public exploit code: 1 Metasploit module, 1 Exploit-DB entry, 1 Nuclei template and 4 proofs of concept on GitHub.
Other vulnerabilities in Apache Struts
Sources
Also known as GHSA-wp4h-pvgw-5727.