Apache Struts: Validation message evaluated as an expression in the Bean Validation plugin

State
Published
Severity
8.8 High
Published
Nov 30, 2026
Updated
Dec 1, 2026
Reserved
Nov 20, 2026

Read the record on cve.org

Description

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.

ProductVersions
Apache Struts Apache Software Foundation2.5.0 through 2.5.33 Affected6.0.0 through 6.12.0 Affected7.0.0 through 7.4.0 Affected

Weaknesses

  • CWE-917 Improper Neutralization of Special Elements used in an Expression Language Statement ('Expression Language Injection')

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.