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

9.8CRITICAL

Key Information:

Vendor

Apache

Vendor
CVE Published:
12 April 2022

Badges

πŸ‘Ύ Exploit Exists🟑 Public PoC🟣 EPSS 85%

Key facts

CVE-2021-31805 is a critical severity (CVSS 9.8) vulnerability in Apache Struts. It is known to be exploited in the wild. 7 public proof-of-concept exploits are available. Its EPSS score is 85.4%, the estimated probability of exploitation in the next 30 days.

Severity
9.8CRITICAL
CVSS base score
EPSS
85.4%
Chance of exploitation in 30 days
Exploited
In the wild
Since 15 Apr 2022
CISA KEV
Not listed
Proof of concept
7 public
See exploits ↓
Ransomware
Not observed

What is CVE-2021-31805?

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 Version(s)

Apache Struts 2.0.0 to 2.5.29

Exploit Proof of Concept (PoC)

PoC code is written by security researchers to demonstrate the vulnerability can be exploited. PoC code is also a key component for weaponization which could lead to ransomware.

References

Other Apache vulnerabilities we have analysed in depth, newest first.

Key Exchange Vulnerability in Apache Tomcat Products by Apache

CVE-2026-133325
ApacheApache TomcatπŸ˜„πŸ‘Ύ9.8CRITICAL

Improper Exception Management in Apache Tomcat Affects Multiple Versions

CVE-2026-116561
ApacheApache TomcatπŸ˜„9.1CRITICAL

Deserialization Vulnerability in Apache Roller Affects Multiple Versions

CVE-2026-129448
ApacheApache RollerπŸ˜„πŸ‘Ύ9.8CRITICAL

Improper Synchronization Vulnerability in Apache HTTP Server's mod_http2

CVE-2026-119618
ApacheApache Http ServerπŸ˜„πŸ‘Ύ8.1HIGH

Deserialization Vulnerability in Apache Axis 1.x Allows Remote Code Execution

CVE-2026-90436
ApacheApache Axis 1.x (eol)πŸ‘Ύ9.8CRITICAL

Path Traversal Vulnerability in Apache Juneau

CVE-2026-121489
ApacheApache Juneau10CRITICAL

Remote Code Execution Vulnerability in Apache MINA Codec Module

CVE-2026-118636
ApacheApache Mina9.8CRITICAL

SQL Injection Vulnerability in Apache Fineract Affecting Specific API Endpoint

CVE-2026-64618
ApacheApache FineractπŸ˜„9.8CRITICAL

EPSS Score

85% chance of being exploited in the next 30 days.

CVSS V3.1

Score:
9.8
Severity:
CRITICAL
Confidentiality:
High
Integrity:
High
Availability:
High
Attack Vector:
Network
Attack Complexity:
Low
Privileges Required:
None
User Interaction:
None
Scope:
Unchanged

Timeline

  • 🟑

    Public PoC available

  • πŸ‘Ύ

    Exploit known to exist

  • Vulnerability published

  • Vulnerability Reserved

Credit

Apache Struts would like to thank Chris McCown for reporting this issue!
.