CVE-2021-31805
Expression Language Injection in Apache Struts
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 Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.apache.struts » struts2-core | >= 2.0.0, < 2.5.30 | 2.5.30 |
Blast radius
35% of the dependent artifacts (259) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 18,287 |
| 2 hops | 143,870 |
| 3 hops | 58,770 |
| 4 hops | 11,279 |
| 5 hops | 1,373 |
| 6 hops | 352 |
Most used dependents
- com.atlassian.confluence » confluence724 usages
- org.xwiki.platform » xwiki-platform-oldcore449 usages
- com.atlassian.jira » atlassian-jira-pageobjects230 usages
- com.atlassian.jira » jira-func-tests212 usages
- com.atlassian.bamboo » atlassian-bamboo-web203 usages
- com.atlassian.bamboo » atlassian-bamboo-api171 usages
- com.atlassian.confluence » confluence-test-support158 usages
- com.atlassian.confluence » confluence-webdriver-support143 usages
- org.nuiton.i18n » i18n-maven-plugin132 usages
- com.atlassian.bamboo » atlassian-bamboo-core127 usages
- com.atlassian.confluence » atlassian-confluence-pageobjects119 usages
- com.atlassian.bamboo » atlassian-bamboo-test-utils105 usages
- org.xwiki.platform » xwiki-platform-rest-server85 usages
- com.atlassian.confluence.plugins » confluence-functestrpc-plugin77 usages
- org.xwiki.platform » xwiki-platform-tool-packager-plugin77 usages
Computed from the dependency graph of build 20261129.0021 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
| Advisory | NVD CVE-2021-31805 | nvd.nist.gov |
| Web | confluence/display/WW/S2-062 | cwiki.apache.org |
| Web | advisory/ntap-20220420-0001 | security.netapp.com |
| Web | security-alerts/cpujul2022.html | oracle.com |
| Web | lists/oss-security/2022/04/12/6 | openwall.com |
