CVE-2026-133644: Apache Struts does not enforce an HTTP method restriction declared on an action’s default method, so @HttpPost on execute() restricts nothing

ByLinuxtastic

December 2, 2026 #Apache Struts, #CVE

Since Struts 6.2.0 an action can say which HTTP methods it accepts with annotations such as @HttpPost or @HttpGet, on the class or on the method. The Apache CNA record says that “when the annotation is placed on the action’s default method and the action mapping does not name that method explicitly, the restriction is not enforced and the action can be invoked with any HTTP method.” That is the common case: most actions run execute() by default and most mappings do not spell it out. Apache rates it Low, because the annotations are an extra and an application that does not use them loses nothing; it is one of the ten bulletins S2-079 to S2-088 that Apache announced together on 30 November 2026, all fixed by Struts 7.5.0 and 6.13.0 (GA 20 November 2026; 7.5.1 of 26 November is the current 7.x release) except S2-079, fixed in 6.10.0 in May, and S2-088, fixed in 7.5.0 only, and the odd one out in that the 6.x line does not carry the fix. On 7.x, upgrade to 7.5.0 or later; on 6.x, and on 7.x until the upgrade, declare the restriction on the action class rather than on the method.

CVE-2026-133644 at a glance.

ComponentApache Struts, struts2-core: enforcement of the HTTP method annotations (@HttpGet, @HttpPost, @HttpPut, @HttpDelete, @HttpMethod, @HttpGetOrPost) when they sit on an action’s default method
Affected versionsStruts 6.2.0 through 6.13.0 and 7.0.0 through 7.4.0, per the Apache CNA record and the bulletin; releases before 6.2.0 do not have the annotations. Note that 6.13.0, the security release for the rest of the set, is inside this range
Fixed inStruts 7.5.0 only, GA 20 November 2026; 7.5.1 of 26 November is current. The change is WW-5844, “fix(core)!: enforce HTTP method annotations across action hierarchies and plugin stacks”, pull request #2120 by g0w6y (release notes; the 6.13.0 notes carry no counterpart, and the bulletin says “The 6.x maintenance line does not carry this fix”). No distribution packages Struts 2
SeverityApache: Low (“Maximum security rating” on the bulletin), CWE-863 incorrect authorisation. No CVSS score from any source: NVD is Awaiting Analysis with an empty metrics block on 2 December 2026, the CNA gives none and the CISA ADP has not added one
Exploited in the wildNot on the CISA KEV catalogue (2026.11.30). EPSS 0.00378 (34th percentile) on 1 December 2026. The bulletin notes “A public report with a reproduction exists”
Who is exposedStruts applications on an affected line that put an HTTP method annotation on execute() or another default method and rely on it, for example to make a state-changing action POST-only. The bulletin: applications that do not use the annotations are not affected; actions that carry the annotation on the class enforce it; and from 6.9.0 and 7.2.1 a mapping that names the method explicitly enforces it too
PublishedApache bulletin S2-088 last updated 20 November 2026; announcement and CVE record 30 November 2026; this page built 2 December 2026, last updated 2 December 2026

What it is

The HTTP method annotations arrived in 6.2.0 as a way of saying, in code, that an action or one of its methods must only be reached by POST, or GET, or a chosen set. Enforcement happens when Struts resolves which method of the action class to invoke: it reads the annotations on the class and on the resolved method and rejects a request that uses a method outside the allowed set. The bulletin describes the gap: when the annotation is on the action’s default method and the mapping leaves the method implicit, the check did not look at the method that would be invoked, so the annotation was simply not consulted and the action ran for any HTTP method.

Two things narrow it. An annotation on the action class was always enforced (S2-079 covers the one release, 6.9.0, where even that failed in a particular configuration), and from 6.9.0 on the 6.x line and 7.2.1 on the 7.x line a mapping that names the method explicitly is enforced as well. So the exposed pattern is specifically @HttpPost public String execute() with a mapping of the form <action name="save" class="..."> and nothing more, which is also the most natural way to write it. The reporter is Gouri Sankar A (g0w6y), who also reported S2-079 and contributed the fix here; the bulletin notes a public report with a reproduction exists.

