Skip to content
OpenAdvisories
Critical · 9.8 Scanner template Public exploit CVE-2021-31805 EUVD-2022-1835GHSA-v8j6-6c2r-r27c

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

Published Apr 12, 2022 · Updated Aug 3, 2024 · Assigned by apache

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.

Affected products

VendorProductAffectedFixed
Apache Software Foundation Apache Struts 2.0.0 to 2.5.29 —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 8 repositories

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Automated scanner template

A ready-made Nuclei template detects this vulnerability automatically. Vulnerabilities with public scanner templates are typically probed across the internet soon after the template appears — exposed systems should be patched first.

Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.

Affected packages

EcosystemPackageAffectedFixedRecord
Maven org.apache.struts:struts2-core >= 2.0.0, < 2.5.30 2.5.30 GHSA-v8j6-6c2r-r27c

Advisories 4

References