Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. org.apache.struts/struts2-core
  4. ›
  5. CVE-2023-34396

CVE-2023-34396: Apache Struts vulnerable to memory exhaustion

June 14, 2023 (updated February 13, 2025)

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

References

  • cwiki.apache.org/confluence/display/WW/S2-064
  • github.com/advisories/GHSA-4g42-gqrg-4633
  • github.com/apache/struts
  • github.com/apache/struts/commit/2d6f1bc0a6f5ac575a56784ac6461816b67c4f21
  • github.com/apache/struts/releases/tag/STRUTS_2_5_31
  • github.com/apache/struts/releases/tag/STRUTS_6_1_2_1
  • nvd.nist.gov/vuln/detail/CVE-2023-34396
  • security.netapp.com/advisory/ntap-20230706-0005

Code Behaviors & Features

Detect and mitigate CVE-2023-34396 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.5.31, all versions starting from 6.0.0 before 6.1.2.1

Fixed versions

  • 2.5.31
  • 6.1.2.1

Solution

Upgrade to versions 2.5.31, 6.1.2.1 or above.

Impact 4.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L

Learn more about CVSS

Weakness

  • CWE-770: Allocation of Resources Without Limits or Throttling

Source file

maven/org.apache.struts/struts2-core/CVE-2023-34396.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:16:04 +0000.