CVE-2021-22146 in Elasticsearch
All versions of Elastic Cloud Enterprise 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 ce...
Affects 1 product from 1 vendor. Facts below cite their sources.
Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, no integrity impact, no availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Elastic | Elasticsearch | 7.13.3 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
Vendor PSIRT: [email protected]
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Reported · reference |
Official description
All versions of Elastic Cloud Enterprise 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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2021-22146 |
|---|---|
| BreachSpider ID | BS-2021-GLOBAL-246084-H |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| Published | 2021-07-21 |
| Last modified | 2026-06-17 |
| Source | NVD |
Analysis AI-written, not human-reviewed
CVE-2021-22146 affects all versions of Elastic Cloud Enterprise, where the Elasticsearch 'anonymous' user is enabled by default. This user, while having no permissions, can be leveraged to gain insights into the cluster, posing a moderate risk to the security of the environment.
The vulnerability allows an attacker to use the 'anonymous' user to gather information about the Elasticsearch cluster, which can be used to plan further attacks. The 'anonymous' user is enabled by default and can be accessed over the network without authentication.
Compensating controls AI-drafted, review before use
Implement network segmentation to restrict access to the Elasticsearch cluster from untrusted networks. Ensure that only authorized users can access the cluster.
NERC CIP: CIP-007 CIP-007-R2
IEC 62443: SR 7.6
Not validated for your network. A compensating control does not replace the vendor fix.
Questions
What is CVE-2021-22146?
CVE-2021-22146 affects all versions of Elastic Cloud Enterprise, where the Elasticsearch 'anonymous' user is enabled by default. This user, while having no permissions, can be leveraged to gain insights into the cluster, posing a moderate risk to the security of the environment.
What is the CVSS score for CVE-2021-22146?
CVE-2021-22146 has CVSS 7.5 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N. EPSS: 35.0%.
Is CVE-2021-22146 actively exploited?
Public exploit available for CVE-2021-22146. Exploitation risk elevated.
How do I remediate CVE-2021-22146?
Priority: MEDIUM. Advisory: https://discuss.elastic.co/t/elastic-cloud-enterprise-security-update/279180 PSIRT: [email protected]
What systems are affected by CVE-2021-22146?
CVE-2021-22146 affects Elastic Elasticsearch.
What NERC-CIP standard applies to CVE-2021-22146?
NERC CIP CIP-007 CIP-007-R2: This CVE violates CIP-007-R2 as it allows unauthorized access to the Elasticsearch cluster, which could lead to the compromise of critical cyber assets.
What IEC 62443 requirement maps to CVE-2021-22146?
IEC 62443 SR 7.6: This CVE maps to SR 7.6 as it involves the default configuration of a user account that can be exploited to gain unauthorized access to the system, which is a security risk.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Elastic","product":"Elasticsearch","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.