The fix in 7.5.0 (WW-5844, pull request #2120, marked breaking in the release notes) enforces the annotations “across action hierarchies and plugin stacks”. The bulletin lists two observable differences: an action that inherits a restriction from a parent class or interface is now restricted too, and the default interceptor stacks of the REST and Bean Validation plugins now enforce HTTP method restrictions. The 6.x line does not get the change, and the bulletin’s instruction for 6.x is the workaround: move the annotation from the method to the class, or name the method in the mapping on 6.9.0 and later.

Who is affected on Linux

Each row is what the distribution’s own security tracker said on 2 December 2026; the link in the row is the tracker page, which will be newer than this one. Struts 2 is a Maven dependency and no distribution packages it, so the row that matters is the last one.

DistributionStatusFixed package
AlpineNot consulted for this page; Alpine does not package Struts—
DebianNOT-FOR-US: “Apache software not packaged in Debian” (the tracker page for S2-086 was read; the set shares the entry)—
UbuntuTracker returned a server error to the automated reader on 2 December 2026; Ubuntu does not package Struts 2—
RHEL, Rocky, Alma, CentOS StreamNot consulted for this page; Red Hat does not ship Struts 2 in RHEL—
openSUSE/SLENot consulted for this page; SUSE does not ship Struts 2—
Maven Central (org.apache.struts), application bundles, containers with a vendored warThe upstream release applies; every application on an affected line needs a rebuild and redeploy. Release tags STRUTS_7_5_0 and STRUTS_6_13_0 were cut on 8 November 2026 (GitHub shows 7.5.0 as a pre-release); GA is the 20 November date on the announcement page. For this bulletin only 7.5.0 and later are fixed; 6.13.0 is inside the affected range and 6.x applications use the workaround7.5.0 (7.x line; 7.5.1 is current) or 6.13.0 (6.x line)

How to check

After the version, the question is whether any annotation sits on a default method, and whether the mapping names that method. A grep over the Java and the configuration answers it.

# 1. the Struts jars an application actually loads (6.13.0 / 7.5.0 and later are fixed; 2.3.x and 2.5.x are end of life)
for p in $(pgrep -x java); do tr '\0' '\n' < /proc/$p/cmdline | grep -oE '[^:]*struts2?-[a-z-]+-[0-9][^:]*\.jar' | sed "s/^/pid $p: /"; done
find / -name 'struts2-core-*.jar' 2>/dev/null | grep -vE '/\.m2/' | sort -u
for w in /opt/*/*.war /opt/*/webapps/*.war /var/lib/tomcat*/webapps/*.war; do unzip -l "$w" 2>/dev/null | grep -oE 'struts2-[a-z-]+-[0-9][^ ]*\.jar' | sed "s|^|$w: |"; done 2>/dev/null

# 2. HTTP method annotations on methods (the exposed placement) versus on classes (enforced)
grep -rnE -B1 '^\s*public\s+String\s+(execute|input)\s*\(' --include='*.java' /path/to/src | grep -E '@Http(Get|Post|Put|Delete|Method|GetOrPost)' | head
grep -rnE -A1 '@Http(Get|Post|Put|Delete|Method|GetOrPost)' --include='*.java' /path/to/src | grep -E 'class\s+\w+' | head

# 3. do the mappings name the method (enforced from 6.9.0 / 7.2.1) or leave it implicit (not enforced)
grep -rnE '<action name="[^"]+" class="[^"]+"( method="[^"]+")?' --include='struts*.xml' /path/to/src | grep -v 'method=' | head
grep -rnE '@Action\(|@Actions\(' --include='*.java' /path/to/src | head

A 7.5.0 or 7.5.1 jar is fixed. On any 6.x or an older 7.x, a hit in the first line of step 2 is an annotation on a default method, and if the matching mapping in step 3 has no method= attribute the restriction is not enforced; a POST-only action can be driven with a GET from an image tag or a link. Annotations on the class (second line of step 2) are enforced on every release except 6.9.0 in the S2-079 configuration. No annotations at all means the page does not apply.

How to fix it

On 7.x, upgrade and rebuild. On 6.x there is no fixed release, so the workaround is the fix: declare the restriction on the class, which every release enforces, and keep it there after any later upgrade.

# 7.x: Maven (7.5.1 is current)
<dependency>
  <groupId>org.apache.struts</groupId>
  <artifactId>struts2-core</artifactId>
  <version>7.5.1</version>
</dependency>
mvn -U clean package
// 6.x (and 7.x until upgraded): move the annotation from the default method to the class
@HttpPost                                   // enforced on every release
public class SaveAction extends ActionSupport {
    public String execute() { ... }         // was: @HttpPost public String execute()
}
<!-- alternative on 6.9.0+ / 7.2.1+: name the method in the mapping, which is enforced -->
<action name="save" class="com.example.SaveAction" method="execute"/>

After upgrading to 7.5.0, test actions that inherit from a base class carrying an annotation, and anything on the REST or Bean Validation plugin stacks, because both now enforce restrictions they previously ignored; a GET that used to work may now be rejected, which is the intended behaviour. What not to do: do not treat an HTTP method restriction as CSRF protection in the first place. It stops the simplest cross-site GET, nothing more; the Token Interceptor and SameSite cookies are the controls for that, and this bulletin is a reason to check they are in place rather than a reason to rely on the annotation harder.

Sources

  • CVE-2026-133644 at CVE.org — the Apache CNA record (30 November 2026): the description, the affected ranges, the fix versions and the CWE; no CVSS metric from the CNA or the CISA ADP on 2 December 2026
  • Apache Struts bulletin S2-088 — Low, the default-method placement, the 6.9.0/7.2.1 explicit-method note, “The 6.x maintenance line does not carry this fix”, the class-level workaround, the inheritance and plugin-stack compatibility notes, the public reproduction; created by Lukasz Lenart, last updated 20 November 2026
  • Struts announcements — 7.5.0 and 6.13.0 GA on 20 November 2026, 7.5.1 on 26 November, 6.10.0 GA on 25 May 2026, and the ten security announcements of 30 November 2026 including this one; downloads
  • Struts 7.5.0 release notes — WW-5844 “fix(core)!: enforce HTTP method annotations across action hierarchies and plugin stacks” by g0w6y, #2120; the 6.13.0 notes have no counterpart
  • NVD entry — Awaiting Analysis, published 30 November 2026 (read on 2 December 2026); the CWE from Apache, no CVSS metric in the JSON
  • Distribution trackers: Debian (NOT-FOR-US, read for the set); Ubuntu returned a server error to the automated reader on 2 December 2026; Red Hat and SUSE not consulted, neither ships Struts 2
  • CISA KEV catalogue 2026.11.30, not listed · EPSS 0.00378 (percentile 0.339) on 1 December 2026

Related reading

This advisory page was assembled from the primary sources listed above on 2 December 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.