CVE-2025-41235: Spring Cloud Gateway Server Forwards Headers from Untrusted Proxies
Spring Cloud Gateway Server forwards the X-Forwarded-For and Forwarded headers from untrusted proxies.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
maven/org.springframework.cloud:spring-cloud-gateway-server-mvcto a version that resolves this vulnerability.Fixed in 4.2.3 - Upgrade
Upgrade
maven/org.springframework.cloud:spring-cloud-gateway-serverto a version that resolves this vulnerability.Fixed in 3.1.10 - Upgrade
Upgrade
maven/org.springframework.cloud:spring-cloud-gateway-serverto a version that resolves this vulnerability.Fixed in 4.1.8 - Upgrade
Upgrade
maven/org.springframework.cloud:spring-cloud-gateway-serverto a version that resolves this vulnerability.Fixed in 4.2.3
Event History
Frequently Asked Questions
What is the severity of CVE-2025-41235?
The severity of CVE-2025-41235 is classified as critical due to the potential for unauthorized access and misuse of sensitive user information.
How do I fix CVE-2025-41235?
To fix CVE-2025-41235, ensure that your Spring Cloud Gateway is configured to validate and sanitize headers from untrusted proxies.
What is the impact of CVE-2025-41235?
The impact of CVE-2025-41235 includes the potential exposure of internal IP addresses and user data through manipulated headers.
Which versions of Spring Cloud Gateway are affected by CVE-2025-41235?
CVE-2025-41235 affects all versions of Spring Cloud Gateway that do not have the necessary security configurations implemented.
Is there a workaround for CVE-2025-41235 if I cannot update?
A temporary workaround for CVE-2025-41235 is to implement network-level controls to restrict access to trusted proxies.