Skip to main content

Spring Cloud Gateway CVE-2025-41253

HIGH
Improper Neutralization of Special Elements used in an Expression Language Statement (CWE-917)
2025-10-16 security@vmware.com
7.5
CVSS 3.1 · Vendor: vmware
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Reach exposed gateway actuator endpoint
  2. Delivery
    Submit route with crafted SpEL expression
  3. Exploit
    Trigger SpEL evaluation of env/system properties
  4. Execution
    Read back disclosed secrets
  5. Impact
    Reuse leaked credentials for further access

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Expression language sanitization
Exploitation Conditions

Exploitation by an untrusted third party requires all of: (1) the application uses Spring Cloud Gateway Server Webflux (WebMVC is NOT vulnerable); (2) the gateway actuator web endpoint is explicitly enabled via management.endpoints.web.exposure.include=gateway together with management.endpoint.gateway.enabled=true (or management.endpoint.gateway.access=unrestricted); (3) that actuator endpoint is network-reachable by the attacker; and (4) it is unsecured (no authentication/authorization). The attacker then uses SpEL in a route to read environment variables or system properties. Limiting factors: these actuator settings are non-default, so a hardened deployment that keeps the gateway actuator disabled or secured is not exploitable by untrusted parties; in the admin-only scenario, SpEL access to env/properties is a legitimate operator capability rather than an attack path.

Impact

This is a moderate-priority information-disclosure flaw whose real-world risk hinges almost entirely on configuration rather than raw CVSS. The CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N = 7.5 HIGH) describes a remote, unauthenticated, confidentiality-only impact, but the description makes clear that exploitation by an untrusted third party requires a specific non-default and insecure deployment: the Spring Cloud Gateway actuator endpoint must be enabled (management.endpoints.web.exposure.include=gateway and management.endpoint.gateway.enabled=true, or access=unrestricted), reachable by attackers, and left unsecured. In a hardened default deployment the actuator is not exposed, so the PR:N rating reflects the misconfigured state rather than a universally reachable condition - this is the key tension between the headline score and actual risk. Supporting signals point to lower urgency: EPSS is only 0.48% (39th percentile), there is no CISA KEV listing, and no public exploit code is referenced in the provided data. Impact is limited to disclosure of environment variables and system properties (C:H, I:N, A:N) - serious because those often contain secrets/credentials, but not code execution. Net: treat as a configuration-hygiene priority (audit exposed/unsecured actuator endpoints and SpEL route usage) rather than an emergency patch-now item, while noting that leaked secrets could enable follow-on attacks.

Exploit ScenarioDerived

An organization exposes the Spring Cloud Gateway Server Webflux actuator gateway endpoint to the network without authentication. A remote attacker creates or manipulates a route definition that uses a Spring Expression Language (SpEL) expression referencing environment variables or system properties, then triggers evaluation and reads back the disclosed values (e.g., credentials or internal configuration). No public exploit code is identified at time of analysis, and low attack complexity applies only once the actuator is confirmed exposed and unsecured.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.5% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Oct 09, 2026

Spring Cloud Gateway Server Webflux can expose environment variables and system properties when an untrusted third party can create a route using SpEL against an enabled, reachable, and unsecured gateway actuator endpoint. This is an information-disclosure issue, not remote code execution, and Spring Cloud Gateway Server WebMVC is not affected. Exploitation requires non-default actuator configuration such as management.endpoints.web.exposure.include=gateway together with management.endpoint.gateway.enabled=true or management.endpoint.gateway.access=unrestricted, so hardened deployments that keep the gateway actuator disabled or secured are not exposed; no public exploit identified at time of analysis, and EPSS is low at 0.48% (39th percentile).

RemediationAI

Apply the fixed Spring Cloud Gateway Server Webflux release specified in the vendor advisory at https://spring.io/security/cve/2025-41253; the provided input does not include an exact fix version, so do not infer one beyond that advisory. The most direct mitigation is configuration hardening: disable the gateway actuator by removing gateway from management.endpoints.web.exposure.include and setting management.endpoint.gateway.enabled=false, or if it must remain available, set management.endpoint.gateway.access=restricted and require authentication/authorization while restricting network reachability so untrusted third parties cannot reach it. Trade-offs are that disabling the gateway actuator removes operational route-management visibility and dynamic route controls, while restricting access may add authentication, proxy, or firewall complexity and must still allow legitimate administrators to use SpEL for environment or property access as intended. No public exploit identified at time of analysis.

Affected Packages

maven org.springframework.cloud:spring-cloud-gateway-server fix: 4.2.6, 4.3.2

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in maven

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

