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-coreDetails
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
0Fixed in: 2.5.31# pom.xml: bump <version>2.5.31</version> for org.apache.struts:struts2-core6.0.0Fixed in: 6.1.2.1# pom.xml: bump <version>6.1.2.1</version> for org.apache.struts:struts2-core0No fixed version published yet for org.apache.struts:struts-core (maven). Pin to a known-safe version or switch to an alternative.
0No fixed version published yet for struts:struts (maven). Pin to a known-safe version or switch to an alternative.
References
- https://nvd.nist.gov/vuln/detail/CVE-2023-34396[ADVISORY]
- https://github.com/apache/struts/commit/2d6f1bc0a6f5ac575a56784ac6461816b67c4f21[WEB]
- https://cwiki.apache.org/confluence/display/WW/S2-064[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/3[WEB]