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

low-risk

The product constructs all or part of an expression language (EL) statement in a framework such as a Java Server Page (JSP) using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended EL statement before it is executed.

Abstraction: Base

Common Consequences

Confidentiality Read Application Data
Integrity Execute Unauthorized Code or Commands

Detection Methods

Automated Static Analysis

Automated static analysis, commonly referred to as Static Application Security Testing (SAST), can find some instances of this weakness by analyzing source code (or binary/compiled code) without having to execute it. Typically, this is done by building a model of data flow and control flow, then searching for potentially-vulnerable patterns that connect "sources" (origins of input) with "sinks" (destinations where the data interacts with external components, a lower layer such as the OS, etc.)

Real-World Examples (10)

CVE CVSS EPSS KEV
CVE-2022-22963 9.8 94.5% Y
CVE-2022-22947 10.0 94.5% Y
CVE-2021-26084 9.8 94.4% Y
CVE-2021-26084 9.8 94.4% Y
CVE-2022-26134 9.8 94.4% Y
CVE-2022-26134 9.8 94.4% Y
CVE-2020-10199 8.8 94.4% Y
CVE-2020-10199 8.8 94.4% Y
CVE-2020-17530 9.8 94.4% Y
CVE-2020-17530 9.8 94.4% Y
20
/ 100
low-risk
Active Threat 15/50 · Low
Exploit Availability 5/50 · Minimal