cve.bz

CVE-2021-22137 elastic elasticsearch: Improper Preservation of Permissions

5.3 mediumEPSS 1.2%Fix available

Medium (5.3) in elastic elasticsearch. EPSS 1.2% estimated probability of exploitation activity in the next 30 days. Fixed in org.elasticsearch:elasticsearch 6.8.15, 7.11.2.

On this page
In Elasticsearch versions before 7.11.2 and 6.8.15 a document disclosure flaw was found when Document or Field Level Security is used. Search queries do not properly preserve security permissions when executing certain cross-cluster search queries. This could result in the search disclosing the existence of documents the attacker should not be able to view. This could result in an attacker gaining additional insight into potentially sensitive indices.

Severity

CVSS 3.1

5.3 medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
EPSS
1.2% (unchanged from 1.2% a week ago; 1.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 69th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWEs
CWE-281 Improper Preservation of Permissions
CWE-200 Exposure of Sensitive Information to an Unauthorized Actor
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-22137 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-22137?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-22137?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-22137 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
elastic:elasticsearchbefore 6.8.15
elastic:elasticsearchfrom 7.11.0 before 7.11.2

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-hr65-qq6p-87r4Mavenorg.elasticsearch:elasticsearch>=7.11.0 <7.11.27.11.2
GHSA-hr65-qq6p-87r4Mavenorg.elasticsearch:elasticsearch<6.8.156.8.15

Linux distributions

DistributionReleasePackageFixed inAdvisory
Ubuntu16.04:LTSelasticsearchno fix listedUBUNTU-CVE-2021-22137

From the distributions' data via OSV.dev: Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Ubuntu.

Red Hat

Red Hat rates this Low.

Red Hat's statement

In Elasticsearch, Document and Field Level Security is an enterprise only feature [1]. Hence the open source version is unaffected by this vulnerability.

[1] https://www.elastic.co/subscriptions

ProductPackageStateAdvisory
RHAF Camel-K 1.8elasticsearchFixed 2022-09-09RHSA-2022:6407
RHINT Camel-Q 2.7Fixed 2022-07-19RHSA-2022:5606
Logging Subsystem for Red Hat OpenShiftopenshift-logging/elasticsearch6-rhel8Not affected
Red Hat Decision Manager 7elasticsearchFix deferred
Red Hat Fuse 7elasticsearchFix deferred
Red Hat Integration Camel Quarkus 1elasticsearchNot affected
Red Hat JBoss Fuse 6elasticsearchOut of support scope
Red Hat OpenShift Container Platform 3.11openshift3/ose-logging-elasticsearch5Not affected
Red Hat OpenShift Container Platform 4openshift4/ose-logging-elasticsearch5Not affected
Red Hat OpenShift Container Platform 4openshift4/ose-logging-elasticsearch6Not affected
Red Hat Process Automation 7elasticsearchFix deferred

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-22137.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-200 (59).

References

Check your stackJSON