CVE-2016-3081 Apache Struts Command Injection

Exploited in the wild High 8.1 Published Updated

Remote attackers can execute arbitrary code via method prefix when Dynamic Method Invocation is enabled in Apache Struts.

Exploited in the wild
Since 8 Oct 2026
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2016-3081?

CVE-2016-3081 is a high-severity code injection vulnerability in Apache Struts, published on 26 Apr 2016. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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.

Weakness: CWE-77

Which versions are affected by CVE-2016-3081?

6 open source packages ship an affected version, including org.apache.struts:struts2-core. It affects 20 products.

PackageAffectedFixed in
org.apache.struts:struts2-core MavenFrom 2.3.192.3.20.3
org.apache.struts:struts2-core MavenFrom 2.3.192.3.20.3
org.apache.struts:struts2-core MavenFrom 2.3.212.3.24.3
org.apache.struts:struts2-core MavenFrom 2.3.212.3.24.3
org.apache.struts:struts2-core MavenFrom 2.3.252.3.28.1
org.apache.struts:struts2-core MavenFrom 2.3.252.3.28.1

Products include Apache Struts, Huawei Agile Controller-Campus Firmware, Huawei Anyoffice, Huawei Firehunter6000 Firmware, Huawei Logcenter, Huawei Oceanstor 18500 V3 Firmware and 14 more.

How do I fix CVE-2016-3081?

Upgrade org.apache.struts:struts2-core to a fixed version for your release line: 2.3.20.3, 2.3.24.3 or 2.3.28.1. US federal agencies must fix it by 11 Oct 2026.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2016-3081 being exploited?

Yes. Attackers have exploited CVE-2016-3081 in the wild since at least 8 Oct 2026.

Public exploit code: 1 Metasploit module, 1 Exploit-DB entry and 1 Nuclei template.

All Apache Struts vulnerabilities

Sources

Also known as GHSA-8c6j-ffmf-q6vm.

Is CVE-2016-3081 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free