Improper Control of Generation of Code ('Code Injection') in org.springframework.cloud:spring-cloud-gateway-server
CVE-2025-41243
- org.springframework.cloud:spring-cloud-gateway-server
- org.springframework.cloud:spring-cloud-gateway-server-webflux
Summary
Spring Cloud Gateway Server Webflux may be vulnerable to Spring Environment property modification in versions 3.1.0 through 3.1.10, 4.0.0 through 4.1.10, 4.2.0 through 4.2.4, 4.3.0, and 5.0.0-m1. An application should be considered vulnerable when all the following are true. First, the application is using Spring Cloud Gateway Server Webflux (Spring Cloud Gateway Server WebMVC is not vulnerable). Second, the Spring Boot actuator is a dependency. Third, the Spring Cloud Gateway Server Webflux actuator web endpoint is enabled via 'management.endpoints.web.exposure.include=gateway'.Fourth, the actuator endpoints are available to attackers. Finally, the actuator endpoints are unsecured.
- LOW
- NETWORK
- HIGH
- CHANGED
- NONE
- NONE
- HIGH
- HIGH
CWE-94 - Code Injection
Code injection is a type of vulnerability that allows an attacker to execute arbitrary code. This vulnerability fully compromises the machine and can cause a wide variety of security issues, such as unauthorized access to sensitive information, manipulation of data, denial of service attacks etc. Code injection is different from command injection in the fact that it is limited by the functionality of the injected language (e.g. PHP), as opposed to command injection, which leverages existing code to execute commands, usually within the context of a shell.
References
Advisory Timeline
- Published