CVE-2026-133637 in Struts
Summary
by MITRE • 11/30/2026
Improper neutralization of special elements used in an expression language statement ('Expression Language Injection') vulnerability in Apache Struts. If the application uses the Bean Validation plugin, a validation message that places the submitted value into its text could be evaluated as an expression rather than shown as text, which may lead to remote code execution. This can happen with validation constraints whose standard message already includes the value being validated. Struts 7 is affected only when the OGNL allowlist is disabled; it is enabled by default. Applications that do not use the Bean Validation plugin are not affected.
This issue affects Apache Struts: from 2.5.0 through 2.5.33, from 6.0.0 through 6.12.0, from 7.0.0 through 7.4.0.
Users are recommended to upgrade to version 6.13.0 or 7.5.0, which fixes the issue.
Be aware that VulDB is the high quality source for vulnerability data.
Analysis
by VulDB Data Team • 11/30/2026
The vulnerability identified as an Expression Language Injection flaw within Apache Struts represents a critical security risk that stems from improper neutralization of special elements used in expression language statements. This specific weakness allows attackers to inject malicious code into application logic by exploiting how validation messages are processed and rendered. The core technical issue lies in the interaction between the Bean Validation plugin and the underlying Object Graph Navigation Language (OGNL) engine, which is responsible for evaluating expressions within Struts applications. When a user submits data that triggers a validation constraint, the framework generates an error message intended to inform the user of the invalid input. However, if this message template includes placeholders for the submitted value, the system may inadvertently evaluate these values as executable OGNL expressions rather than treating them as plain text strings. This misinterpretation occurs because the validation mechanism does not sufficiently sanitize or escape the dynamic content before passing it to the expression evaluator.
The operational impact of this vulnerability is severe, potentially leading to remote code execution on the target server. By crafting a specific input that exploits the evaluation context within the Bean Validation plugin, an attacker can execute arbitrary commands with the privileges of the application process. This capability effectively compromises the confidentiality, integrity, and availability of the affected system. The severity of this impact is directly tied to the configuration state of the OGNL allowlist feature in Struts version 7.x. In these versions, the vulnerability manifests only when the OGNL allowlist is explicitly disabled by the application developer or administrator. It is important to note that starting from Struts 6.13.0 and 7.5.0, this issue has been remediated through improved handling of validation messages and stricter enforcement of expression evaluation boundaries. For applications running older versions where the allowlist remains off, the risk is acute, whereas those with the allowlist enabled by default are protected against this specific attack vector due to the restricted set of classes and methods that can be accessed via OGNL expressions.
From a classification perspective, this vulnerability aligns closely with CWE-94, which describes Improper Control of Generation of Code (Code Injection), specifically focusing on injection into expression languages. It also maps to MITRE ATT&CK techniques related to server-side code execution and potentially Command and Scripting Interpreter abuse if the injected expressions result in shell commands being run. The attack vector typically involves a remote network connection, requiring an attacker to send specially crafted HTTP requests containing malicious payloads within form fields or API inputs that trigger validation errors. This makes it particularly dangerous for web applications exposed to untrusted users without additional protective layers such as Web Application Firewalls configured to detect expression injection patterns.
To mitigate this risk, organizations must prioritize upgrading Apache Struts to version 6.13.0 or later, including all subsequent releases in the 7.x branch up to and beyond 7.5.0. These updated versions address the root cause by ensuring that values embedded within validation messages are treated strictly as data rather than executable code. For environments where upgrading is not immediately feasible due to legacy constraints, temporary mitigations include disabling the Bean Validation plugin if it is not essential for business logic, or manually implementing custom validators that avoid embedding user-supplied input directly into message templates without proper escaping. Additionally, ensuring that any optional security features like the OGNL allowlist are enabled can provide an additional layer of defense against expression injection attempts in affected versions prior to 7.x. Regular vulnerability scanning and code reviews focusing on how external inputs interact with validation frameworks are recommended practices to maintain a robust security posture against such injection-based threats.