{"id":"CVE-2021-31805","url":"https://www.cyber-defence.io/tools/cve/CVE-2021-31805","generatedAt":"2026-11-05T00:28:45.663Z","title":"Using forced OGNL evaluation on untrusted user input can lead to a Remote Code Execution and security degradation.","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.","published":"2022-04-12T16:15:08.000Z","lastModified":"2026-06-17T03:52:16.000Z","status":"Modified","sourceIdentifier":"security@apache.org","cvss":{"version":"3.1","score":9.8,"severity":"CRITICAL","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},"cwe":["CWE-917"],"affected":["apache/struts"],"epss":{"score":0.85433,"percentile":0.9972,"date":"2026-11-03","history":[]},"kev":{"listed":false},"exploits":{"count":0,"verified":false,"firstPublished":null,"source":"Exploit-DB (https://gitlab.com/exploit-database/exploitdb)","entries":[]},"verdict":{"level":"urgent","text":"EPSS puts the probability of exploitation in the next 30 days at 85.4%, higher than 100% of all known CVEs. Patch or mitigate before the next change window."},"changes":[],"references":[{"url":"http://www.openwall.com/lists/oss-security/2022/04/12/6","tags":["Mailing List","Mitigation","Third Party Advisory"],"source":"security@apache.org"},{"url":"https://cwiki.apache.org/confluence/display/WW/S2-062","tags":["Mitigation","Patch","Vendor Advisory"],"source":"security@apache.org"},{"url":"https://security.netapp.com/advisory/ntap-20220420-0001/","tags":["Third Party Advisory"],"source":"security@apache.org"},{"url":"https://www.oracle.com/security-alerts/cpujul2022.html","source":"security@apache.org"},{"url":"http://www.openwall.com/lists/oss-security/2022/04/12/6","tags":["Mailing List","Mitigation","Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://cwiki.apache.org/confluence/display/WW/S2-062","tags":["Mitigation","Patch","Vendor Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://security.netapp.com/advisory/ntap-20220420-0001/","tags":["Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://www.oracle.com/security-alerts/cpujul2022.html","source":"af854a3a-2127-422b-91ae-364da2661108"}],"sources":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-31805","epss":"https://www.first.org/epss/","kev":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","exploitdb":"https://www.exploit-db.com/"},"licence":"CC BY 4.0 — link back to the CVE Explorer if you publish the results; upstream data remains subject to its own terms."}