Loading...
Skip to main content

CVE-2025-41235 — Vulnerability in...

HIGH

Spring Cloud Gateway Server Forwards Headers from Untrusted Proxies

Published May 30, 2025Updated September 10, 2026Source: osv

Summary

Spring Cloud Gateway Server forwards the X-Forwarded-For and Forwarded headers from untrusted proxies.

Advisory Timeline

  • First published May 30, 2025 (500 days ago).
  • Last revised September 10, 2026 — 468 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Maven
Update org.springframework.cloud:spring-cloud-gateway-server to 4.2.3 or later
<!-- Update pom.xml dependency version to 4.2.3 for org.springframework.cloud:spring-cloud-gateway-server -->
Maven
Update org.springframework.cloud:spring-cloud-gateway-server to 4.1.8 or later
<!-- Update pom.xml dependency version to 4.1.8 for org.springframework.cloud:spring-cloud-gateway-server -->
Maven
Update org.springframework.cloud:spring-cloud-gateway-server-mvc to 4.2.3 or later
<!-- Update pom.xml dependency version to 4.2.3 for org.springframework.cloud:spring-cloud-gateway-server-mvc -->
Maven
Update org.springframework.cloud:spring-cloud-gateway-server to 3.1.10 or later
<!-- Update pom.xml dependency version to 3.1.10 for org.springframework.cloud:spring-cloud-gateway-server -->

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (5)

Affects 1 ecosystem: maven (2).

PackageEcosystemAffectedFixed In
org.springframework.cloud:spring-cloud-gateway-server
maven
4.2.0, 4.2.1, 4.2.24.2.3
org.springframework.cloud:spring-cloud-gateway-server
maven
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
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
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
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.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 8.6 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Changed
Confidentiality
None
Integrity
High
Availability
None

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N

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. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2025-41235 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
8.6

High exploitability or significant impact. Prioritize remediation within days.

Also Known As

GHSA-6j2q-c73v-97c5

Related CVEs

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies