CWE-444Weakness · CWE-444

CVE-2025-41235

HIGH · 8.6 CVSS v3.1 Published 2025-05-30
Mitigation only
No fix yet — a mitigation exists. There is no fixed release. A documented workaround reduces exposure in the meantime.
See remediation →
95/100
Remediation priority · Urgent
Remotely reachable No privileges Zero-click

Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.

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

Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.

dbcve analysis · high confidence

Spring Cloud Gateway Server improperly forwards X-Forwarded-For and Forwarded HTTP headers from untrusted proxies, allowing attackers to manipulate these headers to spoof client IP addresses, bypass IP-based access controls, or conduct header injection attacks.

MitigationConfigure Spring Cloud Gateway to only forward headers from trusted proxies by setting spring.cloud.gateway.forwarded.enabled=false or by explicitly configuring trusted proxy addresses; alternatively, filter/strip these headers before forwarding to backend services.

Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.

CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.

From the vector
Attack vector
Network
Complexity
Low
Privileges
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

Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.

dbcve checks

Work through these to decide whether this CVE applies to you.

  1. Identify Spring Cloud Gateway installation
    Locate the Spring Cloud Gateway application JAR file or Docker container. Check the application's pom.xml or build.gradle for the spring-cloud-gateway dependency and note the version number.
    Affected if The installed Spring Cloud Gateway version falls within the affected range (any unpatched version).
  2. Verify forwarded header configuration
    Check the application configuration files (application.yml or application.properties) for the property 'spring.cloud.gateway.forwarded.enabled'. Also check for 'spring.cloud.gateway.forwarded.host-header' and 'spring.cloud.gateway.forwarded.port-header' settings.
    Affected if The property is set to 'true' or is not explicitly set (defaults to true in vulnerable versions), allowing untrusted header forwarding.
  3. Check trusted proxy configuration
    Look for 'spring.cloud.gateway.forwarded.host-header' or any trusted proxy whitelist configuration in application properties or environment variables. Review network configuration to determine if proxy trust boundaries are defined.
    Affected if No trusted proxy whitelist is configured, or the configuration allows forwarding headers from untrusted sources.
  4. Inspect runtime header forwarding behavior
    Send a test request to the gateway with a crafted X-Forwarded-For header (e.g., 'X-Forwarded-For: 1.2.3.4') and a Forwarded header (e.g., 'Forwarded: for=5.6.7.8'). Capture the request received by a backend service to see if these headers are passed through unchanged.
    Affected if The gateway forwards custom X-Forwarded-For or Forwarded headers from the incoming request to backend services without validation.
  5. Review proxy trust settings
    Examine all configuration sources including application.yml, application.properties, environment variables, and Kubernetes/Docker config maps for any Spring Cloud Gateway proxy trust settings. Check if 'trusted proxies' or similar trust configuration is explicitly defined.
    Affected if No explicit trusted proxy configuration exists, leaving the default behavior that accepts headers from any source.

You are affected if Spring Cloud Gateway is running and the forwarded header feature is enabled without explicit configuration of trusted proxies, allowing untrusted clients to manipulate X-Forwarded-For and Forwarded headers.

Generated from the published advisory. Verify against your own configuration.

Check your environment

Paste your version and any relevant configuration and it will be compared against the affected criteria above. Do not include secrets or credentials.

AI-assisted, checked against the advisory. Informational, not a guarantee.

Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.

From vendor data
Mitigation available No clean upgrade yet — mitigate in the meantime
Mitigation

Configure Spring Cloud Gateway to only forward headers from trusted proxies by setting spring.cloud.gateway.forwarded.enabled=false or by explicitly configuring trusted proxy addresses; alternatively, filter/strip these headers before forwarding to backend services.

Have this fixed Scoped from the published advisory
  • Consultation3.0 h
  • Implementation3.0 h
  • Testing4.0 h
  • Review / QA2.0 h
12.0 hours of engineering $2,100
Get help mitigating

An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $3,360.

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2025-41235 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.

References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.

Primary sources

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2025-41235 in production — separate from our analysis above.

No notes yet

Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.

What this is

A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.

What belongs here
  • Verified mitigations, workarounds, and config changes
  • Version or environment caveats, and links to real fixes
  • No weaponised exploit code, or anything meant to cause harm
  • No spam, self-promotion, credentials, or personal data