A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2025-41235

CVE-2025-41235: Spring Cloud Gateway SSRF Vulnerability

CVE-2025-41235 is an SSRF flaw in Spring Cloud Gateway Server caused by forwarding X-Forwarded-For and Forwarded headers from untrusted proxies. This article covers technical details, affected versions, and mitigation.

Updated: May 15, 2026

CVE-2025-41235 Overview

CVE-2025-41235 affects Spring Cloud Gateway Server, which forwards X-Forwarded-For and Forwarded headers received from untrusted proxies. The flaw is classified under [CWE-444] (Inconsistent Interpretation of HTTP Requests). Downstream services that rely on these headers for client IP attribution, access control, or logging can be misled by attacker-supplied values. The issue requires no authentication and is reachable over the network. Spring published a security advisory tracking the bug.

Critical Impact

Attackers can spoof client IP addresses in downstream services, bypass IP-based access controls, and corrupt audit trails by injecting forged X-Forwarded-For or Forwarded headers through Spring Cloud Gateway.

Affected Products

  • Spring Cloud Gateway Server (see vendor advisory for affected versions)
  • Applications routing requests through Spring Cloud Gateway that consume forwarding headers
  • Downstream services performing IP-based authorization behind the gateway

Discovery Timeline

  • 2025-05-30 - CVE-2025-41235 published to NVD
  • 2026-04-15 - Last updated in NVD database

Technical Details for CVE-2025-41235

Vulnerability Analysis

Spring Cloud Gateway Server is a reactive API gateway that routes HTTP traffic to backend services. The gateway forwards the X-Forwarded-For and Forwarded headers from incoming requests without validating whether the upstream sender is a trusted proxy. Downstream applications typically interpret these headers as authoritative records of the original client IP and protocol chain.

When the gateway sits behind a load balancer or directly exposes endpoints to the internet, an attacker can supply arbitrary values in these headers. Because the gateway passes them through, backend services receive forged client identity data. Applications relying on header values for rate limiting, geolocation, or access control treat attacker-controlled input as trusted.

The vulnerability is a request smuggling and trust boundary issue rather than a memory safety flaw. Exploitation is reliable because HTTP header injection is deterministic and requires no privileges or user interaction. See the Spring Security Advisory CVE-2025-41235 for the authoritative vendor description.

Root Cause

The gateway does not strip or rewrite X-Forwarded-For and Forwarded headers from inbound requests originating from untrusted networks. It appends its own forwarding data while preserving the attacker-supplied values, breaking the chain of trust expected by backend consumers.

Attack Vector

An attacker sends an HTTP request to a Spring Cloud Gateway endpoint with crafted X-Forwarded-For: 10.0.0.1 or Forwarded: for=192.168.1.1;proto=https headers. The gateway routes the request downstream with those values intact. The backend then logs, authorizes, or restricts the request based on the spoofed IP rather than the true client address.

No authentication, no special tooling, and no client interaction are required. The attack works against any deployment where the gateway is exposed to untrusted networks and downstream services consume forwarding headers.

Detection Methods for CVE-2025-41235

Indicators of Compromise

  • Inbound requests containing X-Forwarded-For or Forwarded headers from clients that should not be acting as proxies
  • Backend application logs showing client IPs inconsistent with gateway access logs
  • Authorization decisions or rate-limit bypasses keyed on internal or allowlisted IP ranges that the request did not originate from

Detection Strategies

  • Compare the source IP recorded at the perimeter load balancer with the X-Forwarded-For value seen by backend services to flag mismatches
  • Alert on inbound requests where the first hop in X-Forwarded-For falls inside RFC1918 ranges or matches known internal subnets
  • Inspect Spring Cloud Gateway access logs for header values that change unexpectedly between the gateway and downstream tiers

Monitoring Recommendations

  • Forward gateway and backend HTTP logs to a centralized analytics platform and correlate header chains across tiers
  • Track sudden spikes in requests carrying Forwarded headers, which are uncommon in normal client traffic
  • Monitor IP-based access control rules for unexpected matches that suggest spoofed forwarding headers

How to Mitigate CVE-2025-41235

Immediate Actions Required

  • Upgrade Spring Cloud Gateway Server to the fixed version listed in the Spring Security Advisory CVE-2025-41235
  • Audit backend services that consume X-Forwarded-For or Forwarded headers and confirm they validate the trusted proxy chain
  • Restrict direct network access to the gateway so only known load balancers can reach it

Patch Information

Apply the Spring Cloud Gateway Server release identified in the vendor advisory. The fix changes how the gateway handles forwarding headers received from untrusted sources. Review the advisory for exact supported version numbers and backports before deploying.

Workarounds

  • Configure an upstream proxy or load balancer to strip inbound X-Forwarded-For and Forwarded headers before they reach the gateway
  • Add a GlobalFilter in Spring Cloud Gateway that removes these headers from requests originating outside a defined trusted CIDR range
  • Disable IP-based authorization in backend services until the gateway is patched and the trust chain is verified
bash
# Example: strip forwarding headers at the edge with nginx before requests reach Spring Cloud Gateway
location / {
    proxy_set_header X-Forwarded-For $remote_addr;
    proxy_set_header Forwarded "";
    proxy_pass http://spring-cloud-gateway-upstream;
}

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeSSRF

  • Vendor/TechSpring Cloud Gateway

  • SeverityHIGH

  • CVSS Score8.6

  • EPSS Probability0.39%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-444
  • Technical References
  • Spring Security Advisory CVE-2025-41235
  • Related CVEs
  • CVE-2026-22750: Spring Cloud Gateway SSL Vulnerability

  • CVE-2025-41253: Spring Cloud Gateway Info Disclosure Bug

  • CVE-2025-41243: Spring Cloud Gateway Property Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English