CVE-2021-31805: apache software foundation apache struts Expression Language Injection
Vulnerability summary
CVE-2021-31805 is a critical (CVSS 9.8) Expression Language Injection vulnerability in apache software foundation apache struts. EPSS estimates a 85.43% chance of exploitation in the next 30 days, higher than 99.7% of scored vulnerabilities.
Timeline
- 12-04-2022PublishedVulnerability first disclosed.
- 03-08-2024Last modifiedVulnerability information updated.
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.
CVSS metrics
3 scores · 2 sources · 2 versions- OSV · MavenEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
85.43%
Chance of exploitation in the next 30 days
Percentile
100%
Versus all other CVEs
30-day change
0.00 pp
From 85.43% on 18-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Apache1 product
- struts≥ 2.0.0, ≤ 2.5.29
Apache software foundation1 product
- apache struts2.0.0 to 2.5.29
Org.apache.struts1 product
- struts2-core≥ 2.0.0, < 2.5.30
3 vendors · 3 products
References
6 links- www.openwall.com/lists/oss-security/2022/04/12/6Mailing ListX Refsource MLISTWEBMitigationThird Party Advisory