Security
Nov 30, 2026

CVE-2026-133637 & CVE-2026-133642: Struts RCE & Auth Bypass

A validation message evaluated as OGNL and an action-mapping path mismatch combine into RCE and auth bypass on Struts 2.5. Here's how to check and fix it.

Give me the TL;DR
CVE-2026-133637 & CVE-2026-133642: Struts RCE & Auth Bypass

Apache Struts CVE-2026-133637 (S2-081), disclosed by the Apache Struts project on November 30, 2026, lets a submitted form value be evaluated as OGNL (Object-Graph Navigation Language) through the Bean Validation plugin, a path to remote code execution that Apache says can happen "without any change by the developer." Its companion, CVE-2026-133642 (S2-086), lets a request pass URL-based authorization under one path while Struts runs a different action, so on Struts 2.5, where neither flaw has an upstream fix, an application that enforces login by URL pattern can hand that RCE to an attacker with no account.

Apache's fix lands only in 6.13.0 and 7.5.0. For a 2.5 application, reaching either one is a framework migration, not a dependency bump: Struts 7 is compiled for Java 17 and built on the Jakarta Servlet API.

Affected and unsupported? See NES (Never-Ending Support) for Struts.

What are CVE-2026-133637 and CVE-2026-133642?

Both CVEs arrived in the same coordinated batch, Apache bulletins S2-081 through S2-087, announced on the oss-security list on November 30, 2026. They are the two serious entries in it. The rest are denial of service, CSRF, and cross-site scripting issues, covered under Related CVEs below. These two share a familiar Struts failure pattern: the framework trusts data more than it should. In one case it is a user-submitted value inside an error message. In the other it is the raw request path.

CVE-2026-133637: Validation message evaluated as an expression

The Bean Validation plugin (struts2-bean-validation-plugin) wires Jakarta/JSR-303 Bean Validation constraints into Struts actions. When a constraint fails, the validation provider builds an error message, and Struts shows it on the form.

Per the S2-081 bulletin, a validation message that places the submitted value into its text could be evaluated as an expression rather than shown as text. The source shows why. In 2.5.33, BeanValidationInterceptor takes the provider's finished message, with the submitted value already interpolated into it, and passes it to getText() as if it were a message key. No key by that name exists, so Struts falls back to using the key itself as default text, and AbstractLocalizedTextProvider.getDefaultMessage() runs that text through TextParseUtil.translateVariables(). That is OGNL evaluation. An attacker who submits a value containing an expression gets it evaluated in the application's context.

The bulletin is blunt about the precondition: this "can happen with validation constraints whose standard message already includes the value being validated, without any change by the developer." The 7.5.0 fix adds a resolveMessage() method that looks up the constraint's message template as a Struts key only when the application actually defines that key. Everything else is returned as plain text.

Struts 7 is not affected in its default configuration, because the OGNL allowlist (struts.allowlist.enable=true) blocks the evaluation. Struts 2.5 has no allowlist at all, and Apache lists all 6.x releases through 6.12.0 as affected. Applications that do not use the Bean Validation plugin are not affected.

CVE-2026-133642: Action mapped from a path the container did not authorize

When a request arrives, the servlet container decodes and normalizes the path. That normalized path is what security-constraint entries in web.xml, URL-pattern servlet filters, and reverse-proxy rules match against. Struts then decides which action to run.

Per the S2-086 bulletin, Struts derived the action path "from the request as it was received rather than from the path the servlet container had already decoded and normalised." When the two differ, a request is authorized under one path and executed as a different action. The same gap lets Struts handle requests whose path matched struts.action.excludePattern, which were never supposed to reach Struts at all.

The fix maps actions from the servlet path and path info the container reports. A compatibility note in the bulletin hints at where the gap was: the REST plugin no longer recognizes the ;edit URL form. Semicolon path parameters are one place where a raw request URI and a normalized servlet path diverge.

Applications that enforce authorization inside Struts, for example with an interceptor on the action, check the action that actually runs and are not affected by the bypass.

Severity and exploit conditions

CVE-2026-133637

