Expression Language Injection Affecting org.springframework.cloud:spring-cloud-gateway-server package, versions [,4.2.6)[4.3.0,4.3.2)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.05% (16th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Expression Language Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JAVA-ORGSPRINGFRAMEWORKCLOUD-13561992
  • published16 Oct 2025
  • disclosed15 Oct 2025
  • creditpsytester

Introduced: 15 Oct 2025

NewCVE-2025-41253  (opens in a new tab)
CWE-917  (opens in a new tab)

How to fix?

Upgrade org.springframework.cloud:spring-cloud-gateway-server to version 4.2.6, 4.3.2 or higher.

Overview

Affected versions of this package are vulnerable to Expression Language Injection in route definitions. An attacker with permission to define routes can expose the server's file structure or other sensitive environment variables by crafting a SpEL expression to access sensitive system beans such as @systemProperties and @systemEnvironment

Note: Additional fixed versions might be available for commercial users of Spring Enterprise.

Workaround

Users who are not able to upgrade to the fixed version are advised to remove the gateway from the management.endpoints.web.exposure.include property or secure the actuator endpoints.

CVSS Base Scores

version 4.0
version 3.1