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

9.8CRITICAL

Key Information:

Vendor
Apache
Vendor
CVE Published:
12 April 2022

Badges

👾 Exploit Exists🟡 Public PoC🟣 EPSS 90%

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.

Affected Version(s)

Apache Struts 2.0.0 to 2.5.29

Exploit Proof of Concept (PoC)

PoC code is written by security researchers to demonstrate the vulnerability can be exploited. PoC code is also a key component for weaponization which could lead to ransomware.

References

EPSS Score

90% chance of being exploited in the next 30 days.

CVSS V3.1

Score:
9.8
Severity:
CRITICAL
Confidentiality:
High
Integrity:
High
Availability:
High
Attack Vector:
Network
Attack Complexity:
Low
Privileges Required:
None
User Interaction:
None
Scope:
Unchanged

Timeline

  • 🟡

    Public PoC available

  • 👾

    Exploit known to exist

  • Vulnerability published

  • Vulnerability Reserved

Credit

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