CVE-2021-31805

published 12 Apr 2022 · updated 3 Aug 2024

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

7.0HighEPSS 85%1 public exploits

A public exploit exists; no exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 85%. No fixed version is recorded.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
Apache Software Foundation=2.0.0 to 2.5.29

Exploit evidence

1 public sources

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2021-31805 severity on Zeptric[![CVE-2021-31805](https://zeptric.io/badge/cve/CVE-2021-31805.svg)](https://zeptric.io/cve/CVE-2021-31805)