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-2021-25737

CVE-2021-25737: Kubernetes SSRF Vulnerability

CVE-2021-25737 is an SSRF vulnerability in Kubernetes that allows attackers to redirect pod traffic to private networks via EndpointSlice IPs. This article covers the technical details, affected versions, and mitigation.

Updated: May 16, 2026

CVE-2021-25737 Overview

CVE-2021-25737 is a security issue in Kubernetes that allows a user to redirect pod traffic to private networks on a Node. Kubernetes prevents the creation of Endpoint IPs in the localhost or link-local range, but the same validation was not performed on EndpointSlice IPs. An authenticated user with permission to create EndpointSlice objects can abuse the missing check to influence pod network traffic. The flaw is tracked under CWE-184 (Incomplete List of Disallowed Inputs) and CWE-601 (URL Redirection to Untrusted Site).

Critical Impact

Authenticated users able to create EndpointSlice resources can redirect cluster traffic to localhost or link-local addresses on a Node, exposing internal services that bypass standard Endpoint validation.

Affected Products

  • Kubernetes versions prior to 1.18.18
  • Kubernetes versions 1.19.0 through 1.19.10
  • Kubernetes versions 1.20.0 through 1.20.6 and 1.21.0

Discovery Timeline

  • 2021-09-06 - CVE CVE-2021-25737 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2021-25737

Vulnerability Analysis

Kubernetes uses Endpoints and EndpointSlice resources to expose the network locations backing a Service. Endpoints objects enforce a validation rule that rejects IPs in the loopback range (127.0.0.0/8) and the link-local range (169.254.0.0/16). EndpointSlice, introduced as a scalable successor to Endpoints, did not enforce the equivalent restriction.

A user with permission to create or modify EndpointSlice objects can register backend IPs pointing to addresses on the Node itself, such as 127.0.0.1 or 169.254.169.254. Traffic destined for the associated Service then routes to private interfaces, including cloud provider metadata endpoints and host-local management services. The attacker gains a path to information that normally would not be reachable through pod networking.

The vulnerability requires authenticated access with high privileges (PR:H) and user interaction (UI:R), and the scope is changed because the impact crosses the trust boundary from the pod network to the Node. Confidentiality and integrity impact are rated low, with no availability impact.

Root Cause

The root cause is an incomplete denylist [CWE-184]. The Endpoints admission and validation logic blocks reserved IP ranges, but the parallel logic added for EndpointSlice did not replicate that check. The omission allowed crafted EndpointSlice entries to reference IPs that the Endpoints API would have rejected.

Attack Vector

An attacker with rights to create EndpointSlice objects supplies a backing IP in a normally disallowed range. When a Service selects the EndpointSlice, kube-proxy programs the Node's data plane to forward Service traffic to that IP. Workloads or cluster components consuming the Service connect to the Node-local target, enabling redirection [CWE-601] to instance metadata services, internal management interfaces, or other private networks reachable from the Node.

No verified proof-of-concept code is published for this issue. See the Kubernetes GitHub issue 102106 and the Kubernetes security announcement for upstream technical details.

Detection Methods for CVE-2021-25737

Indicators of Compromise

  • EndpointSlice objects containing addresses in 127.0.0.0/8, 169.254.0.0/16, or other Node-local ranges.
  • Service traffic from pods reaching the cloud provider metadata endpoint 169.254.169.254 when no such egress is expected.
  • Audit log entries showing create or update actions on discovery.k8s.io/v1 EndpointSlice resources by non-system principals.

Detection Strategies

  • Inspect every EndpointSlice in the cluster with kubectl get endpointslices -A -o json and flag entries whose endpoints[].addresses fall inside loopback or link-local ranges.
  • Enable Kubernetes API audit logging and alert on EndpointSlice mutations performed by accounts that do not normally manage Services.
  • Deploy an admission controller policy (Kyverno, OPA Gatekeeper) that rejects EndpointSlice objects referencing disallowed CIDRs.

Monitoring Recommendations

  • Forward kube-apiserver audit logs and Node network flow data into a centralized analytics platform for correlation.
  • Monitor pod-to-metadata-service connectivity and alert on unexpected access to 169.254.169.254 from workload namespaces.
  • Track RBAC bindings that grant create or patch on endpointslices and review them on a recurring schedule.

How to Mitigate CVE-2021-25737

Immediate Actions Required

  • Upgrade kube-apiserver to a fixed release: 1.21.1, 1.20.7, 1.19.11, or 1.18.18 or later.
  • Audit existing EndpointSlice objects for disallowed IPs and remove or correct any malicious entries.
  • Restrict RBAC permissions on endpointslices.discovery.k8s.io so only trusted controllers and operators can write them.

Patch Information

The Kubernetes project addressed the issue by extending the IP range validation applied to Endpoints to also cover EndpointSlice resources. Fixed versions are listed in the Kubernetes security announcement. Downstream distributions, including those covered by the NetApp security advisory, shipped corresponding updates.

Workarounds

  • Apply an admission policy that denies EndpointSlice objects whose addresses fall in 127.0.0.0/8 or 169.254.0.0/16.
  • Limit EndpointSlice write access using RBAC and avoid granting cluster-wide endpointslices permissions to namespace users.
  • Block pod egress to the Node metadata IP 169.254.169.254 with a NetworkPolicy or CNI-level egress rule where workloads do not require it.
bash
# Example Kyverno policy denying disallowed EndpointSlice IPs
apiVersion: kyverno.io/v1
kind: ClusterPolicy
metadata:
  name: block-endpointslice-localhost
spec:
  validationFailureAction: Enforce
  rules:
    - name: deny-loopback-and-linklocal
      match:
        any:
          - resources:
              kinds:
                - EndpointSlice
      validate:
        message: "EndpointSlice addresses in loopback or link-local ranges are not allowed."
        deny:
          conditions:
            any:
              - key: "{{ request.object.endpoints[].addresses[] }}"
                operator: AnyIn
                value:
                  - "127.0.0.0/8"
                  - "169.254.0.0/16"

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

  • Vulnerability Details
  • TypeSSRF

  • Vendor/TechKubernetes

  • SeverityMEDIUM

  • CVSS Score4.8

  • EPSS Probability0.38%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityLow
  • AvailabilityNone
  • CWE References
  • CWE-184

  • CWE-601
  • Technical References
  • Google Group Announcement

  • NetApp Security Advisory
  • Vendor Resources
  • GitHub Kubernetes Issue
  • Related CVEs
  • CVE-2020-8558: Kubernetes SSRF Vulnerability

  • CVE-2026-10101: ACM/MCE Auth Bypass Vulnerability

  • CVE-2026-27173: Kubernetes Executors Token Exposure Flaw

  • CVE-2026-39884: mcp-server-kubernetes RCE 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