VMware Spring Cloud Gateway Server Webflux
Spring Cloud Gateway Webflux SpEL Injection Vulnerability Allowing Exposure of Environment Variables
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 versions and mitigation
From the CVE record, GitHub Security Advisories and the vendor's references.Affected
- 3.1.x
- 4.0.x
- 4.1.x
- 4.2.x
- 4.3.x
- >= 4.3.0, < 4.3.2
Fixed in 4.3.2
from GitHub Security Advisory GHSA-fwxx-wv44-7qfg
- >= 4.2.0, < 4.2.6
Fixed in 4.2.6
from GitHub Security Advisory GHSA-fwxx-wv44-7qfg
- >= 4.0.0, <= 4.1.9
from GitHub Security Advisory GHSA-fwxx-wv44-7qfg
- <= 3.1.10
from GitHub Security Advisory GHSA-fwxx-wv44-7qfg
Mitigation
Users of affected versions should upgrade to fixed releases: 4.3.2 (OSS), 4.2.6 (OSS), 4.1.12 (Commercial), and 3.1.12 (Commercial). Alternatively, remove 'gateway' from management.endpoints.web.exposure.include or secure the actuator endpoints.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.