CVE-2021-31805

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

Vendor Apache Software Foundation
Product Apache Struts
Weakness CWE-917
Published April 12, 2022
Last update August 3, 2024

CVSS base score

What the vulnerability does

01Description

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.

Key dates

02Disclosure timeline

April 12, 2022 CVE published
August 3, 2024 Record updated