CVE-2025-41243 — spring-cloud-gateway-serv…
CRITICALCVE-2025-41243 is a critical-severity (CVSS 10) Code Injection vulnerability in org.springframework.cloud:spring-cloud-gateway-server-webflux. A fix is available for org.springframework.cloud:spring-cloud-gateway-server-webflux — see the affected versions and patch details below.
Spring Expression language property modification using Spring Cloud Gateway Server WebFlux
Exploitation Status
No confirmed exploitation observed yet
- A successful exploit gives an attacker total control of the affected component, not partial access.
- CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.
Exploitation and automatability from CISA’s SSVC triage for CVE-2025-41243.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
Where this sits among everything scored
Real-World Exposure
org.springframework.cloud:spring-cloud-gateway-server-webflux☕org.springframework.cloud:spring-cloud-gateway-server-webflux☕org.springframework.cloud:spring-cloud-gateway-server-webflux☕org.springframework.cloud:spring-cloud-gateway-server-webfluxReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Maven packages — download data is not available via public APIs for these ecosystems.
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.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| ☕Maven | org.springframework.cloud:spring-cloud-gateway-server-webflux | ≥ 3.1.0 | No fix |
| ☕Maven | org.springframework.cloud:spring-cloud-gateway-server-webflux | ≥ 4.0.0 | No fix |
| ☕Maven | org.springframework.cloud:spring-cloud-gateway-server-webflux | ≥ 4.2.0&&< 4.2.5 | 4.2.5org.springframework.cloud:spring-cloud-gateway-server-webflux:4.2.5 |
| ☕Maven | org.springframework.cloud:spring-cloud-gateway-server-webflux | ≥ 4.3.0&&< 4.3.1 | 4.3.1org.springframework.cloud:spring-cloud-gateway-server-webflux:4.3.1 |
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for org.springframework.cloud:spring-cloud-gateway-server-webflux, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
A fix is available for CVE-2025-41243; check the affected-versions list above or the advisory for the patched release of org.springframework.cloud:spring-cloud-gateway-server-webflux, then make sure no transitive dependency still pins the vulnerable range.
Workarounds
Stop passing untrusted input into the interpreter or shell: call the affected binary with an argument array rather than a composed command string, reject anything outside a strict allowlist of expected values, and run the component under an account that cannot reach beyond the work it legitimately does.
How to detect CVE-2025-41243
A community-maintained Nuclei template exists for this CVE. You can scan for it directly:
nuclei -id cve-2025-41243 -u https://target- Template
- Spring Cloud Gateway Server Webflux - Broken Access Control
- Severity
- critical
- Impact
- Attackers can modify Spring Environment properties, potentially leading to configuration tampering and further compromise.
- Remediation
- Secure actuator endpoints or disable gateway actuator exposure; update to latest Spring Cloud Gateway Server Webflux version.
Template by ProjectDiscovery nuclei-templates (Redmomn), MIT licensed. View the full template. Scan only systems you are authorised to test.
Frequently Asked Questions
Is CVE-2025-41243 in your dependencies?
Find it across Maven, including transitive dependencies.