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
    • 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-37937

CVE-2021-37937: Elasticsearch Privilege Escalation Flaw

CVE-2021-37937 is a privilege escalation vulnerability in Elastic Elasticsearch affecting Fleet-Server API key creation. Attackers can exploit this to gain super-user privileges. This post covers technical details, impact, and fixes.

Published: February 25, 2026

CVE-2021-37937 Overview

CVE-2021-37937 is a privilege escalation vulnerability discovered in Elastic Elasticsearch's Fleet-Server service account API key creation mechanism. The flaw allows API keys created with a service account to potentially be assigned higher privileges than intended. A compromised Fleet-Server service account could exploit this vulnerability to escalate privileges to super-user level, granting full administrative control over the Elasticsearch cluster.

Critical Impact

A compromised Fleet-Server service account can escalate privileges to super-user, potentially gaining complete control over the Elasticsearch cluster, including access to all indices, cluster settings, and security configurations.

Affected Products

  • Elastic Elasticsearch (versions prior to 7.14.1)

Discovery Timeline

  • 2023-11-22 - CVE-2021-37937 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2021-37937

Vulnerability Analysis

This vulnerability stems from improper privilege management (CWE-269) in how Elasticsearch handles API key creation when initiated by the Fleet-Server service account. The core issue lies in the authorization logic that fails to properly constrain the privilege level of newly created API keys to match the permissions of the requesting service account.

When the Fleet-Server service account requests the creation of an API key through Elasticsearch's security API, the system does not adequately validate or restrict the privilege scope being assigned to that key. This allows an attacker who has compromised a Fleet-Server service account to craft API key creation requests that result in keys with elevated permissions—potentially achieving super-user access.

The attack requires initial access to a compromised Fleet-Server service account, making this a post-compromise escalation technique rather than an initial access vector.

Root Cause

The root cause is improper privilege management in the API key creation workflow for service accounts. The authorization boundary enforcement mechanism fails to ensure that service accounts can only create API keys with privileges equal to or lesser than their own assigned permissions. This architectural oversight allows privilege escalation through the API key subsystem.

Attack Vector

The attack is network-accessible and requires low-privilege authentication (a compromised Fleet-Server service account). An attacker with access to a Fleet-Server service account can interact with the Elasticsearch API over the network to create API keys with escalated privileges.

The exploitation flow involves:

  1. Attacker compromises a Fleet-Server service account through various means (credential theft, configuration exposure, etc.)
  2. Using the compromised service account credentials, the attacker makes API requests to create new API keys
  3. Due to the privilege validation flaw, the attacker can request and receive an API key with super-user privileges
  4. The attacker uses the elevated API key to perform administrative actions across the entire Elasticsearch cluster

Detection Methods for CVE-2021-37937

Indicators of Compromise

  • Unusual API key creation activity from Fleet-Server service accounts
  • API keys with super-user or elevated cluster privileges associated with service accounts
  • Unexpected administrative operations performed using service account-derived API keys
  • Audit log entries showing privilege escalation patterns from Fleet-Server contexts

Detection Strategies

  • Monitor Elasticsearch audit logs for API key creation events from service accounts with elevated privilege requests
  • Implement alerting on any API key creation that grants superuser role or cluster-admin privileges from non-admin accounts
  • Review API key assignments periodically to identify keys with privileges exceeding their associated service account scope
  • Enable Elasticsearch security logging and correlate with SIEM for anomalous service account behavior

Monitoring Recommendations

  • Enable comprehensive audit logging for Elasticsearch security events including API key lifecycle operations
  • Configure alerts for privilege escalation indicators such as service accounts creating administrative API keys
  • Implement behavioral baselines for Fleet-Server service account activity to detect anomalies
  • Monitor cluster security settings and role mappings for unauthorized modifications

How to Mitigate CVE-2021-37937

Immediate Actions Required

  • Upgrade Elastic Stack to version 7.14.1 or later immediately
  • Audit existing API keys associated with Fleet-Server service accounts for unexpected privilege levels
  • Revoke and regenerate any potentially compromised API keys
  • Review Fleet-Server service account configurations and limit network exposure

Patch Information

Elastic has addressed this vulnerability in Elastic Stack version 7.14.1. Organizations should upgrade to this version or later to remediate the privilege escalation issue. Detailed patch information is available in the Elastic Stack 7.14.1 Security Update Discussion. Additional security resources are available at the Elastic Community Security Portal.

Workarounds

  • Restrict network access to Fleet-Server and Elasticsearch API endpoints using firewall rules or network segmentation
  • Implement strict role-based access control (RBAC) and minimize service account privileges following the principle of least privilege
  • Enable and monitor audit logging to detect potential exploitation attempts
  • Consider temporarily disabling or rotating Fleet-Server service account credentials if compromise is suspected
bash
# Example: Restrict API access via Elasticsearch configuration
# Add to elasticsearch.yml to limit allowed API paths for service accounts
xpack.security.authc.api_key.enabled: true
xpack.security.audit.enabled: true
xpack.security.audit.logfile.events.include: ["authentication_success", "authentication_failed", "access_granted", "access_denied", "run_as_granted", "run_as_denied"]

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

  • Vulnerability Details
  • TypePrivilege Escalation

  • Vendor/TechElastic Elasticsearch

  • SeverityHIGH

  • CVSS Score8.8

  • EPSS Probability0.24%

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

  • NVD-CWE-noinfo
  • Vendor Resources
  • Elastic Security Update Discussion

  • Elastic Community Security Resources
  • Related CVEs
  • CVE-2023-46674: Elastic Elasticsearch Privilege Escalation

  • CVE-2020-7014: Elasticsearch Privilege Escalation Flaw

  • CVE-2024-23444: Elasticsearch Information Disclosure Flaw

  • CVE-2024-43709: Elastic Elasticsearch DOS Vulnerability
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