CriticalGHSA-mmj6-cjj4-hpr5CVE-2016-3087
Apache Struts vulnerable to arbitrary remote code execution due to improper input validation
Published 14 May 2022 · Updated 22 Feb 2024
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.3.19 <2.3.20.3
- Fixed in
- 2.3.20.3
Update to the fixed version for your release line, for example:
mvn versions:use-dep-version -Dincludes=org.apache.struts:struts2-core -DdepVersion=2.3.20.3 -DforceVersion=true- Affected
- >=2.3.21 <2.3.24.3
- Fixed in
- 2.3.24.3
Update to the fixed version for your release line, for example:
mvn versions:use-dep-version -Dincludes=org.apache.struts:struts2-core -DdepVersion=2.3.24.3 -DforceVersion=true- Affected
- >=2.3.25 <2.3.28.1
- Fixed in
- 2.3.28.1
Update to the fixed version for your release line, for example:
mvn versions:use-dep-version -Dincludes=org.apache.struts:struts2-core -DdepVersion=2.3.28.1 -DforceVersion=trueDetails
Apache Struts 2.3.19 to 2.3.20.2, 2.3.21 to 2.3.24.1, and 2.3.25 to 2.3.28, when Dynamic Method Invocation is enabled, allow remote attackers to execute arbitrary code via vectors related to an ! (exclamation mark) operator to the REST Plugin.
Is GHSA-mmj6-cjj4-hpr5 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
- CriticalCVE-2023-50164Apache Struts vulnerable to path traversal · 7 Dec 2023
- HighCVE-2023-41835Apache Struts Improper Control of Dynamically-Managed Code Resources vulnerability · 5 Dec 2023
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2016-3087
- Linkgithub.com/apache/struts/commit/6bd694b7980494c12d49ca1bf39f12aec3e03e2f
- Packagegithub.com/apache/struts
- Linkweb.archive.org/web/20160616082237/http://www.securitytracker.com/id/1036017
- Linkweb.archive.org/web/20160728170709/http://www.securityfocus.com/bid/90960
- Linkwww.exploit-db.com/exploits/39919
- Linkstruts.apache.org/docs/s2-033.html
- Linkwww-01.ibm.com/support/docview.wss?uid=swg21987854
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.