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-2020-7021

CVE-2020-7021: Elasticsearch Information Disclosure Flaw

CVE-2020-7021 is an information disclosure vulnerability in Elastic Elasticsearch that exposes sensitive data in audit logs when emit_request_body is enabled. This article covers technical details, affected versions, and mitigation.

Published: March 4, 2026

CVE-2020-7021 Overview

CVE-2020-7021 is an information disclosure vulnerability affecting Elasticsearch versions before 7.10.0 and 6.8.14. When audit logging is enabled with the emit_request_body option, the Elasticsearch audit log may contain sensitive information such as password hashes or authentication tokens. This vulnerability could allow an Elasticsearch administrator with access to audit logs to view these sensitive authentication details, potentially leading to credential theft or unauthorized access escalation.

Critical Impact

Sensitive authentication data including password hashes and tokens may be exposed in audit logs, enabling administrators to harvest credentials.

Affected Products

  • Elastic Elasticsearch versions before 7.10.0
  • Elastic Elasticsearch versions before 6.8.14
  • Systems with audit logging enabled and emit_request_body option configured

Discovery Timeline

  • 2021-02-10 - CVE-2020-7021 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2020-7021

Vulnerability Analysis

This vulnerability is classified under CWE-532 (Insertion of Sensitive Information into Log File). The issue arises from improper handling of request body content during audit logging operations. When Elasticsearch's audit logging feature is configured with the emit_request_body option enabled, the system logs the complete HTTP request body for auditable events. This behavior becomes problematic when authentication-related API requests are processed, as the logged content may include plaintext credentials, password hashes, or authentication tokens submitted by users during login or credential update operations.

The vulnerability requires network access but is limited in scope as exploitation requires elevated privileges—specifically, an attacker must already possess administrative access to the Elasticsearch cluster to read audit logs. However, this limitation does not diminish the risk in multi-administrator environments or scenarios where audit logs are forwarded to centralized logging systems with broader access.

Root Cause

The root cause of this vulnerability lies in insufficient filtering of sensitive data before writing to audit logs. The emit_request_body audit logging option was designed to provide detailed request information for compliance and debugging purposes, but the implementation failed to properly redact or mask sensitive authentication fields from the logged request bodies. Password hashes and authentication tokens contained in authentication API requests were written directly to the audit log without sanitization.

Attack Vector

The attack vector for CVE-2020-7021 requires network-based access with high privileges. An attacker exploiting this vulnerability would need:

  1. Administrative access to the Elasticsearch cluster
  2. Audit logging enabled with emit_request_body option
  3. Access to read audit log files or the audit log index

Once these conditions are met, the attacker can review audit logs to extract sensitive authentication information from previously logged requests. This could include password hashes that might be cracked offline, or authentication tokens that could be used for session hijacking or replay attacks.

Detection Methods for CVE-2020-7021

Indicators of Compromise

  • Unusual access patterns to audit log indices or files by administrative accounts
  • Bulk export or repeated queries against audit log data
  • Presence of authentication-related fields (password hashes, tokens) in audit log entries

Detection Strategies

  • Monitor access to Elasticsearch audit log indices for anomalous query patterns
  • Implement alerting on administrative access to audit log storage locations
  • Review audit log configurations to identify instances where emit_request_body is enabled
  • Audit administrative account activity for unauthorized credential harvesting behavior

Monitoring Recommendations

  • Enable access logging on audit log files and indices to track who accesses sensitive log data
  • Implement role-based access controls limiting audit log visibility to essential personnel only
  • Deploy file integrity monitoring on audit log directories to detect unauthorized access or exfiltration
  • Consider integrating Elasticsearch security events with SentinelOne Singularity platform for centralized threat detection

How to Mitigate CVE-2020-7021

Immediate Actions Required

  • Upgrade Elasticsearch to version 7.10.0 or later for the 7.x branch
  • Upgrade Elasticsearch to version 6.8.14 or later for the 6.x branch
  • Review and rotate any credentials that may have been exposed in existing audit logs
  • Restrict access to audit log files and indices to minimize exposure

Patch Information

Elastic has released security updates addressing this vulnerability. The fixes are included in Elasticsearch versions 7.10.0+ and 6.8.14+. Detailed information about the security update is available in the Elastic Stack Security Update. Additional vendor guidance is available from the NetApp Security Advisory.

Workarounds

  • Disable the emit_request_body option in audit logging configuration if not strictly required
  • Implement additional access controls on audit log storage to limit exposure
  • Configure audit log rotation and secure deletion to minimize the window of credential exposure
  • Consider excluding authentication-related API endpoints from detailed audit logging
bash
# Configuration example - Disable emit_request_body in elasticsearch.yml
# Review your xpack.security.audit settings
xpack.security.audit.enabled: true
xpack.security.audit.logfile.events.emit_request_body: false

# Alternatively, use include/exclude filters to prevent logging auth endpoints
xpack.security.audit.logfile.events.exclude: ["authentication_success", "authentication_failed"]

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

  • Vulnerability Details
  • TypeInformation Disclosure

  • Vendor/TechElastic Elasticsearch

  • SeverityMEDIUM

  • CVSS Score4.9

  • EPSS Probability0.29%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-532
  • Technical References
  • NetApp Security Advisory
  • Vendor Resources
  • Elastic Security Update
  • Related CVEs
  • CVE-2024-23444: Elasticsearch Information Disclosure Flaw

  • CVE-2021-22132: Elasticsearch Information Disclosure Flaw

  • CVE-2020-7019: 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