CVE-2021-31805
Critical
Description
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.
SeverityCritical
CVSS9.8
Exploit probability—
Product
Apache Struts
PublishedApr 12, 2022
First seenApr 12, 2022
Weakness typeCWE-917Expression language injection
How to fix
Update
- org.apache.struts:struts2-core2.5.30 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| apache struts | 2.0.0 ≤ v ≤ 2.5.29 | — |
| org.apache.struts:struts2-coreMaven | 2.0.0 ≤ v < 2.5.30 | 2.5.30 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
In the Intelligence 360 plan
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.