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—
ProductApache Struts
PublishedApr 12, 2022
First seenApr 12, 2022

How to fix

Update
  • org.apache.struts:struts2-core2.5.30 or later

Affected products

ProductAffected versionsFixed in
apache struts2.0.0 ≤ v ≤ 2.5.29—
org.apache.struts:struts2-coreMaven2.0.0 ≤ v < 2.5.302.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.