CVE-2016-3087 · redhat
CVE-2016-3087
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.
Published 2016-06-07, last changed 2026-06-17. Weakness: CWE-20.
Public exploits
| Source | Kind | Reference |
|---|---|---|
| exploit-db | proof-of-concept | EDB-39919 |
| exploit-db | proof-of-concept | EDB-43382 |
| metasploit | exploit-module | exploit/multi/http/struts_dmi_rest_exec |
How to fix
Upgrade to a fixed version: org.apache.struts:struts2-core 2.3.20.3, 2.3.24.3, 2.3.28.1 (Maven) (each is the fix for its own release line). For the version that clears every advisory for your installed version, ask an agent for get_remediation.
Where the flaw is in the code
Fixed in apache/struts by 6bd694b798. Functions changed by the fix: getTemplates. Confidence: inferred (code changed near the fix, but no record names this exact commit as the fix).
Timeline
| 2016-06-07 | Published |
| 2022-05-14 | Package advisory GHSA-mmj6-cjj4-hpr5 |
| 2026-06-17 | Record last changed |
| 2026-11-30 | EPSS when our history starts: 81.0% |
| 2026-12-01 | Code-level analysis added |
Affected packages
| Advisory | Package | Fixed in |
|---|---|---|
| GHSA-mmj6-cjj4-hpr5 | org.apache.struts:struts2-core (Maven) | 2.3.20.3 |
| GHSA-mmj6-cjj4-hpr5 | org.apache.struts:struts2-core (Maven) | 2.3.24.3 |
| GHSA-mmj6-cjj4-hpr5 | org.apache.struts:struts2-core (Maven) | 2.3.28.1 |
Also known as: GHSA-mmj6-cjj4-hpr5
Related
| CVE | Published | CVSS | Summary |
|---|---|---|---|
| CVE-2025-68493 | 2026-01-11 | 8.1 | Apache Struts, Apache Struts: XXE vulnerability in outdated XWork component |
| CVE-2025-66675 | 2025-12-10 | 8.2 | Apache Struts: File leak in multipart request processing causes disk exhaustion (DoS) - version ranges fixed |
| CVE-2025-64775 | 2025-12-01 | 7.5 | Apache Struts: File leak in multipart request processing causes disk exhaustion (DoS) |
| CVE-2024-53677 | 2024-12-11 | 9.8 | Apache Struts: Mixing setters for uploaded files and normal fields can allow bypass file upload checks |
| CVE-2023-50164 | 2023-12-07 | 9.8 | Apache Struts: File upload component had a directory traversal vulnerability |
| CVE-2023-41835 | 2023-12-05 | 7.5 | Apache Struts: excessive disk usage |
| CVE-2023-34396 | 2023-06-14 | 7.5 | Apache Struts: DoS via OOM owing to no sanity limit on normal form fields in multipart forms |
| CVE-2023-34149 | 2023-06-14 | 6.5 | Apache Struts: DoS via OOM owing to not properly checking of list bounds |
Add it to your agent
One command for Claude Code; setup for Claude Desktop, Cursor and others. No signup or key.
claude mcp add --transport http keygraph-cve https://cve-mcp.keygraph.io/mcp
Then ask for triage_cve CVE-2016-3087, or call /api/v1/vulnerabilities/CVE-2016-3087. To prove whether it is exploitable in your running app, run Shannon, Keygraph's open-source AI pentester.