CVE-2021-31805
Forced OGNL evaluation, when evaluated on raw not validated user input in tag attributes, may lead to RCE.
Description
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.
Official description from the CVE record, published by apache. Copyright © 1999-2026 The MITRE Corporation. See /security/cve/legal for the CVE license. View the record on cve.org
Key data
EPSS
- Score
- 0.85433 (85.4% probability)
- Percentile
- 99.7%
- Scores of
- Nov 10, 2026
- Model
- v2026.06.15
Weakness (CWE)
- CWE-917Improper Neutralization of Special Elements used in an Expression Language Statement
Affected products
Apache Struts
- affected: 2.0.0 to 2.5.29
References
- cwiki.apache.org/confluence/display/WW/S2-062
- [oss-security] 20220412 CVE-2021-31805: Apache Struts: Forced OGNL evaluation, when evaluated on raw not validated user input in tag attributes, may lead to RCE. (openwall.com)mailing-list
- oracle.com/security-alerts/cpujul2022.html
- security.netapp.com/advisory/ntap-20220420-0001
Timeline
- ID reserved
- Record published
- Record last updated
Look up another CVE
About CubePath
Data from the CVE Program (MITRE), CISA KEV and FIRST EPSS. CVSS is owned by FIRST and used by permission. Not affiliated with or endorsed by MITRE, CISA or FIRST. Data as of Nov 10, 2026, 19:53 UTC. Sources and licenses