{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2021-31805","id":"CVE-2021-31805","title":"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.","descriptionLong":"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-12T15:25:11.000Z","updated":"2026-10-24T10:30:47.030600228Z","reserved":"2021-04-26T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"apache","metric":{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"NVD"},"metrics":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"NVD"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"OSV"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"GitHub"},{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","rating":"high","source":"NVD"}],"rating":"critical","products":["Apache Software Foundation Apache Struts"],"affectedProducts":[{"vendor":"Apache Software Foundation","product":"Apache Struts","defaultStatus":null,"versions":[{"status":"affected","version":"2.0.0 to 2.5.29"}],"platforms":[]}],"packages":[{"ecosystem":"Maven","name":"org.apache.struts:struts2-core","purl":"pkg:maven/org.apache.struts/struts2-core","ranges":[">=2.0.0 <2.5.30"],"fixed":["2.5.30"],"advisory":"GHSA-v8j6-6c2r-r27c"}],"cwes":["CWE-917"],"aliases":["GHSA-v8j6-6c2r-r27c"],"references":[{"url":"https://cwiki.apache.org/confluence/display/WW/S2-062","tags":["x_refsource_MISC","x_transferred","Mitigation","Patch","Vendor Advisory","fix","web"]},{"url":"http://www.openwall.com/lists/oss-security/2022/04/12/6","tags":["mailing-list","x_refsource_MLIST","x_transferred","Mailing List","Mitigation","Third Party Advisory","advisory","web"]},{"url":"https://www.oracle.com/security-alerts/cpujul2022.html","tags":["x_refsource_MISC","x_transferred","web"]},{"url":"https://security.netapp.com/advisory/ntap-20220420-0001/","tags":["x_refsource_CONFIRM","x_transferred","Third Party Advisory","advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-31805","tags":["advisory"]},{"url":"https://security.netapp.com/advisory/ntap-20220420-0001","tags":["web"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.85433,"epssPercentile":0.99726,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2021-31805","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-31805","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2021-31805","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-v8j6-6c2r-r27c","ok":true,"note":"GHSA-v8j6-6c2r-r27c"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2021-31805","ok":true,"note":"scored 2026-11-20"}],"aiTitle":false,"tech":["struts"],"critical":["CVSS 9.8 in a widely used technology","EPSS 85% with CVSS 9.8"],"attention":null}