The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
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-2023-2728

CVE-2023-2728: Kubernetes Auth Bypass Vulnerability

CVE-2023-2728 is an authentication bypass vulnerability in Kubernetes that allows users to launch ephemeral containers bypassing mountable secrets policy. This article covers technical details, affected versions, and mitigations.

Published: February 4, 2026

CVE-2023-2728 Overview

CVE-2023-2728 is an authorization bypass vulnerability in Kubernetes that allows users to launch containers that circumvent the mountable secrets policy enforced by the ServiceAccount admission plugin when using ephemeral containers. The vulnerability undermines a critical security control designed to ensure that pods running with a service account may only reference secrets explicitly specified in the service account's secrets field.

Critical Impact

Attackers with high privileges can bypass secrets access controls, potentially gaining unauthorized access to sensitive credentials and configuration data within Kubernetes clusters.

Affected Products

  • Kubernetes (multiple versions)
  • Kubernetes clusters using ServiceAccount admission plugin with kubernetes.io/enforce-mountable-secrets annotation
  • Environments utilizing ephemeral containers feature

Discovery Timeline

  • July 3, 2023 - CVE-2023-2728 published to NVD
  • February 13, 2025 - Last updated in NVD database

Technical Details for CVE-2023-2728

Vulnerability Analysis

This vulnerability represents an improper input validation flaw (CWE-20) in Kubernetes' ServiceAccount admission controller. The core issue lies in how the admission plugin handles ephemeral container specifications differently from regular container definitions. While the plugin correctly validates and restricts secret mounts for standard containers against the service account's allowed secrets list, it fails to apply the same validation logic when processing ephemeral containers.

The vulnerability specifically affects Kubernetes clusters where administrators have explicitly configured the kubernetes.io/enforce-mountable-secrets annotation to restrict which secrets a service account can access. This annotation is a security hardening measure intended to implement the principle of least privilege for secret access.

Root Cause

The root cause stems from an oversight in the ServiceAccount admission plugin's validation logic. When ephemeral containers were added to Kubernetes as a debugging feature, the admission controller's secret validation pathway was not updated to handle this new container type. As a result, ephemeral container specifications bypass the mountable secrets policy checks entirely, creating a gap in the security boundary that the annotation was designed to enforce.

Attack Vector

The attack vector requires network access and high privileges within the Kubernetes cluster. An attacker with the ability to create or modify pods with ephemeral containers can exploit this vulnerability to:

  1. Create an ephemeral container specification that references secrets not allowed by the service account's mountable secrets policy
  2. Have the pod admitted by the cluster despite violating the intended security policy
  3. Access sensitive secrets that should have been restricted from the service account

The vulnerability is exploitable when an attacker adds an ephemeral container to an existing pod or creates a new pod specification that includes ephemeral containers referencing unauthorized secrets. The ServiceAccount admission plugin fails to validate secret references within the ephemeral container specification, allowing the pod to be created with access to restricted secrets.

Detection Methods for CVE-2023-2728

Indicators of Compromise

  • Pods with ephemeral containers mounting secrets not listed in the associated service account's secrets field
  • Audit log entries showing ephemeral container additions with unexpected secret volume mounts
  • Unusual secret access patterns from pods that should have restricted secret access
  • Service accounts with kubernetes.io/enforce-mountable-secrets annotation showing unexpected secret usage

Detection Strategies

  • Enable and monitor Kubernetes audit logs for ephemeral container creation events
  • Implement admission webhooks to validate ephemeral container secret references against service account policies
  • Use OPA/Gatekeeper or Kyverno policies to enforce secret restrictions on ephemeral containers
  • Deploy runtime security monitoring to detect unexpected secret access patterns

Monitoring Recommendations

  • Configure alerting on audit events for kubectl debug commands and ephemeral container additions
  • Monitor for pods in namespaces with sensitive secrets that suddenly gain ephemeral containers
  • Track secret access events correlated with ephemeral container creation timestamps
  • Implement SentinelOne Singularity for Kubernetes to monitor container runtime behavior and detect policy violations

How to Mitigate CVE-2023-2728

Immediate Actions Required

  • Upgrade Kubernetes to a patched version that addresses CVE-2023-2728
  • Review existing pods with ephemeral containers for unauthorized secret access
  • Audit service accounts using the kubernetes.io/enforce-mountable-secrets annotation
  • Consider temporarily restricting ephemeral container creation via RBAC until patches are applied

Patch Information

Kubernetes has released patches addressing this vulnerability. Organizations should consult the Kubernetes Security Announcement for specific version information and upgrade guidance. Additional details are available in the GitHub Kubernetes Issue Discussion and the NetApp Security Advisory.

Workarounds

  • Restrict RBAC permissions for creating ephemeral containers to trusted users only
  • Implement admission webhook policies that validate ephemeral container secret mounts against service account restrictions
  • Use Pod Security Policies or Pod Security Standards to limit ephemeral container capabilities
  • Consider disabling ephemeral containers cluster-wide if the feature is not required for debugging workflows
bash
# Restrict ephemeral container creation via RBAC
# Create a ClusterRole that denies ephemeral container updates
kubectl create clusterrole deny-ephemeral-containers \
  --verb=update \
  --resource=pods/ephemeralcontainers \
  --dry-run=client -o yaml

# Verify service accounts with enforce-mountable-secrets annotation
kubectl get serviceaccounts -A -o json | \
  jq '.items[] | select(.metadata.annotations["kubernetes.io/enforce-mountable-secrets"]=="true") | .metadata.name'

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

  • Vulnerability Details
  • TypeAuth Bypass

  • Vendor/TechKubernetes

  • SeverityMEDIUM

  • CVSS Score6.5

  • EPSS Probability4.96%

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

  • NVD-CWE-noinfo
  • Technical References
  • Openwall Security Mailing List Update

  • GitHub Kubernetes Issue Discussion

  • Kubernetes Security Announcement Group

  • NetApp Security Advisory NTAP-20230803-0004
  • Related CVEs
  • CVE-2024-3177: Kubernetes Auth Bypass Vulnerability

  • CVE-2023-1944: Kubernetes Minikube Auth Bypass Vulnerability

  • CVE-2023-1260: Kubernetes Kube-apiserver Auth Bypass Flaw

  • CVE-2022-3294: Kubernetes Auth Bypass Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now 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