CVE-2021-22146
Elasticsearch vulnerability analysis and mitigation

Overview

All versions of Elastic Cloud Enterprise (ECE) has the Elasticsearch "anonymous" user enabled by default in deployed clusters. While in the default setting the anonymous user has no permissions and is unable to successfully query any Elasticsearch APIs, an attacker could leverage the anonymous user to gain insight into certain details of a deployed cluster. The vulnerability was discovered and disclosed in July 2021 (Elastic Discussion).

Technical details

The vulnerability has been assigned CVE-2021-22146 and received a CVSS v3.1 Base Score of 7.5 HIGH (Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N). The issue is classified under CWE-284: Improper Access Control. The vulnerability affects all ECE versions that have the anonymous user enabled as a default setting (NVD).

Impact

The vulnerability could allow an attacker to gain unauthorized insight into certain details of a deployed cluster. While the anonymous user has no permissions by default and cannot successfully query Elasticsearch APIs, the presence of this enabled account could potentially be leveraged to gather information about the cluster configuration (Elastic Discussion).

Mitigation and workarounds

ECE stack packs 7.10.0 and later versions have been updated to disable the anonymous user as of July 7, 2021. Users should apply the updated stack pack to mitigate this vulnerability. The stack packs can be downloaded from the official page. There are no known workarounds other than applying the security update (Elastic Discussion).

Additional resources


SourceThis report was generated using AI

Related Elasticsearch vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2024-52979HIGH7.5
  • JavaJava
  • elasticsearch
NoYesMay 01, 2025
CVE-2024-52981HIGH7.5
  • JavaJava
  • org.elasticsearch:elasticsearch
NoYesApr 08, 2025
CVE-2024-43709HIGH7.5
  • JavaJava
  • elasticsearch
NoYesJan 21, 2025
CVE-2024-52980MEDIUM6.5
  • JavaJava
  • org.elasticsearch:elasticsearch
NoYesApr 08, 2025
CVE-2025-37727MEDIUM5.7
  • JavaJava
  • ruby3.3-elasticsearch
NoYesOct 10, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management