Apache, the assigning CNA, rates CVE-2026-133637 Moderate and publishes no vector. CISA's ADP enrichment scores it 8.8 High. NVD had not completed its analysis as of November 30, 2026.

The interesting part is the gap between Moderate and 8.8. CISA scores the worst case once an attacker reaches a vulnerable constraint. Apache's rating reflects how many conditions have to line up first: the Bean Validation plugin is in use, an attacker-controlled field is validated by a constraint whose message echoes the value, and the application runs 2.5, 6.x, or 7 with the allowlist off.

The PR:L in CISA's vector is also worth reading carefully. It assumes an attacker with an account. Apache's bulletin states no authentication requirement, and in practice that depends on where your validated forms sit. Registration, password reset, and search forms often validate input before any login. And where login is enforced by URL pattern, CVE-2026-133642 can take the account requirement away.

CVE-2026-133642

Apache rates CVE-2026-133642 Important. No CVSS vector has been published by Apache or CISA's ADP, and NVD lists it as undergoing analysis. Until a vector lands, judge exposure by where your access control lives:

What an attacker can do with CVE-2026-133637 and CVE-2026-133642

  • Chain the two into RCE without an account. In an application whose only login gate is a URL pattern, CVE-2026-133642 gets the attacker past the gate and CVE-2026-133637 turns a form field behind it into OGNL evaluation. Both preconditions have to hold in the same application. On Struts 2.5, neither has an upstream fix.
  • Run OGNL on the server (CVE-2026-133637). A crafted value submitted to a field whose constraint message echoes it is evaluated in the application's context. Apache says this may lead to remote code execution: OS commands running as the application server's account, reading configuration files, environment variables, and datasource credentials, or changing application state.
  • Reach protected actions directly (CVE-2026-133642). Actions under a prefix such as /admin/*, guarded only by a security-constraint or a proxy rule, can be invoked through a path the guard reads differently. That covers admin consoles, user management, and export or report actions.
  • Reach paths Struts was told to ignore (CVE-2026-133642). Requests matching struts.action.excludePattern can be routed into Struts action handling anyway.

Am I affected?

Each check below takes a minute or two. Run them against the exploded WAR, the WEB-INF directory of a deployed application, or your source tree.

Which Apache Struts version am I running?

Read Implementation-Version from the struts2-core jar's manifest:

unzip -p WEB-INF/lib/struts2-core-*.jar META-INF/MANIFEST.MF | grep Implementation-Version

From a build, list the Struts artifacts on the classpath:

mvn dependency:tree -Dincludes=org.apache.struts
gradle dependencies --configuration runtimeClasspath | grep org.apache.struts

Anything at or below 2.5.33, 6.12.0, or 7.4.0 is in range for CVE-2026-133642. So is every 2.x release from 2.1.2 through 2.3.37.

Do I use the Bean Validation plugin?

find /path/to/deployments -path '*WEB-INF/lib/struts2-bean-validation-plugin-*.jar'
unzip -l app.war | grep struts2-bean-validation-plugin

No match means CVE-2026-133637 does not apply to that application.

Do any constraint messages include the submitted value?

Custom messages that interpolate the value are easy to find:

grep -rn 'validatedValue' src/

That catches messages you wrote. It does not catch the validation provider's standard messages, and Apache says some of those already include the value. Until you have checked your provider's defaults, treat every constraint without an explicit Struts message key as in scope.

Is the OGNL allowlist enabled? (Struts 7)

Struts 7 ships with struts.allowlist.enable=true. Check that nothing turns it off in struts.xml, struts.properties, or a filter init-param in web.xml:

grep -rn 'struts.allowlist.enable' src/main/resources/ src/main/webapp/WEB-INF/

A result set to false puts Struts 7 back in scope for CVE-2026-133637.

Do I rely on URL patterns for access control?

List every URL pattern covered by a security-constraint, then every filter mapping:

awk '/<security-constraint>/,/<\/security-constraint>/' WEB-INF/web.xml | grep -o '<url-pattern>[^<]*' | sed 's/<url-pattern>//'
awk '/<filter-mapping>/,/<\/filter-mapping>/' WEB-INF/web.xml | grep -o '<url-pattern>[^<]*' | sed 's/<url-pattern>//'

Any pattern that protects Struts actions is a bypass candidate. Do the same review for path rules in the reverse proxy or load balancer in front of the application.

Do I use struts.action.excludePattern?

grep -rn 'struts.action.excludePattern' src/ WEB-INF/

Every pattern listed is a path Struts can be made to handle under CVE-2026-133642.

Which Struts versions are affected?

Is there a fix for Struts 2.5 or 2.3?

Not upstream. Struts 2.5 reached end of life on April 30, 2024, and its final release, 2.5.33, shipped in December 2023. Struts 2.3 reached end of life on May 14, 2019, with 2.3.37 as its final release (endoflife.date). Both final releases fall inside the affected ranges. No 2.5.34 or 2.3.38 is coming.

Is Struts 7 affected by CVE-2026-133637?

Only if the OGNL allowlist has been disabled. Struts 7 is still affected by CVE-2026-133642 regardless of configuration, so upgrade to 7.5.0 or later either way.

Is Struts 1 affected?

No. Struts 1.x is a separate codebase and is outside the affected ranges for both CVEs.

Mitigation guidance for Struts 2.5, 6, and 7

Applying the S2-081 workaround

Apache's workaround is to give every constraint whose message includes the validated value an explicit message key, with the text defined in the application's own message resources. Before, a message that echoes the submitted value:

@Size(min = 3, max = 40, message = "'${validatedValue}' must be 3 to 40 characters")
private String username;

After, a Struts message key with no value in the template:

@Size(min = 3, max = 40, message = "user.username.size")
private String username;
# package.properties, or the bundle named in struts.custom.i18n.resources
user.username.size=Username must be 3 to 40 characters.

The key resolves from your resource bundle, so the text Struts evaluates is text you wrote, not text the user submitted.

What changes when you upgrade

After S2-081, an application that relied on a provider-produced message being resolved as a Struts key must declare that key explicitly. After S2-086, the REST plugin drops the ;edit URL form in favor of /edit, and struts.mapper.editMethodName no longer affects URL mapping.

Related CVEs

The rest of the November 30, 2026 batch affects the same Struts lines, including 2.5.33, and is fixed in 6.13.0 and 7.5.0:

  • CVE-2026-133640 (S2-084) and CVE-2026-133641 (S2-085): asymmetric resource consumption when BigDecimal request parameters are rendered. CVE-2026-133640 is an incomplete fix for CVE-2026-104712, disclosed in October 2026.
  • CVE-2026-133638 (S2-082): the Execute and Wait Interceptor lets the Token Interceptor accept a token the application never issued, defeating CSRF protection.
  • CVE-2026-133639 (S2-083) and CVE-2026-133643 (S2-087): cross-site scripting in the Javatemplates plugin and the doubleselect tag.

This is the third Struts disclosure wave in four months to land on 2.5 with no OSS fix. October 2026 brought CVE-2026-104711, an OGNL injection in the legacy RESTful action mapper, alongside CVE-2026-104712. August 2026 brought two unauthenticated denial of service flaws, CVE-2026-73635 and CVE-2026-73633. For the full year's picture, see Apache Struts vulnerabilities in 2026, and for where each branch stands, Apache Struts end-of-life dates.

Taking action on CVE-2026-133637 and CVE-2026-133642

Run the checks under "Am I affected?" first. Whether struts2-bean-validation-plugin is on your classpath and where your URL-based access control lives tell you how exposed you are today. On Struts 6 or 7, the answer is to upgrade to 6.13.0 or 7.5.0.

On Struts 2.5 or 2.3, there is no upstream release coming. NES for Struts resolves CVE-2026-133637 and CVE-2026-133642 on Struts 2.5, and CVE-2026-133642 on Struts 2.3, with drop-in replacements. You stay on the branch your application was built against, patched against this batch and the ones that follow, and migrate on your own schedule.

‍

Table of Contents
Author
Greg Allen
Chief Technology Officer
Open Source Insights Delivered Monthly