Vulnerabilities in pkg:golang/github.com/elastic/cloud-on-k8s

PACKAGE
Advisory Identifier: GHSA-vfp4-xx6m-7vf6
Advisory Summary

CVE-2020-7010 is a HIGH (CVSS 7.5) cryptographic issues vulnerability (CWE-335: Incorrect Usage of Seeds in Pseudo-Random Number Generator (PRNG)) affecting Github.com/elastic/cloud on k8s libraries in the Go ecosystem. The issue involves cryptographic issues in eck. Remediation is available by upgrading affected packages to version 1.1.0.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:golang/github.com/elastic/cloud-on-k8s

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:golang/github.com/elastic/cloud-on-k8s. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-vfp4-xx6m-7vf6 CVE-2020-7010 HIGH Cryptographic Issues in ECK

CVE-2020-7010 at a Glance

CVE Identifier CVE-2020-7010
GHSA Identifier GHSA-vfp4-xx6m-7vf6
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-335: Incorrect Usage of Seeds in Pseudo-Random Number Generator (PRNG)
Affected Product Github.com/elastic/cloud on k8s
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 7.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2020-7010

To remediate this vulnerability, upgrade all affected Github.com/elastic/cloud on k8s dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/elastic/cloud-on-k8s fixed: 1.1.0
Upgrade github.com/elastic/cloud-on-k8s to 1.1.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/elastic/cloud-on-k8s

How to Check if You Are Affected

To determine whether your application is affected by CVE-2020-7010, inspect your project dependencies for Github.com/elastic/cloud on k8s:

inspect dependencies for github.com/elastic/cloud-on-k8s

Analyze the terminal output to locate any version of Github.com/elastic/cloud on k8s in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.1.0), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-335: Incorrect Usage of Seeds in Pseudo-Random Number Generator (PRNG), where the product uses a pseudo-random number generator (prng) but does not correctly manage seeds. In Github.com/elastic/cloud on k8s, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

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.

CVE-2020-7010 Affected Github.com/elastic/cloud on k8s Versions

1 component(s)
Fixed Versions:
1.1.0
Product / Package Ecosystem Affected Versions Fixed Version
github.com/elastic/cloud-on-k8s
Go
< 1.1.0
1.1.0

References

Frequently Asked Questions

What is CVE-2020-7010?
CVE-2020-7010 is a security vulnerability in Github.com/elastic/cloud on k8s involving Cryptographic Issues in ECK under CWE-335: Incorrect Usage of Seeds in Pseudo-Random Number Generator (PRNG).
Which Github.com/elastic/cloud on k8s versions are affected?
Affected versions include releases prior to 1.1.0 across affected packages: github.com/elastic/cloud-on-k8s.
What version fixes CVE-2020-7010?
Upgrading to 1.1.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/elastic/cloud-on-k8s affected?
Yes, github.com/elastic/cloud-on-k8s is affected in releases prior to 1.1.0. Upgrade your dependency to 1.1.0 or later.
What is the CVSS score of CVE-2020-7010?
CVE-2020-7010 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N.
What CWE is associated with CVE-2020-7010?
CVE-2020-7010 is classified under CWE-335: Incorrect Usage of Seeds in Pseudo-Random Number Generator (PRNG) (The product uses a Pseudo-Random Number Generator (PRNG) but does not correctly manage seeds.).
How can I check Go dependencies for CVE-2020-7010?
Run the dependency tree command: 'inspect dependencies for github.com/elastic/cloud-on-k8s'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-vfp4-xx6m-7vf6",
  "modified" : "2024-02-12T15:33:39Z",
  "published" : "2022-02-15T01:57:18Z",
  "aliases" : [ "CVE-2020-7010" ],
  "summary" : "Cryptographic Issues in ECK",
  "details" : "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.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/elastic/cloud-on-k8s"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.1.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-7010"
  }, {
    "type" : "WEB",
    "url" : "https://www.elastic.co/community/security"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-335" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2021-05-13T20:25:19Z",
    "nvd_published_at" : "2020-06-03T18:15:22Z"
  }
}