Skip to content
Heist/ feed
Back to feed
Medium

Security advisory

Type: advisorySources: OSVCVE: CVE-2021-22135

Elasticsearch versions before 7.11.2 and 6.8.15 contain a document disclosure flaw was found in the Elasticsearch suggester and profile API when Document and Field Level Security are enabled. The suggester and profile API are normally disabled for an index when document level security is enabled on the index. Certain queries are able to enable the profiler and suggester which could lead to disclosing the existence of documents and fields the attacker should not be able to view.

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

Source evidence

CVE-2021-22135

core-osv · Original source

Published 13 May 2021, 18:15 UTC

Elasticsearch versions before 7.11.2 and 6.8.15 contain a document disclosure flaw was found in the Elasticsearch suggester and profile API when Document and Field Level Security are enabled. The suggester and profile API are normally disabled for an index when document level security is enabled on the index. Certain queries are able to enable the profiler and suggester which could lead to disclosing the existence of documents and fields the attacker should not be able to view.

osv:CVE-2021-22135
Complete source record
{
  "id": "e9729d10ea8c3f358b56201b5ad1aa981f650c06dd68dd73184e1235303459e8",
  "url": "https://osv.dev/vulnerability/CVE-2021-22135",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2021-22135",
    "summary": "Elasticsearch versions before 7.11.2 and 6.8.15 contain a document disclosure flaw was found in the Elasticsearch suggester and profile API when Document and Field Level Security are enabled. The suggester and profile API are normally disabled for an index when document level security is enabled on the index. Certain queries are able to enable the profiler and suggester which could lead to disclosing the existence of documents and fields the attacker should not be able to view.",
    "evidence": "osv:CVE-2021-22135",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2021-22135",
      "aliases": [
        "BIT-elasticsearch-2021-22135",
        "CVE-2021-22135",
        "GHSA-62ww-4p3p-7fhj"
      ],
      "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-22135.json"
          }
        }
      ],
      "modified": "2026-10-24T10:30:16.796838277Z",
      "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-22135",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 429415,
  "published_at": "2021-05-13T18:15:08.957+00:00"
}