CVE-2021-31805

Summary

CVECVE-2021-31805
StatePUBLIC
Assigner[email protected]
Source PriorityCVE Program / NVD first with legacy fallback
Published2022-04-12 16:15:00 UTC
Updated2022-07-25 18:15:00 UTC
DescriptionThe 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.

Risk And Classification

Problem Types: CWE-917

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Application Apache Struts All All All All

References

ReferenceSourceLinkTags
S2-062 - Apache Struts 2 Wiki - Apache Software Foundation MISC cwiki.apache.org
CVE-2021-31805 Apache Struts Vulnerability in NetApp Products | NetApp Product Security CONFIRM security.netapp.com
oss-security - CVE-2021-31805: Apache Struts: Forced OGNL evaluation, when evaluated on raw not validated user input in tag attributes, may lead to RCE. MLIST www.openwall.com
Oracle Critical Patch Update Advisory - July 2022 N/A www.oracle.com
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Vendor Comments And Credit

Discovery Credit

LEGACY: Apache Struts would like to thank Chris McCown for reporting this issue!

Legacy QID Mappings

  • 150504 Apache Struts 2 Remote Code Execution Vulnerability (CVE-2021-31805)
  • 376539 Apache Struts2 Remote Code Execution (RCE) Vulnerability (S2-062)
  • 376540 Apache Struts2 Remote Code Execution (RCE) Vulnerability (S2-062) (Tomcat Server Authentication Record)
© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

CVE.report and Source URL Uptime Status status.cve.report