CRITICAL 9.8

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)

ArtifactAffected versionsFixed in
org.apache.struts » struts2-core
>= 2.0.0, < 2.5.30
2.5.30

Blast radius

1affected artifacts
151affected versions
730dependent artifacts (est.)
233,931dependent versions

35% of the dependent artifacts (259) still pull an affected version in their latest release.

DepthDependent 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

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

Advisorynvd.nist.gov
Webcwiki.apache.org
Websecurity.netapp.com
Weboracle.com
Webopenwall.com