CVE-2025-41253 Spring Cloud Gateway Webflux SpEL Injection Vulnerability Allowing Exposure of Environment Variables
Attackers can expose environment variables and system properties via SpEL injection in Spring Cloud Gateway Webflux if actuator endpoints are exposed and unsecured.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-41253?
CVE-2025-41253 is a high-severity code injection vulnerability in VMware Spring Cloud Gateway Server Webflux, published on 16 Oct 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
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:
* The application is using Spring Cloud Gateway Server Webflux (Spring Cloud Gateway Server WebMVC is not vulnerable). * An admin or untrusted third party using Spring Expression Language (SpEL) to access environment variables or system properties via routes. * 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=trueor management.endpoint.gateway.access=unrestricte. * The actuator endpoints are available to attackers. * The actuator endpoints are unsecured.
Weakness: CWE-917
Which versions are affected by CVE-2025-41253?
8 open source packages ship an affected version, including org.springframework.cloud:spring-cloud-gateway-server.
| Package | Affected | Fixed in |
|---|---|---|
org.springframework.cloud:spring-cloud-gateway-server Maven | All versions to 3.1.10 | None |
org.springframework.cloud:spring-cloud-gateway-server Maven | All versions to 3.1.10 | None |
org.springframework.cloud:spring-cloud-gateway-server Maven | From 4.0.0 to 4.1.9 | None |
org.springframework.cloud:spring-cloud-gateway-server Maven | From 4.0.0 to 4.1.9 | None |
org.springframework.cloud:spring-cloud-gateway-server Maven | From 4.2.0 | 4.2.6 |
org.springframework.cloud:spring-cloud-gateway-server Maven | From 4.2.0 | 4.2.6 |
2 more packages
org.springframework.cloud:spring-cloud-gateway-server Maven | From 4.3.0 | 4.3.2 |
org.springframework.cloud:spring-cloud-gateway-server Maven | From 4.3.0 | 4.3.2 |
How do I fix CVE-2025-41253?
Upgrade org.springframework.cloud:spring-cloud-gateway-server to a fixed version for your release line: 4.2.6 or 4.3.2.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2025-41253 being exploited?
There is no known exploitation of CVE-2025-41253 in the wild and no public exploit code.
Sources
Also known as GHSA-fwxx-wv44-7qfg, ROOT-APP-MAVEN-CVE-2025-41253.