Skip to main content
← All vulnerabilities
CVE-2021-31805GHSA-V8J6-6C2R-R27C

Forced OGNL evaluation, when evaluated on raw not validated user input in tag attributes, may lead to RCE.

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 2.5.30
8 proofs of concept on GitHub, 1 Nuclei template

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.

Timeline

  1. CVE published
  2. Record last updated
  3. EPSS reached 10%

    FIRST estimates at least a 10% chance of exploitation in the next 30 days

Affected versions

  • Apache Software Foundation Apache Struts

    2.0.0 to 2.5.29

  • org.apache.struts:struts2-coreMaven

    From 2.0.0 · fixed in 2.5.30

References 13

cwiki.apache.org

openwall.com

oracle.com

security.netapp.com

GitHub · projectdiscovery/nuclei-templates

GitHub · JordanANDJohn/CVE-2021-31805-POC

GitHub · SecNN/Struts2_S2-062_CVE-2021-31805

GitHub · Wrin9/CVE-2021-31805

GitHub · aeyesec/CVE-2021-31805

GitHub · jax7sec/S2-062

GitHub · nth347/struts2-CVE-2021-31805

GitHub · pyroxenites/s2-062

GitHub · z92g/CVE-2021-31805