Apache Struts S2-081 (CVE-2026-133637): RCE through a Bean Validation message
In Struts applications using the Bean Validation plugin, a validation message carrying a submitted value can be evaluated as an expression. CVE-2026-133637 details and fixes.

The Apache Struts team published S2-081 on November 20, 2026. CVE-2026-133637 lets a validation message be evaluated as an expression in applications using the Bean Validation plugin, potentially leading to remote code execution.
This does not mean every Struts application is remotely exploitable. Apache’s own rating is Moderate; the impact is limited to the Bean Validation plugin, a validation constraint whose message carries the submitted value, and the right configuration. Struts 7 with the default OGNL allowlist is not affected.
Quick summary
| Field | Verified information |
|---|---|
| ID | CVE-2026-133637; Apache Struts S2-081, November 20, 2026 |
| Type | Expression Language injection; validation message evaluated as an expression |
| Affected | Struts 2.5.0–2.5.33 (EOL), 6.0.0–6.12.0, 7.0.0–7.4.0 only with the OGNL allowlist disabled |
| Prerequisite | Bean Validation plugin; a validation constraint whose message carries the submitted value |
| Impact | Possible remote code execution |
| Score | Apache Moderate; NVD CVSS 3.1 8.8 High |
| Fixed in | Struts 7.5.0 or later; 6.13.0 or later on the 6.x line |
| Mitigation | Give every value-bearing constraint an explicit message key and define the text in application resources |
| Exploitation / KEV | No active exploitation in primary sources; not in the November 30, 2026 KEV JSON |
Technical view
Apache’s description is precise: if an application uses the Bean Validation plugin, a validation message that places the submitted value into its text can be evaluated as an expression. Instead of displaying user input as plain text, Struts can evaluate it in its expression language.
This can happen without any special change by the developer: the default message of some validation constraints already includes the value being validated. Apache says this may lead to remote code execution.
The conditions that narrow the scope:
- The Bean Validation plugin must be in use. Applications that do not use it are not affected.
- The Struts 7 default is safe. The default Struts 7 configuration with the OGNL allowlist enabled is not affected. Versions 7.0.0–7.4.0 are in scope only when the allowlist is disabled.
- 6.x and EOL 2.5 are affected. The range includes 6.0.0–6.12.0 and 2.5.0–2.5.33 (EOL).
- NVD and Apache scores differ. NVD says
8.8 High; Apache’s maximum security rating isModerate. The difference comes from different assessment contexts; both are worth recording.
The fix makes a validation message produced by the provider display as plain text. Only a message declared as a key in the application’s message resources is resolved. As a result, applications that relied on a provider-produced message being treated as a key may need to declare an explicit key after upgrading.
What to do
- Check whether you use the Bean Validation plugin. If you do not, this CVE’s path does not apply to you.
- Upgrade to Struts 7.5.0 or 6.13.0. Use at least 7.5.0 on the 7.x line and at least 6.13.0 on the 6.x maintenance line. The 2.5 line is EOL; migrate to a supported release.
- If you cannot upgrade, pin the messages. Give every validation constraint whose message includes the submitted value an explicit message key, and define the text in the application’s message resources. A message resolved from application resources is not affected.
- Check the Struts 7 configuration. Make sure the OGNL allowlist is enabled. If a custom change disabled it, justify it and apply the patch.
- Review validation messages. Look for constraints whose default message includes the validated value, and test places that expect a message key after the upgrade.
What not to claim
- “Every Struts application is affected” — applications without the Bean Validation plugin are out of scope.
- “The Struts 7 default is affected” — the default configuration with the allowlist enabled is not affected.
- “Apache called it critical” — Apache’s maximum rating is
Moderate; NVD says8.8 High. Do not conflate them. - “Unauthenticated RCE” — the NVD vector is
PR:L; the real prerequisite depends on the application’s validation flow. - “No KEV entry means it is not exploited” — absence from KEV does not prove no exploitation; primary sources also report no active exploitation.
- “Upgrading the Struts version is enough, no need to test messages” — the fix changes message resolution behaviour; test applications that use message keys.
Status
As of December 3, 2026, the Struts 7.5.0 and 6.13.0 fixes are available. The NVD record is Analyzed at 8.8 High; Apache’s rating is Moderate. There is no active exploitation report and no KEV entry. For applications using the Bean Validation plugin, the priority is upgrading on a supported line; while waiting, pin value-bearing messages to explicit keys.