Apache Struts vulnerable to memory exhaustion
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 software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Java / Kotlin (Maven) | org.apache.struts:struts2-core | < 2.5.31, >= 6.0.0, < 6.1.2.1 | 2.5.31, 6.1.2.1 |
| Java / Kotlin (Maven) | org.apache.struts:struts-core | <= 1.3.10 | no fix |
| Java / Kotlin (Maven) | struts:struts | <= 1.2.9 | no fix |
References
- https://nvd.nist.gov/vuln/detail/CVE-2023-34396
- https://github.com/apache/struts/commit/2d6f1bc0a6f5ac575a56784ac6461816b67c4f21
- https://cwiki.apache.org/confluence/display/WW/S2-064
- https://github.com/apache/struts
- https://github.com/apache/struts/releases/tag/STRUTS_2_5_31
- https://github.com/apache/struts/releases/tag/STRUTS_6_1_2_1
- https://security.netapp.com/advisory/ntap-20230706-0005
- http://www.openwall.com/lists/oss-security/2023/06/14/3
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H- Weakness (CWE)
CWE-770- Platform
- Java / Kotlin (Maven)
- Package
org.apache.struts:struts2-core, org.apache.struts:struts-core, struts:struts- Disclosed
- 14.06.2023
- Updated
- 11.10.2026 12:22
Sources and licenses
OSV / GitHub Advisory Database - GHSA-4g42-gqrg-4633 - CC BY 4.0
Vulnerability history: struts:struts
All published vulnerabilities of this package (Java / Kotlin (Maven)), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 10
- First → latest
- 05.2022 07.2025
- Without a fix
- 6
- Exploited in attacks
- 1
Severity breakdown
- High 7
- Medium 2
- Low 1
Disclosures per year
- 2022: 7
- 2023: 2
- 2024: 0
- 2025: 1
- 2026: 0
-
Apache Struts vulnerable to memory exhaustion this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.