# CVE-2021-31805: Forced OGNL evaluation, when evaluated on raw not validated user input in tag attributes, may lead to RCE.

- Priority: **Prioritise**
- Reason: Severe, CVSS 9.8 (NVD); no exploitation reported by the 5 checked sources; EPSS 85% (FIRST, 04-12-2026)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2022-04-12 · Modified: 2024-08-03
- Aliases: GHSA-v8j6-6c2r-r27c
- Record: https://cvemate.com/vulnerability/CVE-2021-31805 · JSON: https://cvemate.com/vulnerability/CVE-2021-31805/json

## Description

```text
The fix issued for CVE-2020-17530 was incomplete. So from Apache Struts 2.0.0 to 2.5.29, still some of the tag’s attributes could perform a double evaluation if a developer applied forced OGNL evaluation by using the %{...} syntax. Using forced OGNL evaluation on untrusted user input can lead to a Remote Code Execution and security degradation.
```

## Signals

- CVSS: 9.8 critical (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS: 85.433%, percentile 99.72%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- apache software foundation apache struts: 2.0.0 to 2.5.29
- apache struts: ≥ 2.0.0, ≤ 2.5.29
- org.apache.struts struts2-core (Maven): ≥ 2.0.0, \< 2.5.30

## References

- <https://cwiki.apache.org/confluence/display/WW/S2-062>
- <http://www.openwall.com/lists/oss-security/2022/04/12/6>
- <https://www.oracle.com/security-alerts/cpujul2022.html>
- <https://security.netapp.com/advisory/ntap-20220420-0001/>
- <https://nvd.nist.gov/vuln/detail/CVE-2021-31805>
- <https://security.netapp.com/advisory/ntap-20220420-0001>

---

Data as of 2026-12-05T06:43:05.327Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
