{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2021-31805","published":"2022-04-12T16:15:08.133000Z","last_modified":"2026-06-17T03:52:15.950000Z","status":"Modified","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","source":"nvd@nist.gov","primary":true},"auth":false,"cwes":["CWE-917"],"cpes":[{"criteria":"cpe:2.3:a:apache:struts:*:*:*:*:*:*:*:*","part":"a","vendor":"apache","product":"struts","version_start_including":"2.0.0","version_end_including":"2.5.29"}],"cpes_truncated":false,"vendors":["apache"],"products":["apache/struts"],"epss":{"score":0.85433,"percentile":0.99809,"date":"2026-11-29","model_version":"v2026.06.15"},"cat":"server","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-v8j6-6c2r-r27c","ecosystem":"Maven","name":"org.apache.struts:struts2-core","purl":"pkg:maven/org.apache.struts/struts2-core","ranges":[{"introduced":"2.0.0","fixed":"2.5.30"}],"versions":["2.0.11","2.0.11.1","2.0.11.2","2.0.12","2.0.14","2.0.5","2.0.6","2.0.8","2.0.9","2.1.2","2.1.6","2.1.8","2.1.8.1","2.2.1","2.2.1.1","2.2.3","2.2.3.1","2.3.1","2.3.1.1","2.3.1.2","2.3.12","2.3.14","2.3.14.1","2.3.14.2","2.3.14.3","2.3.15","2.3.15.1","2.3.15.2","2.3.15.3","2.3.16","2.3.16.1","2.3.16.2","2.3.16.3","2.3.20","2.3.20.1","2.3.20.3","2.3.24","2.3.24.1","2.3.24.3","2.3.28","2.3.28.1","2.3.29","2.3.3","2.3.30","2.3.31","2.3.32","2.3.33","2.3.34","2.3.35","2.3.36","2.3.37","2.3.4","2.3.4.1","2.3.7","2.3.8","2.5","2.5-BETA1","2.5-BETA2","2.5-BETA3","2.5.1","2.5.10","2.5.10.1","2.5.12","2.5.13","2.5.14","2.5.14.1","2.5.16","2.5.17","2.5.18","2.5.2","2.5.20","2.5.22","2.5.25","2.5.26","2.5.27","2.5.28","2.5.28.1","2.5.28.2","2.5.28.3","2.5.29","2.5.5","2.5.8"],"versions_truncated":false}],"severity":"critical","priority_score":82,"links":{"html_es":"/es/cve/CVE-2021-31805/","html_en":"/en/cve/CVE-2021-31805/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-31805","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-31805"},"untrusted":{"vendor_name":"Apache","product_name":"Struts","desc_en":"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.","affected":[{"untrusted_vendor":"Apache Software Foundation","untrusted_product":"Apache Struts","versions":[]}],"references":[{"url":"http://www.openwall.com/lists/oss-security/2022/04/12/6","tags":["Mailing List","Mitigation","Third Party Advisory"]},{"url":"https://cwiki.apache.org/confluence/display/WW/S2-062","tags":["Mitigation","Patch","Vendor Advisory"]},{"url":"https://security.netapp.com/advisory/ntap-20220420-0001/","tags":["Third Party Advisory"]},{"url":"https://www.oracle.com/security-alerts/cpujul2022.html","tags":[]}]}}