CVE-2025-41253
Spring Cloud Gateway Server Webflux is vulnerable to Expression Language Injection
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.
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.springframework.cloud » spring-cloud-gateway-server | <= 3.1.10>= 4.0.0, <= 4.1.9>= 4.2.0, < 4.2.6>= 4.3.0, < 4.3.2 | 4.2.6, 4.3.2 |
Blast radius
53% of the dependent artifacts (35) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 241 |
| 2 hops | 309 |
| 3 hops | 37 |
Most used dependents
- org.springframework.cloud » spring-cloud-starter-gateway325 usages
- org.springframework.cloud » spring-cloud-starter-gateway-server-webflux86 usages
- org.springframework.cloud » spring-cloud-gateway-core33 usages
- org.springframework.cloud » spring-cloud-gateway-server-webflux31 usages
- io.gitee.gzcltech.security » security-service-jwt-gateway-starter4 usages
- io.gitee.gzcltech.security » security-service-jwt-gateway-federation-starter2 usages
- com.github.fanzezhen.common » common-gateway2 usages
- net.bretti.openapi-route-definition-locator » openapi-route-definition-locator-core1 usages
- com.contentgrid.thunx » thunx-spring-gateway1 usages
- io.gitee.gzcltech.security » security-service-jwt-gateway1 usages
- io.owlframework » owl-swagger-gateway-spring-boot-starter1 usages
- io.gitee.gzcltech.security » security-service-token-gateway-federation-starter-redis1 usages
- io.github.breninsul » webflux-logging1 usages
- cn.infrabase » infrabase-cloud-gateway1 usages
- cn.koala.cloud » koala-cloud-gateway-server1 usages
Computed from the dependency graph of build 20261125.2201 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
| Advisory | NVD CVE-2025-41253 | nvd.nist.gov |
| Package | spring-cloud/spring-cloud-gateway | github.com |
| Web | vuln-metrics/cvss/v3-calculator | nvd.nist.gov |
| Web | security/cve/2025-41253 | spring.io |
| Web | CVERecord | cve.org |
