Skip to content
Heist/ feed
Back to feed
Medium

Security advisory

Type: advisorySources: OSVCVE: CVE-2021-22137

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2021-22137
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 06:57 UTC · Revision 1

Source evidence

CVE-2021-22137

core-osv · Original source

Published 13 May 2021, 18:15 UTC

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.

osv:CVE-2021-22137
Complete source record
{
  "id": "f513af3f6fa69c214a112d4cc63d3c44eb3a80431223c22b178824b65b749698",
  "url": "https://osv.dev/vulnerability/CVE-2021-22137",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2021-22137",
    "summary": "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.",
    "evidence": "osv:CVE-2021-22137",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2021-22137",
      "aliases": [
        "BIT-elasticsearch-2021-22137",
        "CVE-2021-22137",
        "GHSA-hr65-qq6p-87r4"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/elastic/elasticsearch",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "c9a8c60f59a902dfa018abda97b195f7ba9f29aa"
                },
                {
                  "introduced": "8ced7813d6f16d2ef30792e2fcde3e755795ee04"
                },
                {
                  "fixed": "3e5a16cfec50876d20ea77b075070932c6464c7d"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:elastic:elasticsearch:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "6.8.15"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:elastic:elasticsearch:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "7.11.0"
                      },
                      {
                        "fixed": "7.11.2"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v7.11.1",
            "v7.11.0",
            "v6.8.14",
            "v6.8.13",
            "v6.8.12",
            "v6.8.11",
            "v6.8.10",
            "v6.8.9",
            "v6.8.8",
            "v6.8.7",
            "v6.8.6",
            "v6.8.5",
            "v6.8.4",
            "v6.8.3",
            "v6.8.2",
            "v6.8.1",
            "v6.8.0",
            "v6.7.2",
            "v6.7.1",
            "v6.7.0",
            "v6.0.0-alpha2",
            "v6.0.0-alpha1",
            "v1.0.0.RC1",
            "v1.0.0.Beta2",
            "v1.0.0.Beta1",
            "v0.90.0",
            "v0.90.0.RC2",
            "v0.90.0.RC1",
            "v0.90.0.Beta1",
            "v0.20.0.RC1",
            "v0.19.0",
            "v0.19.0.RC3",
            "v0.19.0.RC2",
            "v0.19.0.RC1",
            "v0.18.0",
            "v0.17.0",
            "v0.16.0",
            "v0.15.0",
            "v0.14.0",
            "v0.13.0",
            "v0.12.0",
            "v0.11.0",
            "v0.10.0",
            "v0.9.0",
            "v0.8.0",
            "v0.7.1",
            "v0.7.0",
            "v0.6.0",
            "v0.5.1",
            "v0.5.0",
            "v0.4.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-22137.json"
          }
        }
      ],
      "modified": "2026-10-24T10:30:46.925914225Z",
      "provider": "osv",
      "references": [
        "https://discuss.elastic.co/t/elastic-stack-7-12-0-and-6-8-15-security-update/268125",
        "https://security.netapp.com/advisory/ntap-20210625-0003/"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2021-22137",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 436436,
  "published_at": "2021-05-13T18:15:09.033+00:00"
}