CVE-2026-104711
org.apache.struts/struts2-core: Apache Struts: Arbitrary code execution via expression injection in legacy RESTful action mapper
Severity
ImportantRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · October 6, 2026
Updated · October 30, 2026
Description
Apache Struts has an OGNL expression-injection vulnerability in the legacy RESTful action mapper. A crafted request to an application configured to use this mapper may lead to remote code execution. Applications using the default action mapper, the restful2 mapper, or the Struts REST plugin are not affected. Struts 7 is affected only when the OGNL allowlist is disabled; it is enabled by default.
Statement
This vulnerability is rated as Important severity because an unauthenticated remote attacker could achieve arbitrary code execution by submitting malicious requests that trigger OGNL expression evaluation. However, the risk is mitigated in standard environments because exploitation requires an explicit, non-default configuration to use the legacy RESTful action mapper. Deployments relying on standard action mapping, the restful2 mapper, or the Struts REST plugin remain unaffected, and Struts 7 environments are shielded by default via active OGNL allowlisting.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
No mitigation is specified in collected source.
CVSS / CWE
CVSS 3.1 · 8.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
CWE-917 · Improper Neutralization of Special Elements used in an Expression Language Statement ('Expression Language Injection')