Skip to content

Spring Expression language property modification using Spring Cloud Gateway Server WebFlux

Critical severity GitHub Reviewed Published Sep 16, 2025 to the GitHub Advisory Database • Updated Sep 16, 2025

Package

maven org.springframework.cloud:spring-cloud-gateway-server-webflux (Maven)

Affected versions

>= 3.1.0, <= 3.1.10
>= 4.0.0, <= 4.1.10
>= 4.2.0, < 4.2.5
>= 4.3.0, < 4.3.1

Patched versions

4.2.5
4.3.1

Description

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

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).
  • Spring Boot actuator is a dependency.
  • The Spring Cloud Gateway Server Webflux actuator web endpoint is enabled via management.endpoints.web.exposure.include=gateway.
  • The actuator endpoints are available to attackers.
  • The actuator endpoints are unsecured.

References

Published by the National Vulnerability Database Sep 16, 2025
Published to the GitHub Advisory Database Sep 16, 2025
Reviewed Sep 16, 2025
Last updated Sep 16, 2025

Severity

Critical

CVSS overall score

This score calculates overall vulnerability severity from 0 to 10 and is based on the Common Vulnerability Scoring System (CVSS).
/ 10

CVSS v3 base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High

CVSS v3 base metrics

Attack vector: More severe the more the remote (logically and physically) an attacker can be in order to exploit the vulnerability.
Attack complexity: More severe for the least complex attacks.
Privileges required: More severe if no privileges are required.
User interaction: More severe when no user interaction is required.
Scope: More severe when a scope change occurs, e.g. one vulnerable component impacts resources in components beyond its security scope.
Confidentiality: More severe when loss of data confidentiality is highest, measuring the level of data access available to an unauthorized user.
Integrity: More severe when loss of data integrity is the highest, measuring the consequence of data modification possible by an unauthorized user.
Availability: More severe when the loss of impacted component availability is highest.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H

EPSS score

Weaknesses

Improper Control of Generation of Code ('Code Injection')

The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment. Learn more on MITRE.

CVE ID

CVE-2025-41243

GHSA ID

GHSA-q2cj-h8fw-q4cc

Source code

No known source code
Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.