Skip to content
Heist/ feed
Back to feed
High

Security advisory

Type: advisorySources: OSVCVE: CVE-2020-7009

Elasticsearch versions from 6.7.0 before 6.8.8 and 7.0.0 before 7.6.2 contain a privilege escalation flaw if an attacker is able to create API keys. An attacker who is able to generate an API key can perform a series of steps that result in an API key being generated with elevated privileges.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2020-7009
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 09:40 UTC · Revision 1

Source evidence

CVE-2020-7009

core-osv · Original source

Published 31 Mar 2020, 19:15 UTC

Elasticsearch versions from 6.7.0 before 6.8.8 and 7.0.0 before 7.6.2 contain a privilege escalation flaw if an attacker is able to create API keys. An attacker who is able to generate an API key can perform a series of steps that result in an API key being generated with elevated privileges.

osv:CVE-2020-7009
Complete source record
{
  "id": "1947c17080036551ecacaa1849e42f119c622f33b14c89d470d5f1048c41927c",
  "url": "https://osv.dev/vulnerability/CVE-2020-7009",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2020-7009",
    "summary": "Elasticsearch versions from 6.7.0 before 6.8.8 and 7.0.0 before 7.6.2 contain a privilege escalation flaw if an attacker is able to create API keys. An attacker who is able to generate an API key can perform a series of steps that result in an API key being generated with elevated privileges.",
    "evidence": "osv:CVE-2020-7009",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2020-7009",
      "aliases": [
        "BIT-elasticsearch-2020-7009",
        "CVE-2020-7009",
        "GHSA-gfv5-grx2-9jw2"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/elastic/elasticsearch",
              "type": "GIT",
              "events": [
                {
                  "introduced": "8453f7701de25c467ce08088ddddac185cb8028c"
                },
                {
                  "fixed": "2f4c2240ecfc520baef4353a726f13fc59c12066"
                },
                {
                  "introduced": "b7e28a7232616c7a21bc879a535d801b8553ba77"
                },
                {
                  "fixed": "ef48eb35cf30adf4db14086e8aabd07ef6fb113f"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:elastic:elasticsearch:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "6.7.0"
                      },
                      {
                        "fixed": "6.8.8"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:elastic:elasticsearch:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "7.0.0"
                      },
                      {
                        "fixed": "7.6.2"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "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"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2020-7009.json",
            "vanir_signatures": [
              {
                "id": "CVE-2020-7009-ce6852db",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "141220707678054705745522305309040454462",
                    "158424970524078855021575664188388536274",
                    "168165956481179781256416093989954890155",
                    "229144230071102220520223938177773900760",
                    "215768383982142562647290196310337018600",
                    "190980073495807060676851547796513033226",
                    "333735107382115999112409131379637046661",
                    "87411123562615438936629259441859462907",
                    "27044359176411794464378468348369271497",
                    "137538088923642007219958797903970617488",
                    "139230527099308005861097624179593880154",
                    "110417774001167584680810970205720355574",
                    "330881739204447203942678233789401326607",
                    "174898642828437128754699546969061413902",
                    "117686705537864882919318867788300419527",
                    "91246983906720789385337868592268029711"
                  ]
                },
                "source": "https://github.com/elastic/elasticsearch/commit/ef48eb35cf30adf4db14086e8aabd07ef6fb113f",
                "target": {
                  "file": "buildSrc/src/main/java/org/elasticsearch/gradle/test/DistroTestPlugin.java"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2020-7009-f78b34cc",
                "digest": {
                  "length": 2541,
                  "function_hash": "67819099224607828614636832684374336454"
                },
                "source": "https://github.com/elastic/elasticsearch/commit/ef48eb35cf30adf4db14086e8aabd07ef6fb113f",
                "target": {
                  "file": "buildSrc/src/main/java/org/elasticsearch/gradle/test/DistroTestPlugin.java",
                  "function": "apply"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              }
            ],
            "vanir_signatures_modified": "2026-10-25T01:16:48Z"
          }
        }
      ],
      "modified": "2026-10-25T01:16:48.704520384Z",
      "provider": "osv",
      "references": [
        "https://discuss.elastic.co/t/elastic-stack-6-8-8-and-7-6-2-security-update/225920",
        "https://security.netapp.com/advisory/ntap-20200403-0004/",
        "https://www.elastic.co/community/security/"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2020-7009",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 444447,
  "published_at": "2020-03-31T19:15:14.447+00:00"
}