CVE-2023-34396
Apache Struts vulnerable to memory exhaustion
Description
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 Maven artifacts (3)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.apache.struts » struts-core | <= 1.3.10 | - |
| org.apache.struts » struts2-core | < 2.5.31>= 6.0.0, < 6.1.2.1 | 2.5.31, 6.1.2.1 |
| struts » struts | <= 1.2.9 | - |
Blast radius
100% of the dependent artifacts (4,711) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 22,360 |
| 2 hops | 201,291 |
| 3 hops | 189,022 |
| 4 hops | 131,037 |
| 5 hops | 72,367 |
| 6 hops | 47,831 |
Most used dependents
- org.apache.maven.plugins » maven-javadoc-plugin84,916 usages
- org.apache.maven.plugins » maven-dependency-plugin26,231 usages
- org.springframework » spring-web12,086 usages
- org.apache.maven.plugins » maven-checkstyle-plugin11,720 usages
- org.apache.maven.plugins » maven-site-plugin9,107 usages
- org.springframework » spring-webmvc7,538 usages
- org.apache.maven.plugins » maven-plugin-plugin6,502 usages
- org.codehaus.mojo » versions-maven-plugin5,371 usages
- org.codehaus.mojo » license-maven-plugin3,293 usages
- com.github.spotbugs » spotbugs-maven-plugin3,264 usages
- org.springframework » spring-orm3,194 usages
- org.codehaus.mojo » findbugs-maven-plugin2,938 usages
- org.apache.rat » apache-rat-plugin2,568 usages
- org.apache.maven.plugins » maven-pmd-plugin2,252 usages
- org.apache.maven.plugins » maven-project-info-reports-plugin1,458 usages
Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
| Advisory | NVD CVE-2023-34396 | nvd.nist.gov |
| Package | apache/struts | github.com |
| Web | apache/struts commit 2d6f1bc | github.com |
| Web | confluence/display/WW/S2-064 | cwiki.apache.org |
| Web | apache/struts release STRUTS_2_5_31 | github.com |
| Web | apache/struts release STRUTS_6_1_2_1 | github.com |
| Web | advisory/ntap-20230706-0005 | security.netapp.com |
| Web | lists/oss-security/2023/06/14/3 | openwall.com |
