Summary
CVE-2026-104711 is an Expression Language (OGNL) Injection vulnerability (CWE-917) in Apache Struts affecting applications that use the framework’s legacy RESTful action mapper. A remote, unauthenticated attacker can craft a malicious request that is interpreted as an OGNL expression, potentially resulting in remote code execution. The flaw carries a CVSS v3.1 base score of 9.8 (Critical).
Technical details
- Root cause: The legacy RESTful action mapper fails to properly neutralize OGNL expression syntax embedded in incoming request data before it is evaluated.
- Trigger conditions: The vulnerability only applies to applications explicitly configured to use the legacy RESTful action mapper. Applications using the default action mapper, the
restful2mapper, or the Struts REST plugin are not affected. On Struts 7.x, exploitation additionally requires that the OGNL allowlist protection has been disabled (it is enabled by default). - Attack vector: Network — an attacker sends a specially crafted HTTP request containing an OGNL payload to a vulnerable Struts application; no authentication or user interaction is required.
- Impact: Successful exploitation can result in arbitrary code execution on the server, with full compromise of confidentiality, integrity, and availability.
Affected software
- Apache Struts 2.0.0 through 2.3.37
- Apache Struts 2.5.0 through 2.5.33
- Apache Struts 6.0.0 through 6.11.0
- Apache Struts 7.0.0 through 7.3.0 (only when the OGNL allowlist has been disabled)
Severity
CVSS v3.1 Base Score: 9.8 (Critical)
Vector: AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Mitigation and recommended actions
- Immediate: Upgrade to Apache Struts 6.12.0 or 7.4.0 (or later), both of which fix this issue.
- If immediate patching is not possible:
- Stop using the legacy RESTful action mapper — switch to the default action mapper, the
restful2mapper, or the Struts REST plugin, none of which are affected. - On Struts 7.x, ensure the OGNL allowlist protection is enabled (it is enabled by default; confirm it has not been disabled in configuration).
- Restrict network exposure of the affected application where upgrading or reconfiguration cannot be performed immediately.
- Stop using the legacy RESTful action mapper — switch to the default action mapper, the

