Forced OGNL evaluation, when evaluated on raw not validated user input in tag attributes, may lead to RCE.
CVE-2021-31805
Key Information:
- Vendor
Apache
- Status
- Vendor
- CVE Published:
- 12 April 2022
Badges
Key facts
CVE-2021-31805 is a critical severity (CVSS 9.8) vulnerability in Apache Struts. It is known to be exploited in the wild. 7 public proof-of-concept exploits are available. Its EPSS score is 85.4%, the estimated probability of exploitation in the next 30 days.
- Severity
- 9.8CRITICAL
- CVSS base score
- EPSS
- 85.4%
- Chance of exploitation in 30 days
- Exploited
- In the wild
- Since 15 Apr 2022
- CISA KEV
- Not listed
- Ransomware
- Not observed
What is CVE-2021-31805?
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
More Apache Vulnerabilities
Other Apache vulnerabilities we have analysed in depth, newest first.
Key Exchange Vulnerability in Apache Tomcat Products by Apache
Improper Exception Management in Apache Tomcat Affects Multiple Versions
Deserialization Vulnerability in Apache Roller Affects Multiple Versions
Improper Synchronization Vulnerability in Apache HTTP Server's mod_http2
Deserialization Vulnerability in Apache Axis 1.x Allows Remote Code Execution
Path Traversal Vulnerability in Apache Juneau
Remote Code Execution Vulnerability in Apache MINA Codec Module
SQL Injection Vulnerability in Apache Fineract Affecting Specific API Endpoint
EPSS Score
85% chance of being exploited in the next 30 days.
CVSS V3.1
Timeline
- π‘
Public PoC available
- πΎ
Exploit known to exist
Vulnerability published
Vulnerability Reserved