MODERATE 6.5

CVE-2023-34149

Apache Struts vulnerable to memory exhaustion

Description

Denial of service via out of memory (OOM) owing to not properly checking of list bounds. 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 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 (1)

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

Blast radius

1affected artifacts
157affected versions
746dependent artifacts (est.)
239,258dependent versions

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

DepthDependent versions
Direct
19,430
2 hops
146,663
3 hops
59,998
4 hops
11,432
5 hops
1,383
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.