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

Published Oct 16, 2025
·
Updated

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 Software

2 affected components
Spring Cloud Gateway Server Webflux
maven/org.springframework.cloud:spring-cloud-gateway-server-webflux>=3.1.0<=4.3.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Spring Cloud Gateway Server Webflux OSS 4.3.x to a version that resolves this vulnerability.

    Fixed in 4.3.2
  2. Upgrade

    Upgrade Spring Cloud Gateway Server Webflux OSS 4.2.x to a version that resolves this vulnerability.

    Fixed in 4.2.6
  3. Upgrade

    Upgrade Spring Cloud Gateway Server Webflux Commercial 4.1.x to a version that resolves this vulnerability.

    Fixed in 4.1.12
  4. Upgrade

    Upgrade Spring Cloud Gateway Server Webflux Commercial 3.1.x to a version that resolves this vulnerability.

    Fixed in 3.1.12
  5. Configuration

    Remove 'gateway' from management.endpoints.web.exposure.include, or secure the actuator endpoints so they are not available unsecured to attackers.

    Spring Cloud Gateway Server Webflux actuator gateway endpoint management.endpoints.web.exposure.include = Exclude gateway

Event History

Oct 16, 2025
CVE Published
via MITRE·02:25 PM
Data Sourced
via MITRE·02:25 PM
RemedyDescriptionSeverityWeakness
Data Sourced
via NVD·03:15 PM
DescriptionSeverityWeakness
Advisory Published
via GitHub·03:30 PM
Data Sourced
via GitHub·03:30 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2025-41253?

CVE-2025-41253 is classified as a medium severity vulnerability due to the potential risk of exposing sensitive environment variables and system properties.

2

How do I fix CVE-2025-41253?

To mitigate CVE-2025-41253, upgrade to the latest patched version of Spring Cloud Gateway Server Webflux.

3

What versions are affected by CVE-2025-41253?

CVE-2025-41253 affects all versions of Spring Cloud Gateway Server Webflux that do not include the security patch.

4

What are the potential impacts of CVE-2025-41253?

The potential impacts of CVE-2025-41253 include unauthorized access to sensitive environment variables and system properties.

5

Is CVE-2025-41253 being actively exploited?

As of now, there are no reported active exploits specifically targeting CVE-2025-41253.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203