Spring Cloud Gateway Server Forwards Headers from Untrusted Proxies

Description

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

Basic information

Type
reviewed
Severity
high
Advisory on GitHub
Open advisory ↗
Repository advisory
Source code
Browse source ↗
Published (advisory)
2025-05-30 06:30:25 UTC
Updated
2025-07-28 20:34:06 UTC
GitHub reviewed
2025-05-30 15:25:10 UTC
NVD published
2025-05-30

EPSS Score

Score Percentile
0.39% 60.13%

CVSS Scores

Base score Version Severity Vector
8.6 3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:N)
No account or special rights needed—anonymous or random user is enough.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:C)
Breaking this can reach past the original component and bite other resources—bigger blast radius.
Confidentiality (C:N)
Doesn’t really leak secrets in a meaningful way.
Integrity (I:H)
They could widely tamper with or forge data—trust in the data is badly hurt.
Availability (A:N)
Service keeps running; no real outage angle.

Identifiers

CWEs

CWE id Name
CWE-444 Inconsistent Interpretation of HTTP Requests ('HTTP Request/Response Smuggling')

Credits

  • coreyconway (analyst)

Affected packages (5)

Vulnerable version ranges and first patched releases as published by GitHub.

Ecosystem Package Vulnerable range First patched Vulnerable functions
maven org.springframework.cloud:spring-cloud-gateway-server >= 4.2.0, < 4.2.3 4.2.3
maven org.springframework.cloud:spring-cloud-gateway-server >= 4.1.0, < 4.1.8 4.1.8
maven org.springframework.cloud:spring-cloud-gateway-server >= 4.0.0, <= 4.0.9
maven org.springframework.cloud:spring-cloud-gateway-server < 3.1.10 3.1.10
maven org.springframework.cloud:spring-cloud-gateway-server-mvc >= 4.1.7, < 4.2.3 4.2.3

References

cvelogic Threat Intelligence