Apache Struts vulnerable to path traversal
Published 7 Dec 2023 · Updated 13 Feb 2025
Is your project on an affected org.apache.struts:struts2-core?
Look after several Java apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected packages
- Affected
- >=2.0.0 <2.5.33
- Fixed in
- 2.5.33
mvn versions:use-dep-version -Dincludes=org.apache.struts:struts2-core -DdepVersion=2.5.33 -DforceVersion=true- Affected
- >=6.0.0 <6.3.0.2
- Fixed in
- 6.3.0.2
mvn versions:use-dep-version -Dincludes=org.apache.struts:struts2-core -DdepVersion=6.3.0.2 -DforceVersion=trueDetails
An attacker can manipulate file upload params to enable paths traversal and under some circumstances this can lead to uploading a malicious file which can be used to perform Remote Code Execution. Users are recommended to upgrade to versions Struts 2.5.33 or Struts 6.3.0.2 or greater to fix this issue.
Is GHSA-2j39-qcjm-428w in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected org.apache.struts:struts2-core, and gives you the command that fixes it.
More advisories for org.apache.struts:struts2-core
- HighCVE-2025-68493Apache Struts 2 is Missing XML Validation · 11 Jan 2026
- HighCVE-2025-66675Apache Struts has a Denial of Service vulnerability · 10 Dec 2025
- HighCVE-2025-64775Apache Struts is Vulnerable to DoS via File Leak · 1 Dec 2025
- CriticalCVE-2024-53677Apache Struts file upload logic is flawed · 11 Dec 2024
- HighCVE-2023-41835Apache Struts Improper Control of Dynamically-Managed Code Resources vulnerability · 5 Dec 2023
- HighCVE-2023-34396Apache Struts vulnerable to memory exhaustion · 14 Jun 2023
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2023-50164
- Linkgithub.com/apache/struts/commit/162e29fee9136f4bfd9b2376da2cbf590f9ea163
- Linkgithub.com/apache/struts/commit/d8c69691ef1d15e76a5f4fcf33039316da2340b6
- Linkcwiki.apache.org/confluence/display/WW/S2-066
- Packagegithub.com/apache/struts
- Linklists.apache.org/thread/yh09b3fkf6vz5d6jdgrlvmg60lfwtqhj
- Linksecurity.netapp.com/advisory/ntap-20231214-0010
- Linkwww.openwall.com/lists/oss-security/2023/12/07/1
- Linkpacketstormsecurity.com/files/176157/Struts-S2-066-File-Upload-Remote-Code-Execution.html
- Linkwww.openwall.com/lists/oss-security/2023/12/07/1
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.