CVE-2025-41243 Spring Expression Language property modification using Spring Cloud Gateway Server WebFlux
Attackers can modify Spring Environment properties via exposed actuator endpoints, potentially leading to code execution or privilege escalation.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-41243?
CVE-2025-41243 is a critical code injection vulnerability in Spring Cloud Gateway, published on 16 Sep 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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.
Which versions are affected by CVE-2025-41243?
8 open source packages ship an affected version, including org.springframework.cloud:spring-cloud-gateway-server-webflux.
| Package | Affected | Fixed in |
|---|---|---|
org.springframework.cloud:spring-cloud-gateway-server-webflux Maven | From 3.1.0 to 3.1.10 | None |
org.springframework.cloud:spring-cloud-gateway-server-webflux Maven | From 3.1.0 to 3.1.10 | None |
org.springframework.cloud:spring-cloud-gateway-server-webflux Maven | From 4.0.0 to 4.1.10 | None |
org.springframework.cloud:spring-cloud-gateway-server-webflux Maven | From 4.0.0 to 4.1.10 | None |
org.springframework.cloud:spring-cloud-gateway-server-webflux Maven | From 4.2.0 | 4.2.5 |
org.springframework.cloud:spring-cloud-gateway-server-webflux Maven | From 4.2.0 | 4.2.5 |
2 more packages
org.springframework.cloud:spring-cloud-gateway-server-webflux Maven | From 4.3.0 | 4.3.1 |
org.springframework.cloud:spring-cloud-gateway-server-webflux Maven | From 4.3.0 | 4.3.1 |
How do I fix CVE-2025-41243?
Upgrade org.springframework.cloud:spring-cloud-gateway-server-webflux to a fixed version for your release line: 4.2.5 or 4.3.1.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2025-41243 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-41243 exists.
Public exploit code: 1 Nuclei template and 1 proofs of concept on GitHub.
Sources
Also known as GHSA-q2cj-h8fw-q4cc, ROOT-APP-MAVEN-CVE-2025-41243.