Improper Neutralization of Special Elements used in an Expression Language Statement ('Expression Language Injection') in org.springframework.cloud:spring-cloud-gateway-core
CVE-2025-41253
- org.springframework.cloud:spring-cloud-gateway-core
- org.springframework.cloud:spring-cloud-gateway-server
- org.springframework.cloud:spring-cloud-gateway-server-webflux
Summary
The following versions of Spring Cloud Gateway Server Webflux may be vulnerable to the ability to expose environment variables and system properties to attackers. An application should be considered vulnerable when all the following are true. First, the application is using Spring Cloud Gateway Server Webflux (Spring Cloud Gateway Server WebMVC is not vulnerable). Second, an admin or untrusted third party using Spring Expression Language (SpEL) to access environment variables or system properties via routes. Third, an untrusted third party could create a route that uses SpEL to access environment variables or system properties if the Spring Cloud Gateway Server Webflux actuator web endpoint is enabled via "management.endpoints.web.exposure.include=gateway" and "management.endpoint.gateway.enabled=true" or "management.endpoint.gateway.access=unrestricted." The actuator endpoints are available to attackers. The actuator endpoints are unsecured. Affected versions are through 4.2.5, 4.3.x through 4.3.1, and 5.0.0-M1 through 5.0.0-M3.
- LOW
- NETWORK
- NONE
- UNCHANGED
- NONE
- NONE
- HIGH
- NONE
CWE-917 - Improper Neutralization of Special Elements used in an Expression Language Statement ('Expression Language Injection')
The software 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.
Advisory Timeline
- Published