CVE-2025-41253 — spring-cloud-gateway-serv…
HIGHCVE-2025-41253 is a high-severity (CVSS 7.5) Expression Language Injection vulnerability in org.springframework.cloud:spring-cloud-gateway-server. A fix is available for org.springframework.cloud:spring-cloud-gateway-server — see the affected versions and patch details below.
Spring Cloud Gateway Server Webflux is vulnerable to Expression Language Injection
Exploitation Status
No confirmed exploitation observed yet
- CISA assesses this as automatable — exploitation doesn’t require manual, per-target effort, which raises the odds of mass scanning and opportunistic attacks.
- CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.
Exploitation and automatability from CISA’s SSVC triage for CVE-2025-41253.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
Where this sits among everything scored
Real-World Exposure
org.springframework.cloud:spring-cloud-gateway-server☕org.springframework.cloud:spring-cloud-gateway-server☕org.springframework.cloud:spring-cloud-gateway-server☕org.springframework.cloud:spring-cloud-gateway-serverReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Maven packages — download data is not available via public APIs for these ecosystems.
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 Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| ☕Maven | org.springframework.cloud:spring-cloud-gateway-server | ≥ 4.3.0&&< 4.3.2 | 4.3.2org.springframework.cloud:spring-cloud-gateway-server:4.3.2 |
| ☕Maven | org.springframework.cloud:spring-cloud-gateway-server | ≥ 4.2.0&&< 4.2.6 | 4.2.6org.springframework.cloud:spring-cloud-gateway-server:4.2.6 |
| ☕Maven | org.springframework.cloud:spring-cloud-gateway-server | ≥ 4.0.0 | No fix |
| ☕Maven | org.springframework.cloud:spring-cloud-gateway-server | all versions | No fix |
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for org.springframework.cloud:spring-cloud-gateway-server, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update org.springframework.cloud:spring-cloud-gateway-server to 4.3.2 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2025-41253 is resolved across your whole dependency graph.
Workarounds
Stop passing untrusted input into the interpreter or shell: call the affected binary with an argument array rather than a composed command string, reject anything outside a strict allowlist of expected values, and run the component under an account that cannot reach beyond the work it legitimately does.
Frequently Asked Questions
Is CVE-2025-41253 in your dependencies?
Find it across Maven, including transitive dependencies.