# CVE-2020-7010: Cryptographic Issues in ECK

> Weak random number generation in ECK allows attackers to brute force Elasticsearch credentials if deployment time is known.

- **Severity:** High 7.5 (`CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 3 Jun 2020
- **Updated:** 18 Nov 2024
- **Also known as:** GHSA-vfp4-xx6m-7vf6

## What is CVE-2020-7010?

CVE-2020-7010 is a high-severity vulnerability in Elastic Cloud on Kubernetes, published on 3 Jun 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

Elastic Cloud on Kubernetes (ECK) versions prior to 1.1.0 generate passwords using a weak random number generator. If an attacker is able to determine when the current Elastic Stack cluster was deployed they may be able to more easily brute force the Elasticsearch credentials generated by ECK.

Weakness: CWE-335 (Incorrect Usage of Seeds in Pseudo-Random Number Generator (PRNG))

## Which versions are affected by CVE-2020-7010?

2 open source packages ship an affected version, including github.com/elastic/cloud-on-k8s. It affects 1 product.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `github.com/elastic/cloud-on-k8s` | Go | All versions | 1.1.0 |
| `github.com/elastic/cloud-on-k8s` | Go | All versions | 1.1.0 |

Products: Elastic Elastic Cloud on Kubernetes.

## How do I fix CVE-2020-7010?

Upgrade github.com/elastic/cloud-on-k8s to 1.1.0 or later.

## Is CVE-2020-7010 being exploited?

There is no known exploitation of CVE-2020-7010 in the wild and no public exploit code.

## Other vulnerabilities in Elastic Cloud on Kubernetes

- [CVE-2026-72640](https://insights.sbomify.com/CVE-2026-72640/): Unintended Proxy or Intermediary in Elastic Cloud on Kubernetes Leading to Cross-Namespace Secret Disclosure (medium 6.5)
- [CVE-2026-72648](https://insights.sbomify.com/CVE-2026-72648/): Information disclosure in Eck Operator (medium 6.5)
- [CVE-2026-78609](https://insights.sbomify.com/CVE-2026-78609/): Incorrect Authorization in Elastic Cloud on Kubernetes Leading to Unauthorized Modification of Data (medium 5.4)
- [CVE-2023-31416](https://insights.sbomify.com/CVE-2023-31416/): Elastic Cloud on Kubernetes (ECK) secret token configuration issue (medium 5.3)
- [CVE-2026-78600](https://insights.sbomify.com/CVE-2026-78600/): Incomplete Cleanup in Elastic Cloud on Kubernetes Leading to Unauthorized Cross-Namespace Credential Retention (low 3.5)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2020-7010 and fix it if it is affected.

What it is: CVE-2020-7010 is a high-severity vulnerability in Elastic Cloud on Kubernetes, published on 3 Jun 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2020-7010 in the wild and no public exploit code.

Affected packages and fixed versions:
- github.com/elastic/cloud-on-k8s (Go): affected all versions; fixed in 1.1.0
- github.com/elastic/cloud-on-k8s (Go): affected all versions; fixed in 1.1.0

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2020-7010/ (Markdown: https://insights.sbomify.com/CVE-2020-7010/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2020-7010
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2020-7010
- OSV: https://osv.dev/vulnerability/CVE-2020-7010

---
From sbomify Insights: https://insights.sbomify.com/CVE-2020-7010/
Summaries are generated and may contain mistakes; the official description above is the record.
