HIGH 7.5

CVE-2023-34396

Apache Struts vulnerable to memory exhaustion

Description

Denial of service via out of memory (OOM) owing to no sanity limit on normal form fields in multipart forms. When a Multipart request has non-file normal form fields, Struts used to bring them into memory as Strings without checking their sizes. This could lead to an OOM if developer has set struts.multipart.maxSize to a value equal or greater than the available memory.

Upgrade to Struts 2.5.31 or 6.1.2.1 or greater

Affected Maven artifacts (3)

ArtifactAffected versionsFixed in
org.apache.struts » struts-core
<= 1.3.10
-
org.apache.struts » struts2-core
< 2.5.31>= 6.0.0, < 6.1.2.1
2.5.31, 6.1.2.1
struts » struts
<= 1.2.9
-

Blast radius

3affected artifacts
177affected versions
4,711dependent artifacts (est.)
663,908dependent versions

100% of the dependent artifacts (4,711) still pull an affected version in their latest release.

DepthDependent versions
Direct
22,360
2 hops
201,291
3 hops
189,022
4 hops
131,037
5 hops
72,367
6 hops
47,831

Most used dependents

Computed from the dependency graph of build 20261124.0621 (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.