CVE-2016-3087 — Vulnerability in struts2-core — CVE Details
Apache Struts vulnerable to arbitrary remote code execution due to improper input validation
What Should I Do?
Fix in Your Next Sprint
This vulnerability has a 80.97% chance of being exploited within 30 days.
Does your project use an affected org.apache.struts:struts2-core version?
Paste your pom.xml to check it for CVE-2016-3087 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
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.
Advisory Timeline
- First published May 14, 2022 (1657 days ago).
- Last revised February 22, 2024 — 649 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
<!-- Update pom.xml dependency version to 2.3.20.3 for org.apache.struts:struts2-core -->
<!-- Update pom.xml dependency version to 2.3.28.1 for org.apache.struts:struts2-core -->
<!-- Update pom.xml dependency version to 2.3.24.3 for org.apache.struts:struts2-core -->
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (3)
Affects 1 ecosystem: Maven (1).
| Package | Fixed In |
|---|---|
| org.apache.struts:struts2-core Maven · Affected: 2.3.20, 2.3.20.1 | 2.3.20.3 |
| org.apache.struts:struts2-core Maven · Affected: 2.3.28 | 2.3.28.1 |
| org.apache.struts:struts2-core Maven · Affected: 2.3.24, 2.3.24.1 | 2.3.24.3 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-20Improper Input ValidationMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 9.8 score means for each attack dimension.
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
References
- https://nvd.nist.gov/vuln/detail/CVE-2016-3087ADVISORY
- https://github.com/apache/struts/commit/6bd694b7980494c12d49ca1bf39f12aec3e03e2fWEB
- https://github.com/apache/strutsPACKAGE
- https://web.archive.org/web/20160616082237/http://www.securitytracker.com/id/1036017WEB
- https://web.archive.org/web/20160728170709/http://www.securityfocus.com/bid/90960WEB
- https://www.exploit-db.com/exploits/39919WEB
- https://struts.apache.org/docs/s2-033.htmlWEB
- https://www-01.ibm.com/support/docview.wss?uid=swg21987854WEB
Frequently Asked Questions
- What is CVE-2016-3087?
- Apache Struts vulnerable to arbitrary remote code execution due to improper input validation. This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.8/10).
- How do I check if my project is affected by CVE-2016-3087?
- CVE-2016-3087 affects org.apache.struts:struts2-core. It has a 81.0% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2016-3087 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Maximum impact if exploited, often with little effort or access required.
This places it in the top 5% of EPSS-scored vulnerabilities — 99.7% of tracked vulnerabilities score at or below it, so it is far more likely to be exploited than nearly all other tracked vulnerabilities.
Also Known As
Related CVEs
- CVE-2023-50164CRITICAL
Apache Struts vulnerable to path traversal
- CVE-2024-53677CRITICAL
Apache Struts file upload logic is flawed
- CVE-2016-4438CRITICAL
Arbitrary code execution in Apache Struts 2
- CVE-2012-0391CRITICAL
Apache Struts Remote Java Code Execution
- CVE-2026-107726CRITICAL
Hazelcast allows arbitrary member memory access by low-privileged client
- CVE-2016-3082CRITICAL
Remote Code Execution in Apache Struts
- CVE-2016-4436CRITICAL
Apache Struts improper action name cleanup
- CVE-2025-68493HIGH
Apache Struts 2 is Missing XML Validation