CVE-2026-133638

Authorization Bypass
Affects
Apache Struts
in
Apache Struts
No items found.
Versions
>=2.1.2 <=2.3.37, >=2.5.0 <=2.5.33, >=6.0.0 <=6.12.0, >=7.0.0 <=7.4.0

Patch Available.

Exclamation circle icon
Patch Available

This Vulnerability has been fixed in the Never-Ending Support (NES) version offered by HeroDevs.

Overview

Apache Struts is a popular open-source web application framework for developing Java EE web applications. Its Execute and Wait Interceptor runs a long-running action in the background and returns a wait page until the action finishes, while the Token Interceptor and the Token Session Interceptor protect actions against duplicate and cross-site form submissions with a one-time token stored in the user's session.

An authorization bypass vulnerability (CVE-2026-133638) has been identified in the Execute and Wait Interceptor of Apache Struts, which allows attackers to make the Token Interceptor and the Token Session Interceptor accept a token the application never issued. A cross-site request can therefore defeat the protection these interceptors give against cross-site request forgery (CSRF).

Per OWASP: Cross-Site Request Forgery (CSRF) is an attack that forces an end user to execute unwanted actions on a web application in which they're currently authenticated. With a little help of social engineering (such as sending a link via email or chat), an attacker may trick the users of a web application into executing actions of the attacker's choosing.

This issue affects multiple versions of Apache Struts 2, from 2.1.2 through 2.3.37, 2.5.0 through 2.5.33, 6.0.0 through 6.12.0 and 7.0.0 through 7.4.0.

Details

Module Info

Vulnerability Info

This Medium-severity vulnerability is found in the org.apache.struts:struts2-core package in multiple versions of Apache Struts 2. When a background process started by ExecuteAndWaitInterceptor is still running, doIntercept returns the wait result. Before it does, it reads a token value from the request parameters and writes it into the session:

if ((!executeAfterValidationPass || !secondTime) && bp != null && !bp.isDone()) {
    actionInvocation.getStack().push(bp.getAction());
    final String token = TokenHelper.getToken();
    if (token != null) {
        TokenHelper.setSessionToken(TokenHelper.getTokenName(), token);
    }
    ...
    return WAIT;
}

TokenHelper.getToken() returns the value of the token request parameter, and TokenHelper.getTokenName() returns the value of the struts.token.name request parameter. setSessionToken then stores that value in the session attribute struts.tokens.<name>, which is exactly the attribute TokenHelper.validToken() later compares a submitted token against. The interceptor does this whether or not a token was validated in the same request, so nothing ties the stored value to a token the application issued.

An attacker can therefore have a victim's browser send a cross-site request to any action that uses the Execute and Wait Interceptor without a token check in front of it, carrying struts.token.name and token parameters with a value the attacker chose. That value is planted in the victim's session as a valid token. A second cross-site request to an action protected by the Token Interceptor or the Token Session Interceptor can then submit the same value and pass validation, defeating the CSRF protection. Applications that do not use the Execute and Wait Interceptor, or that do not rely on the Token Interceptor or the Token Session Interceptor, are not affected.

Mitigation

Only recent versions of Apache Struts are community-supported. Older lines are End-of-Life and will not receive any updates to address this issue.

Until an upgrade is possible, the Apache Struts advisory describes a workaround: declare the Token Interceptor or the Token Session Interceptor before the Execute and Wait Interceptor on every action that uses it, including actions using the executeAndWaitStack, and submit to those actions only from pages that carry a token.

Users of the affected components should apply one of the following mitigations:

  • Upgrade affected applications to a supported version of Apache Struts.
  • Leverage a commercial support partner like HeroDevs for post-EOL security support.

Credits

  • Adam Korczynski from Ada Logics, for Anthropic (finder)
Vulnerability Details
Severity
Level
CVSS Assessment
Low
>=0 <4
Medium
>=4 <6
High
>=6 <8
Critical
>=8 <10
Medium
ID
CVE-2026-133638
PROJECT Affected
Apache Struts
Versions Affected
>=2.1.2 <=2.3.37, >=2.5.0 <=2.5.33, >=6.0.0 <=6.12.0, >=7.0.0 <=7.4.0
NES Versions Affected
Published date
November 30, 2026
≈ Fix date
Category
Authorization Bypass
Vex Document
Download VEXHow do I use it?
Sign up for the latest vulnerability alerts fixed in
NES for Apache Struts
Rss feed icon
Subscribe via RSS
or

By submitting the form I acknowledge receipt of our Privacy Policy.

Thanks for signing up for our Newsletter! We look forward to connecting with you.
Oops! Something went wrong while submitting the form.