Apache Struts 2 has an optional feature called Dynamic Method Invocation (DMI) that lets a request select which action method to call through a method: prefix in the URL. On Struts 2.3.20 through 2.3.28, with DMI enabled, that mechanism could be driven to execute code on the server, running as the user the servlet container runs as. That is CVE-2016-3081, the subject of Apache security bulletin S2-032, fixed in April 2016. CISA added it to the Known Exploited Vulnerabilities catalogue on 8 October 2026, a decade later, which tells you that vulnerable 2.3 deployments are still reachable and still being scanned for. If a Java web application on your server ships a struts2-core jar in the 2.3.20 to 2.3.28 range, disable Dynamic Method Invocation and plan the move off Struts 2.3, which has been out of support for years. This page shows how to find the jar on a Linux host, how to tell whether the feature is switched on, and the single configuration constant that closes the hole while you plan the upgrade.
CVE-2016-3081 at a glance.
| Component | Apache Struts 2, the struts2-core library, when Dynamic Method Invocation is enabled. Struts is a servlet-container web framework: on Linux it is a struts2-core-*.jar inside a web application’s WEB-INF/lib, deployed under Tomcat, Jetty, WildFly or similar. It is not a distribution package; it ships inside the .war of whatever application was built on it |
| Affected versions | Struts 2.3.20 through 2.3.28, except 2.3.20.3 and 2.3.24.3 (NVD: 2.3.20 to <2.3.20.3, 2.3.21 to <2.3.24.3, 2.3.25 to <2.3.28.1), and only when Dynamic Method Invocation is turned on |
| Fixed in | Struts 2.3.20.3, 2.3.24.3 and 2.3.28.1, all released 19 April 2016 (bulletin S2-032). The entire Struts 2.3 and 2.5 lines are now end of life; the supported series are 6.x and 7.x (7.5.0 was released 8 November 2026) |
| Severity | CVSS 3.1 8.1 High (AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H) and CVSS 2 9.3 from NVD; Apache rated the bulletin “Important”. CWE-77, command injection. The AC:H reflects that the feature must be enabled for the flaw to be reachable |
| Exploited in the wild | On CISA’s Known Exploited Vulnerabilities catalogue, added 8 October 2026; federal remediation was due 11 October 2026, the three-day deadline CISA gives the items it rates most urgent. Ransomware use is recorded as Unknown. EPSS 0.969 (99.9th percentile) on 29 November 2026 |
| Who is exposed | any internet-reachable Java web application built on Struts 2.3.20 to 2.3.28 with DMI enabled; the vector is unauthenticated (PR:N). In practice that is legacy applications nobody rebuilt: an internal tool exposed by accident, a vendor appliance with Struts inside, an old .war still deployed. Not affected: applications on the fixed 2.3 point releases, on any 6.x or 7.x release, or with DMI disabled |
| Published | CVE record 26 April 2016; this page built 30 November 2026, last updated 30 November 2026 |
What it is
Struts 2 maps a web request to an action class and a method on it. Dynamic Method Invocation is a convenience that lets the request name the method itself, using a method: prefix in the action part of the URL, rather than relying on the mapping configured for the action. The S2-032 bulletin states the problem plainly: when DMI is enabled, that prefix could be used to perform remote code execution. The weakness class on the record is CWE-77, command injection; the underlying mechanism is that the value carried by the prefix reached Struts’s expression evaluation, which is powerful enough to run code. This page does not reproduce the request that does it, and neither the bulletin nor the fixed releases depend on knowing it; what the operator needs is the version, the feature flag and the fix.
Two details decide whether a given server is affected. The first is the version: the bug lives in 2.3.20 through 2.3.28, and the fixed point releases (2.3.20.3, 2.3.24.3, 2.3.28.1) contain a corrected ActionMapper that neutralises the prefix. The second is the feature flag. Dynamic Method Invocation is off by default in recent Struts, and the Apache recommendation that accompanies the bulletin is to leave it off; an application that never enabled it is not reachable through this CVE even on a vulnerable version, though it is still running an end-of-life framework. The CVSS attack-complexity of High reflects exactly this: the feature has to be on.
Apache released the three fixed versions on 19 April 2016 and published S2-032 the same week, crediting Nike Zheng of DBAPPSecurity. The 2.3 line it patched is long past its end of life, as is the 2.5 line that followed; the framework’s supported releases are now the 6.x and 7.x series, with 7.5.0 out on 8 November 2026. For ten years this was a closed chapter. CISA’s decision to add it to the exploited list on 8 October 2026, alongside three other old server-side flaws (ProFTPD, BIND and ONLYOFFICE) added the same day, is the signal that old Struts 2.3 applications are still being found on the internet and that the decade-old public tooling for this bug is being pointed at them again.
Who is affected on Linux
Struts is not a distribution package; it is a library bundled inside a Java application’s .war, so no distro tracker carries a fixed version for the framework itself. The rows below record what each tracker says, which is mostly that the CVE does not map to anything they ship. Each row is what the tracker showed on 30 November 2026; the link in a row is the tracker page.
| Distribution | Status | Fixed package |
|---|---|---|
| Debian | Source package libstruts1.2-java marked not affected (“Only affects Struts 2.x”); Struts 2 is not packaged by Debian | — |
| Ubuntu | Source package libstruts1.2-java, “Not in release” across supported releases; Struts 2 is not packaged | — |
| RHEL family | Page unreachable on 30 November 2026; Red Hat shipped Struts 2 only inside certain middleware products of the era, not as an OS package | — |
| Fedora, openSUSE/SLE, Arch | Not consulted; none package the Struts 2 framework for general use | — |
Your application’s WEB-INF/lib | Affected if struts2-core is 2.3.20–2.3.28 (not .3 point releases) and DMI is on | Rebuild on Struts 7.x; as a stopgap, 2.3.28.1, or disable DMI |
How to check
Two questions, in order: which Struts version is on disk, and is Dynamic Method Invocation enabled. Both are answered from the filesystem of the host running the application; there is no need to send the application a request.
# 1. find every Struts core jar on the box and read its version from the jar name and its manifest
sudo find / -name 'struts2-core-*.jar' 2>/dev/null
# the authoritative version is in the manifest, in case the filename was changed
for j in $(sudo find / -name 'struts2-core-*.jar' 2>/dev/null); do
echo "== $j"; unzip -p "$j" META-INF/MANIFEST.MF 2>/dev/null | grep -i 'Specification-Version\|Implementation-Version'
done
# 2. is Dynamic Method Invocation enabled? default is off; look for it being switched on
for app in $(sudo find / -name 'struts.xml' 2>/dev/null); do
echo "== $app"; grep -i 'DynamicMethodInvocation' "$app"
done
# it can also be set in struts.properties or web.xml init-params
sudo find / -name 'struts.properties' 2>/dev/null -exec grep -Hi 'DynamicMethodInvocation' {} \;A struts2-core jar whose version is 2.3.20 to 2.3.28, and not one of the fixed 2.3.20.3 / 2.3.24.3 / 2.3.28.1 point releases, is a vulnerable framework. Whether this CVE is reachable then turns on step 2: struts.enable.DynamicMethodInvocation set to true, in struts.xml as a constant or in struts.properties, is the feature switched on. If the constant appears nowhere, the default (off since Struts 2.3.x on recent configurations) applies and this CVE is not reachable, but the end-of-life framework still is: treat a 2.3 jar as something to replace, not something to leave because one feature was off.
How to fix it
The real fix is to rebuild the application on a supported Struts release; the 2.3 line is a decade past its end of life. That is a development task, not a package upgrade, because Struts is compiled into the .war. While that is planned, the bulletin’s own recommendation closes this CVE immediately: disable Dynamic Method Invocation, which costs nothing unless the application actually relies on the method: prefix.
<!-- struts.xml: force Dynamic Method Invocation off (the bulletin's recommended mitigation) -->
<constant name="struts.enable.DynamicMethodInvocation" value="false" />
<!-- or in struts.properties -->
struts.enable.DynamicMethodInvocation=false
# then rebuild and redeploy the war, and confirm the running app reports a fixed/newer Struts
# (the manifest check from "How to check" run against the deployed, exploded webapp)If an application genuinely depends on DMI and cannot simply turn it off, the only correct step is to move to a current Struts release, where the mechanism was reworked; do not try to keep DMI on under a 2.3.2x build by filtering the request at a proxy, because Struts’s expression evaluation has had a long series of bypasses and a request filter that blocks one shape of input has repeatedly been defeated by another. A WAF rule in front of the application is a monitoring aid, not the fix. The bulletin lists one supported mitigation, disabling the feature, and one supported remedy, upgrading.
Do not read the High attack-complexity or the age of this CVE as reasons to defer. The complexity is High only because the feature must be enabled; where it is enabled the flaw is unauthenticated and the public tooling is a decade mature, which is why EPSS puts it in the 99.9th percentile. The KEV listing in October 2026 is the statement that this is being used now, and a Struts 2.3 application reachable from the internet is overdue for replacement regardless of this one CVE.
Sources
- CVE-2016-3081 at CVE.org — the record (Red Hat as assigning CNA): affected ranges and references
- NVD — status Analyzed, CVSS 3.1 8.1 Primary, CVSS 2 9.3, CWE-77, the Struts CPE ranges, and the KEV dates (last modified 9 October 2026)
- Apache Struts security bulletin S2-032 — the vendor advisory: “Remote Code Execution can be performed via method: prefix when Dynamic Method Invocation is enabled”, maximum rating Important, affected 2.3.20–2.3.28 (except 2.3.20.3 and 2.3.24.3), fixed in 2.3.20.3 / 2.3.24.3 / 2.3.28.1, recommendation to disable DMI
- Apache Struts release announcements, 2016 — the 19 April 2016 release of 2.3.28.1 (and 2.3.20.3, 2.3.24.3) with the security fixes
- CISA Known Exploited Vulnerabilities — added 8 October 2026, action due 11 October 2026, as “Apache Struts Command Injection Vulnerability”
- Distribution trackers: Debian (libstruts1.2-java not affected; Struts 2 not packaged), Ubuntu (not in any release); Red Hat page unreachable on 30 November 2026
- EPSS — 0.969, 99.9th percentile, scored 29 November 2026
Related reading
- CVE-2026-90436: Apache Axis 1.x loads any class named in a SOAP fault — another long-lived Java servlet-stack flaw, and the same lesson about frameworks compiled into a war
- The Life of a Package: Eight Stages Between apt install and Working Software — why a library bundled in a war never appears in your package manager, and so never gets a security update through it
- The Half of Patching That Happens After the Patch is Installed — the application code you deployed is the half apt does not patch
- Hardening a Public-Facing Service Beyond the Basics — running the servlet container as an unprivileged user, which bounds what code execution in it can reach
- A Reverse Proxy with Automatic TLS — a legacy app reachable only through a proxy you control is one you can see and limit, though the proxy is not the fix here
- find — Locate Files by Name, Size and Time — the command behind the jar hunt in “How to check”
This advisory page was assembled from the primary sources listed above on 30 November 2026 and is updated when they change. The facts are theirs; the checks and the ordering are ours. If a row in the distribution table is out of date, the tracker link in that row is the current word.

