MEDIUM6.5
GHSA-8f6x-v685-g2xc
Apache Struts vulnerable to memory exhaustion
Quick fix
GHSA-8f6x-v685-g2xc — 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-coreDetails
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.
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.31Fix
# pom.xml: bump <version>2.5.31</version> for org.apache.struts:struts2-coreMaven/org.apache.struts:struts2-core
Introduced in:
6.0.0Fixed in: 6.1.2.1Fix
# pom.xml: bump <version>6.1.2.1</version> for org.apache.struts:struts2-coreReferences
- https://nvd.nist.gov/vuln/detail/CVE-2023-34149[ADVISORY]
- https://github.com/apache/struts/commit/2d6f1bc0a6f5ac575a56784ac6461816b67c4f21[WEB]
- https://cwiki.apache.org/confluence/display/WW/S2-063[WEB]
- https://github.com/apache/struts[PACKAGE]
- https://github.com/apache/struts/releases/tag/STRUTS_2_5_31[WEB]
- https://github.com/apache/struts/releases/tag/STRUTS_6_1_2_1[WEB]
- https://security.netapp.com/advisory/ntap-20230706-0005[WEB]
- http://www.openwall.com/lists/oss-security/2023/06/14/2[WEB]