{"id":"CVE-2021-31805","aliases":["CVE-2021-31805","GHSA-v8j6-6c2r-r27c"],"related":[],"kind":"vulnerability","state":"published","title":"Forced OGNL evaluation, when evaluated on raw not validated user input in tag attributes, may lead to RCE.","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"La corrección emitida para CVE-2020-17530 era incompleta. Así, desde Apache Struts versiones 2.0.0 hasta 2.5.29, todavía algunos de los atributos de las etiquetas podían llevar a cabo una doble evaluación si un desarrollador aplicaba la evaluación OGNL forzada usando la sintaxis %{...}. El uso de la evaluación forzada de OGNL en entradas de usuario no confiables puede conllevar a una Ejecución de Código Remota y una degradación de la seguridad","source":"nvd"}],"published":"2022-04-12T15:25:11.000Z","modified":"2026-06-17T03:52:15.950Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","score":7.5,"rating":"HIGH"}],"cwes":["CWE-917"],"affected":[{"ranges":[{"version":"2.0.0 to 2.5.29","status":"affected"}],"vendor":"Apache Software Foundation","product":"Apache Struts","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"2.0.0","status":"affected","fixed":"2.5.30"}],"ecosystem":"Maven","package":"org.apache.struts:struts2-core","purl":"pkg:maven/org.apache.struts/struts2-core","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"2.0.0","lastAffected":"2.5.29"}],"vendor":"apache","product":"struts","cpe":"cpe:2.3:a:apache:struts:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://cwiki.apache.org/confluence/display/WW/S2-062","tags":["mitigation","patch","vendor-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"http://www.openwall.com/lists/oss-security/2022/04/12/6","tags":["mailing-list","mitigation","third-party-advisory","web","x-refsource-mlist","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://www.oracle.com/security-alerts/cpujul2022.html","tags":["web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://security.netapp.com/advisory/ntap-20220420-0001/","tags":["third-party-advisory","x-refsource-confirm","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-31805","tags":["advisory"],"sources":["ghsa"]},{"url":"https://security.netapp.com/advisory/ntap-20220420-0001","tags":["web"],"sources":["ghsa"]}],"credits":["Apache Struts would like to thank Chris McCown for reporting this issue!"],"assigner":"apache","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-31805","url":"https://www.cve.org/CVERecord?id=CVE-2021-31805","licence":"CVE Terms of Use","modified":"2024-08-03T23:10:30.193Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-v8j6-6c2r-r27c","url":"https://github.com/advisories/GHSA-v8j6-6c2r-r27c","licence":"CC-BY-4.0","modified":"2024-02-20T05:22:46.454Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-31805","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-31805","licence":"Public domain","modified":"2026-06-17T03:52:15.950Z"}],"updatedAt":"2026-11-25T22:58:07.367Z","epss":{"score":0.85433,"percentile":0.99721,"date":"2026-12-01T12:00:22.000Z"}}