--- title: "CVE-2021-31805: Forced OGNL evaluation, when evaluated… | CubePath" 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…" language: en source: https://cubepath.com/security/cve/CVE-2021-31805 --- # CVE-2021-31805: Forced OGNL evaluation, when evaluated… | CubePath ## 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](https://cubepath.com/security/cve/legal) for the CVE license. [View the record on cve.org](https://www.cve.org/CVERecord?id=CVE-2021-31805) ## Key data ### EPSS Exploit Prediction Scoring System by FIRST: an estimate of the probability that exploitation activity will be observed in the next 30 days. Score 0.85433 (85.4% probability) Percentile 99.7% Scores of Nov 10, 2026 Model v2026.06.15 ### Weakness (CWE) CWE catalog version 5.0. CWE names: Copyright © 2006-2026, The MITRE Corporation. See [/security/cve/legal](https://cubepath.com/security/cve/legal) for the CWE license. - [CWE-917](https://cwe.mitre.org/data/definitions/917.html) Improper Neutralization of Special Elements used in an Expression Language Statement ## Affected products Products listed in the CVE record, as the CNA published them. - Apache Struts - affected: 2.0.0 to 2.5.29 ## References Links listed in the CVE record. They lead to other sites, which CubePath does not control. - [cwiki.apache.org/confluence/display/WW/S2-062](https://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.](http://www.openwall.com/lists/oss-security/2022/04/12/6) (openwall.com) mailing-list - [oracle.com/security-alerts/cpujul2022.html](https://www.oracle.com/security-alerts/cpujul2022.html) - [security.netapp.com/advisory/ntap-20220420-0001](https://security.netapp.com/advisory/ntap-20220420-0001/) ## Timeline 1. ID reserved Apr 26, 2021 2. Record published Apr 12, 2022 3. Record last updated Aug 3, 2024 ## Look up another CVE ## About CubePath CubePath is a cloud provider with data centers in Europe and the United States. It offers VPS, bare metal servers and DDoS protection. [Cloud VPS](https://cubepath.com/vps) [DDoS protection](https://cubepath.com/ddos-protection) 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, 20:05 UTC. [Sources and licenses](https://cubepath.com/security/cve/legal)