CVE-2025-41253 is an expression-language injection flaw mapped to CWE-917, Improper Neutralization of Special Elements used in an Expression Language Statement, involving Spring Expression Language (SpEL) within Spring Cloud Gateway Server Webflux route definitions. When the gateway actuator web endpoint is enabled and unsecured, a route can be created that evaluates SpEL to read environment variables or system properties. The NVD CVSS vector is AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N (7.5), while the independent assessment adjusts AC to High because the practical attack path depends on a non-default, unsecured actuator configuration; both agree on confidentiality-only high impact. The affected component is explicitly Spring Cloud Gateway Server Webflux, not Spring Cloud Gateway Server WebMVC, and no CPE strings were supplied in the input, so exact platform/version mapping should come from the vendor advisory.

Know when Spring gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (vmware) PRIMARY 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
vuln.today AI 5.9 MEDIUM

Network-reachable and unauthenticated once the actuator is exposed (PR:N), but the required non-default enabled-and-unsecured actuator configuration raises AC to H; confidentiality-only impact (C:H, I/A:N).

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
4.0 AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (vmware).

CVSS VectorVendor: vmware

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None

DescriptionCVE.org

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.

Executive ViewAI

Why It Matters

A high-severity information-disclosure flaw in Spring Cloud Gateway Server WebFlux could allow an attacker who can reach an exposed and unsecured gateway actuator endpoint to create a malicious route and read environment variables and system properties - data that frequently includes database credentials, API keys, and cloud secrets. Only deployments that have deliberately loosened the default actuator configuration are exposed; hardened environments with the gateway actuator disabled or authenticated are not at risk. Because no vendor patch exists yet, remediation depends on configuration hardening and compensating controls rather than patching.

Business Impact: Medium
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: disable the gateway actuator (management.endpoint.gateway.enabled=false) or remove 'gateway' from management.endpoints.web.exposure.include; set management.endpoint.gateway.access to restricted rather than unrestricted; require authentication and authorization on all actuator endpoints; bind actuator/management endpoints to internal-only interfaces and block them at the network edge; monitor and alert on unexpected route creation and actuator access; rotate secrets potentially exposed via environment variables or system properties. Note that Spring Cloud Gateway Server WebMVC is not affected.

Threat Intelligence Overview

EPSS Score
0.5%
Top 61% exploitable
Prevalence
Medium
Popular Java microservice API gateway, but a specific Spring component not everywhere
Data Quality
3 sources
Confidence: Low

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.5%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
Medium

Priority Score

38
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

More in Spring

View all
CVE-2025-41243 CRITICAL POC
10.0 Sep 16

Spring Cloud Gateway Server Webflux may be vulnerable to Spring Environment property modification. Rated critical severi

CVE-2025-70982 CRITICAL POC
9.9 Jan 26

Access control bypass in SpringBlade v4.5.0 importUser function allows low-privileged users to import sensitive user dat

CVE-2026-22739 HIGH POC
8.6 Mar 24

Spring Cloud Config Server contains a path traversal vulnerability when using the native file system backend, allowing u

CVE-2025-41242 MEDIUM POC
5.9 Aug 18

Spring Framework MVC applications can be vulnerable to a “Path Traversal Vulnerability” when deployed on a non-compliant

CVE-2025-70983 CRITICAL
9.9 Jan 23

SpringBlade v4.5.0 has an access control flaw in authRoutes allowing low-privileged users to escalate to admin through t

CVE-2026-41699 CRITICAL
9.8 Jun 11

Remote code execution in Spring for GraphQL versions 1.3.0-1.3.8, 1.4.0-1.4.5, and 2.0.0-2.0.3 allows unauthenticated at

CVE-2026-59313 CRITICAL
9.8 Aug 27

Server-Sent Events (SSE) stream corruption affects Spring MVC applications built on the functional web framework across

CVE-2026-22738 CRITICAL
9.8 Mar 27

Spring AI versions 1.0.0 through 1.0.4 and 1.1.0 through 1.1.3 allow unauthenticated remote code execution through Sprin

CVE-2026-41855 CRITICAL
9.8 Jun 09

Unsafe JSON deserialization in Spring Framework's JMS message converters (MappingJackson2MessageConverter and JacksonJso

CVE-2025-41232 CRITICAL
9.1 May 21

Spring Security Aspects may not correctly locate method security annotations on private methods. Rated critical severity

CVE-2026-59283 CRITICAL
9.1 Aug 27

Safety-guard bypass in the Spring Framework SpEL engine (VMware/Broadcom) lets attacker-controlled expression input esca

CVE-2026-40982 CRITICAL
9.1 May 07

Directory traversal in Spring Cloud Config server module allows remote unauthenticated attackers to read arbitrary files

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy