CVE-2025-41235 — Vulnerability in spring-cloud-gateway-server
Spring Cloud Gateway Server Forwards Headers from Untrusted Proxies
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.59%). Schedule for your next planned update.
Does your project use an affected org.springframework.cloud:spring-cloud-gateway-server version?
Paste your pom.xml to check it for CVE-2025-41235 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
Spring Cloud Gateway Server forwards the X-Forwarded-For and Forwarded headers from untrusted proxies.
Advisory Timeline
- First published May 30, 2025 (545 days ago).
- Last revised September 10, 2026 — 468 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
<!-- Update pom.xml dependency version to 4.2.3 for org.springframework.cloud:spring-cloud-gateway-server -->
<!-- Update pom.xml dependency version to 4.1.8 for org.springframework.cloud:spring-cloud-gateway-server -->
<!-- Update pom.xml dependency version to 4.2.3 for org.springframework.cloud:spring-cloud-gateway-server-mvc -->
<!-- Update pom.xml dependency version to 3.1.10 for org.springframework.cloud:spring-cloud-gateway-server -->
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (5)
Affects 1 ecosystem: Maven (2).
| Package | Fixed In |
|---|---|
| org.springframework.cloud:spring-cloud-gateway-server Maven · Affected: 4.2.0, 4.2.1, 4.2.2 | 4.2.3 |
| org.springframework.cloud:spring-cloud-gateway-server Maven · Affected: 4.1.0, 4.1.1, 4.1.2, 4.1.3 (+4 more) | 4.1.8 |
| org.springframework.cloud:spring-cloud-gateway-server-mvc Maven · Affected: 4.1.7, 4.1.8, 4.1.9, 4.2.0 (+2 more) | 4.2.3 |
| org.springframework.cloud:spring-cloud-gateway-server Maven · Affected: 2.2.10.RELEASE, 2.2.6.RELEASE, 2.2.7.RELEASE, 2.2.8.RELEASE (+20 more) | 3.1.10 |
| org.springframework.cloud:spring-cloud-gateway-server Maven · Affected: 4.0.0, 4.0.1, 4.0.2, 4.0.3 (+6 more) | Range-based data available |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-444
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 8.6 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N
References
Frequently Asked Questions
- What is CVE-2025-41235?
- Spring Cloud Gateway Server Forwards Headers from Untrusted Proxies. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 8.6/10).
- How do I check if my project is affected by CVE-2025-41235?
- CVE-2025-41235 affects org.springframework.cloud:spring-cloud-gateway-server and org.springframework.cloud:spring-cloud-gateway-server-mvc. It has a 0.6% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2025-41235 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Significant impact if exploited, or exploitable with modest effort.
This is a below-median EPSS score — only 42.4% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.
Also Known As
Related CVEs
- CVE-2022-22947CRITICAL
Spring Cloud Gateway vulnerable to Code Injection when Gateway Actuator endpoint enabled, exposed, unsecured
- CVE-2026-40982CRITICAL
Spring Cloud Config vulnerable to Path Traversal
- CVE-2024-37084CRITICAL
Remote code execution in Spring Cloud Data Flow
- CVE-2025-41243CRITICAL
Spring Expression language property modification using Spring Cloud Gateway Server WebFlux
- CVE-2026-22739HIGH
Spring Cloud Config Server: Path Traversal via Profile Parameter Allows Arbitrary File Access
- CVE-2026-61689HIGH
XWiki Platform: HQL injection in search allows unauthenticated database extraction including password hashes
- CVE-2026-107725HIGH
Hazelcast has an authorization bypass in IMap Predicates API