VDB
Sign up
HIGH7.5

GHSA-4g42-gqrg-4633

Apache Struts vulnerable to memory exhaustion

Quick fix

GHSA-4g42-gqrg-4633 — org.apache.struts:struts2-core: upgrade to the fixed version with the command below.

# pom.xml: bump <version>2.5.31</version> for org.apache.struts:struts2-core

Details

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

Are you affected?

Enter the version of the package you're using.

Affected packages

Maven/org.apache.struts:struts2-core
Introduced in: 0Fixed in: 2.5.31
Fix# pom.xml: bump <version>2.5.31</version> for org.apache.struts:struts2-core
Maven/org.apache.struts:struts2-core
Introduced in: 6.0.0Fixed in: 6.1.2.1
Fix# pom.xml: bump <version>6.1.2.1</version> for org.apache.struts:struts2-core
Maven/org.apache.struts:struts-core
Introduced in: 0

No fixed version published yet for org.apache.struts:struts-core (maven). Pin to a known-safe version or switch to an alternative.

Maven/struts:struts
Introduced in: 0

No fixed version published yet for struts:struts (maven). Pin to a known-safe version or switch to an alternative.

References