Threat reportVulnerabilityTL-2026-3332
CISA KEV: Apache Struts Dynamic Method Invocation Remote Code Execution (CVE-2016-3081 / S2-032) Exploited in Attacks
CISA added Apache Struts CVE-2016-3081 (S2-032), a command injection / remote code execution flaw reachable via the method: prefix when Dynamic Method Invocation (DMI) is enabled, to its Known Exploited Vulnerabilities catalog on 2026-10-08, citing active exploitation. The flaw dates to 2016 and is fixed in Struts 2.3.20.3, 2.3.24.3 and 2.3.28.1. First disclosed .
Key facts
| Identifiers | TL-2026-3332, CVE-2016-3081 |
|---|---|
| Also known as | S2-032, Apache Struts S2-032 |
| Severity | CRITICAL |
| CVSS | 8.1 (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H) |
| First disclosed | |
| Exploitation status | Linked CVE exploited in the wild; Listed in CISA KEV: CVE-2016-3081 (added ) |
| EPSS | CVE-2016-3081: 94.5% (99.8th percentile) |
| Affected products | Apache Struts; Huawei OceanStor, AnyOffice, LogCenter, AgileController (bundled Struts, per NVD); Oracle FlexCube Private Banking, Micros Retail XBRI Loss Prevention, Siebel E-Billing (bundled Struts, per NVD) |
| Weaknesses (CWE) | CWE-77 |
| Malware | Meterpreter (Android), linux/x86/meterpreter/reverse_tcp_uuid |
| Tools | Metasploit Framework, metasploit |
| MITRE ATT&CK techniques | T1005 Data from Local System, T1059 Command and Scripting Interpreter, T1059.004 Unix Shell, T1190 Exploit Public-Facing Application, T1222.002 Linux and Mac Permissions |
| Motivation | UNKNOWN |
| Target sectors | government administration, finance, telecoms, retail, technology |
| Target regions | Global |
| Detection rules | 9 (1 shown free) |
| Sources | 10 cited sources |
Detection coverage
As of 2026-10-12, Threadlinqs Intelligence publishes 9 detection rule(s) for TL-2026-3332 across Splunk SPL, Microsoft KQL and Sigma, covering 8 indicator(s) of compromise. The whole corpus is readable without an account. Every threat comes with one complete detection in Splunk SPL, Microsoft KQL and Sigma, free for everyone; a free account adds daily TL Creds to unlock the rest. Paid plans add a larger daily allowance, correlation and the MCP server. Threadlinqs MCP server · View plans.
Free detection: Java Application Server Spawning Shell or Interpreter — Struts RCE Post-Exploitation
TL-2026-3332: A java process (Tomcat/Struts container) spawning sh/bash/dash or a script interpreter is the direct consequence of OGNL java.lang.Runtime.exec() abuse in CVE-2016-3081 (S2-032). Command lines are flagged for /tmp staging, chmod +x and sensitive file reads (/etc/passwd, /etc/shadow, SSH keys) to support triage of data collection.
- Languages: Splunk SPL, Microsoft KQL, Sigma
- ATT&CK: T1059.004, T1059, T1005
- Data sources: sysmon:linux (Sysmon for Linux EventCode 1), DeviceProcessEvents (Defender for Endpoint on Linux), linux process_creation
- Severity: critical
- Confidence: high
Splunk SPL
index=linux sourcetype="sysmon:linux" EventCode=1
| where match(ParentImage, "/java[0-9.]*$") AND match(Image, "/(ba|da|z|k|c|tc|a)?sh$|/busybox$|/python[0-9.]*$|/perl$")
```comment
Java application server (Struts host) spawning a shell or interpreter is the Runtime.exec outcome of CVE-2016-3081
```
| eval staging=if(match(CommandLine, "(?i)(/tmp/|/var/tmp/|/dev/shm/)"), 1, 0), chmod_exec=if(match(CommandLine, "(?i)chmod +([+]x|[0-7]{3,4})"), 1, 0), data_read=if(match(CommandLine, "(?i)/etc/(passwd|shadow)|id_rsa|[.]bash_history"), 1, 0)
| stats count sum(staging) as staging sum(chmod_exec) as chmod_exec sum(data_read) as data_read min(_time) as first_seen max(_time) as last_seen values(CommandLine) as commands by host, User, ParentImage, Image
| convert ctime(first_seen) ctime(last_seen)Microsoft KQL
DeviceProcessEvents
| where Timestamp > ago(24h)
| where InitiatingProcessFileName matches regex '^java[0-9.]*$'
| where FileName in~ ('sh', 'bash', 'dash', 'zsh', 'ksh', 'csh', 'tcsh', 'ash', 'busybox') or FileName matches regex '^(python[0-9.]*|perl)$'
| extend Staging = ProcessCommandLine matches regex '(?i)(/tmp/|/var/tmp/|/dev/shm/)', ChmodExec = ProcessCommandLine matches regex '(?i)chmod +([+]x|[0-7]{3,4})', DataRead = ProcessCommandLine matches regex '(?i)/etc/(passwd|shadow)|id_rsa|[.]bash_history'
| project Timestamp, DeviceName, AccountName, InitiatingProcessFileName, InitiatingProcessCommandLine, FileName, ProcessCommandLine, Staging, ChmodExec, DataReadSigma
title: Java Application Server Spawning Shell - Struts CVE-2016-3081 Post-Exploitation
id: 3f0a6c1e-3332-4b1a-8d01-a1b2c3d4e004
status: experimental
description: Detects a Java process (Struts or other servlet container) spawning a Unix shell or script interpreter, the result of OGNL java.lang.Runtime.exec abuse in CVE-2016-3081 (TL-2026-3332).
references:
- https://nvd.nist.gov/vuln/detail/CVE-2016-3081
- https://cwiki.apache.org/confluence/display/WW/S2-032
- https://www.exploit-db.com/exploits/39756/
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2016-3081
author: Threadlinqs Team
date: 2026-10-12
tags:
- attack.execution
- attack.t1059.004
- attack.t1059
- attack.initial-access
- attack.t1190
- cve.2016-3081
logsource:
category: process_creation
product: linux
detection:
selection_parent:
ParentImage|endswith: '/java'
selection_child:
Image|endswith:
- '/sh'
- '/bash'
- '/dash'
- '/zsh'
- '/ksh'
- '/csh'
- '/tcsh'
- '/ash'
- '/busybox'
condition: selection_parent and selection_child
falsepositives:
- Java applications that shell out for legitimate maintenance scripts, backups or health checks
- Build servers (Jenkins, Maven) running on the JVM
level: high
Known false positives:
- Java applications that shell out for legitimate maintenance scripts or health checks
- CI/build servers running on the JVM
Tuning notes: Restrict to hosts running Struts 2 and baseline expected java-to-shell command lines, then exclude them by CommandLine. Any shell child of the web container user on an internet-facing host should stay alerting. Requires Sysmon for Linux or auditd execve with parent process enrichment.
- Apache Struts S2-032 Arithmetic OGNL Probe / Metasploit Default URI — Exploitation Scanning · unlock with TL Creds
- chmod +x on Temp Payload by Java Process Tree — Struts Payload Staging · unlock with TL Creds
- Reverse Shell Command Line from Java Process Tree — Struts C2 · unlock with TL Creds
- Struts DMI method: Parameter on Action Endpoint — Exploitation Surface Hunt · unlock with TL Creds
- Binary Executed from Temp Directory by Java or Shell — Struts Payload Execution · unlock with TL Creds
- Download Utility Spawned by Java Process Tree — Struts Ingress Tool Transfer · unlock with TL Creds
- Apache Struts S2-032 (CVE-2016-3081) OGNL Injection via method: Prefix — Exploitation · unlock with TL Creds
- Temp-Directory Binary Calling Out to Public IP — Meterpreter reverse_tcp_uuid C2 · unlock with TL Creds
Indicators of compromise
As of 2026-10-12, Threadlinqs Intelligence tracks 8 indicators of compromise for TL-2026-3332.
Technical analysis
CVE-2016-3081 (Apache Struts security bulletin S2-032, credited to Nike Zheng) affects 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. A remote, unauthenticated attacker can execute arbitrary code by sending a request containing the method: prefix, which is evaluated as an OGNL expression (NVD: 'related to chained expressions'). The Apache bulletin rates it Important. NVD classifies the weakness as CWE-77 and scores it CVSS v3.1 8.1 HIGH (AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H) and CVSS v2 9.3 (AV:N/AC:M/Au:N/C:C/I:C/A:C). It was published 2016-04-26. The platform severity is set to CRITICAL because CISA confirmed active exploitation and a federal remediation deadline; public trackers also report a very high EPSS exploitation probability (about 94%).
A public exploit has existed since 2016: Exploit-DB EDB-39756 is a Metasploit module (contributor Nixawk, released 2016-05-02, rank Excellent, Linux x86 target). It sends an HTTP request carrying a URI-encoded OGNL expression in the method: parameter, manipulates the _memberAccess object to bypass OGNL security restrictions, and either runs commands directly through java.lang.Runtime.exec() or uploads a Base64-encoded executable to /tmp/ (or a custom temp path), marks it executable and runs it with shell commands. The default payload is linux/x86/meterpreter/reverse_tcp_uuid, and the module includes a check function that evaluates an arithmetic OGNL expression to confirm vulnerability. The default target URI in the module is /blank-struts2/login.action.
CISA added the CVE to the KEV catalog on 2026-10-08 with a due date of 2026-10-11 under BOD 26-04; known ransomware campaign use is listed as Unknown. The reporting source states exploitation can lead to data theft, malware deployment, credential collection, or use of the server as a path into other parts of the network, and that affected servers need forensic triage rather than patching alone. The sources reviewed do not identify the exploiting actor, campaign, or any network infrastructure, so no attribution or network IOCs are asserted. NVD also lists Huawei (OceanStor, AnyOffice, LogCenter, AgileController) and Oracle (FlexCube Private Banking, Micros Retail XBRI Loss Prevention, Siebel E-Billing) products as affected because they bundle vulnerable Struts; NVD references Oracle bulletins from July and October 2016 and a Huawei advisory. Note that the Apache bulletin and Exploit-DB text describe the affected range slightly differently (2.3.20 through 2.3.28 excluding the patched builds); this record uses the NVD ranges. Defenders should look for requests carrying method: parameters with OGNL syntax and for unexpected child processes of the Java application server.
MITRE ATT&CK techniques by tactic:
Collection
Execution
T1059 Command and Scripting Interpreter; T1059.004 Unix Shell
Initial Access
T1190 Exploit Public-Facing Application
defense-impairment
Remediation
Patches
- Upgrade to Apache Struts 2.3.20.3, 2.3.24.3 or 2.3.28.1 (or later)
- Apply Oracle and Huawei vendor updates for products bundling Struts
Immediate actions
- Disable Dynamic Method Invocation (struts.enable.DynamicMethodInvocation=false) on all Struts 2 applications
- Restrict public access to affected Struts applications and apply network controls
- Review web and application logs for requests containing method: parameters with OGNL syntax
- Hunt for unexpected child processes spawned by the Java application server and for new executables in /tmp
- Perform forensic triage on exposed hosts rather than relying on patching alone
Workarounds
- Disable Dynamic Method Invocation or implement a custom ActionMapper based on the source of the fixed Struts releases
Longer-term hardening
- Inventory applications and bundled products that embed Apache Struts 2
- Follow CISA BOD 26-04 guidance and evaluate internet exposure of Struts-based services
Affected and fixed versions
- Apache — Struts
Vulnerable versions: 2.3.19 to 2.3.20.2; 2.3.21 to 2.3.24.1; 2.3.25 to 2.3.28
Fixed in: 2.3.20.3; 2.3.24.3; 2.3.28.1 - Huawei — OceanStor, AnyOffice, LogCenter, AgileController (bundled Struts, per NVD)
Vulnerable versions: see NVD CPE list - Oracle — FlexCube Private Banking, Micros Retail XBRI Loss Prevention, Siebel E-Billing (bundled Struts, per NVD)
Vulnerable versions: see NVD CPE list
Timeline
- CVE-2016-3081 (Struts S2-032, reported by Nike Zheng) published in NVD; fixes released in Struts 2.3.20.3, 2.3.24.3 and 2.3.28.1.
- Metasploit module for Struts DMI RCE (Exploit-DB EDB-39756, contributor Nixawk) released publicly, rank Excellent.
- Apache S2-032 bulletin last updated, confirming impact via method: prefix with DMI enabled and recommending disabling DMI or upgrading.
- CISA adds CVE-2016-3081 to the Known Exploited Vulnerabilities catalog citing active exploitation.
- CISA KEV remediation due date for federal civilian agencies under BOD 26-04.
- Cyber Security News reports on the KEV addition and recommends forensic triage, disabling DMI and log review for suspicious method: values.
Sources cited
- CISA Known Exploited Vulnerabilities Catalog - CVE-2016-3081 CISA · Government advisory · 2026-10-08
- NVD - CVE-2016-3081 NVD (NIST) · Advisory · 2016-04-26
- SecurityFocus BID 87327 securityfocus.com · Advisory
- Apache Struts Security Bulletin S2-032 cwiki.apache.org · Vendor report
- Apache Struts S2-032 (docs) struts.apache.org · Vendor report
- Rapid7 Vulnerability DB - Struts CVE-2016-3081 Rapid7 · Research
- Oracle Critical Patch Update Advisory - October 2016 oracle.com · Vendor report
- GCVE / CVE record - CVE-2016-3081 db.gcve.eu · Research
- Exploit-DB 39756 - Apache Struts Dynamic Method Invocation RCE (Metasploit) exploit-db.com · Proof of concept · 2016-05-02
- CISA Warns of Apache Struts Command Injection Vulnerability Exploited in Attacks cybersecuritynews.com · News · 2026-10-12
Other reports on CVE-2016-3081
Previous and next in vulnerability
Drafted by the Threadlinqs research pipeline from 10 sources; published ; last updated —.