Vulnerabilities in pkg:golang/go.etcd.io/etcd/client/v3

PACKAGE
Advisory Summary

GHSA-528j-9r78-wffx is a LOW etcd user credentials are stored vulnerability (CWE-256: Plaintext Storage of a Password) affecting Go.etcd.io/etcd/client/v3 libraries in the Go ecosystem. The issue involves etcd user credentials are stored in wal logs in plaintext. Remediation is available by upgrading affected packages to version 3.4.10, 3.3.23.

3 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:golang/go.etcd.io/etcd/client/v3

3 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:golang/go.etcd.io/etcd/client/v3. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-528j-9r78-wffx - LOW etcd user credentials are stored in WAL logs in plaintext
GHSA-9gp7-6833-wv89 - LOW etcd having a negative value for cluster node size results in an index out-of-bound panic during service discovery
GHSA-4993-m7g5-r9hh CVE-2020-15115 MODERATE etcd has no minimum password length

GHSA-528j-9r78-wffx at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-528j-9r78-wffx
Severity LOW
CVSS v3.1 Base Score N/A
CWE Classification CWE-256: Plaintext Storage of a Password
Affected Product Go.etcd.io/etcd/client/v3
Package Ecosystem Go
Published Date
Last Updated

How to Fix GHSA-528j-9r78-wffx

To remediate this vulnerability, upgrade all affected Go.etcd.io/etcd/client/v3 dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

go.etcd.io/etcd/client/v3 fixed: 3.4.10
Upgrade go.etcd.io/etcd/client/v3 to 3.4.10
go.etcd.io/etcd/client/v3 fixed: 3.3.23
Upgrade go.etcd.io/etcd/client/v3 to 3.3.23
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 go.etcd.io/etcd/client/v3

How to Check if You Are Affected

To determine whether your application is affected by GHSA-528j-9r78-wffx, inspect your project dependencies for Go.etcd.io/etcd/client/v3:

inspect dependencies for go.etcd.io/etcd/client/v3

Analyze the terminal output to locate any version of Go.etcd.io/etcd/client/v3 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.4.10), 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-256: Plaintext Storage of a Password, where the product stores a password in plaintext within resources such as memory or files. In Go.etcd.io/etcd/client/v3, 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

### Vulnerability type Data Exposure ### Workarounds The etcd assumes that the on disk files are secure. The possible fixes have been provided, however, it is the responsibility of the etcd users to make sure that the etcd server WAL log files are secure. The [etcd doesn't encrypt key/value data stored on disk drives](https://github.com/etcd-io/etcd/blob/master/Documentation/op-guide/security.md#does-etcd-encrypt-data-stored-on-disk-drives). ### Detail User credentials (login and password) are stored in WAL entries on each user authentication. If the WAL log files are not secure, it can potentially expose sensitive information. ### References Find out more on this vulnerability in the [security audit report](https://github.com/etcd-io/etcd/blob/master/security/SECURITY_AUDIT.pdf) ### For more information If you have any questions or comments about this advisory: * Contact the [etcd security committee](https://github.com/etcd-io/etcd/blob/master/security/security-release-process.md#product-security-committee-psc)

GHSA-528j-9r78-wffx Affected Go.etcd.io/etcd/client/v3 Versions

2 component(s)
Fixed Versions:
3.4.103.3.23
Product / Package Ecosystem Affected Versions Fixed Version
go.etcd.io/etcd/client/v3
Go
≥ 3.4.0
< 3.4.10
3.4.10
go.etcd.io/etcd/client/v3
Go
< 3.3.23
3.3.23

References

Frequently Asked Questions

What is GHSA-528j-9r78-wffx?
GHSA-528j-9r78-wffx is a security vulnerability in Go.etcd.io/etcd/client/v3 involving etcd user credentials are stored in WAL logs in plaintext under CWE-256: Plaintext Storage of a Password.
Which Go.etcd.io/etcd/client/v3 versions are affected?
Affected versions include releases prior to 3.4.10, 3.3.23 across affected packages: go.etcd.io/etcd/client/v3.
What version fixes GHSA-528j-9r78-wffx?
Upgrading to 3.4.10, 3.3.23 (or the latest patched release for your respective branch) resolves the vulnerability.
Is go.etcd.io/etcd/client/v3 affected?
Yes, go.etcd.io/etcd/client/v3 is affected in releases prior to 3.4.10, 3.3.23. Upgrade your dependency to 3.4.10, 3.3.23 or later.
What CWE is associated with GHSA-528j-9r78-wffx?
GHSA-528j-9r78-wffx is classified under CWE-256: Plaintext Storage of a Password (The product stores a password in plaintext within resources such as memory or files.).
How can I check Go dependencies for GHSA-528j-9r78-wffx?
Run the dependency tree command: 'inspect dependencies for go.etcd.io/etcd/client/v3'. 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-528j-9r78-wffx",
  "modified" : "2023-03-30T14:46:31Z",
  "published" : "2022-10-06T23:17:24Z",
  "aliases" : [ ],
  "summary" : "etcd user credentials are stored in WAL logs in plaintext",
  "details" : "### Vulnerability type\nData Exposure\n\n### Workarounds\nThe etcd assumes that the on disk files are secure. The possible fixes have been provided, however, it is the responsibility of the etcd users to make sure that the etcd server WAL log files are secure. The [etcd doesn't encrypt key/value data stored on disk drives](https://github.com/etcd-io/etcd/blob/master/Documentation/op-guide/security.md#does-etcd-encrypt-data-stored-on-disk-drives).\n\n### Detail\nUser credentials (login and password) are stored in WAL entries on each user authentication. If the WAL log files are not secure, it can potentially expose sensitive information.\n\n### References\nFind out more on this vulnerability in the [security audit report](https://github.com/etcd-io/etcd/blob/master/security/SECURITY_AUDIT.pdf)\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Contact the [etcd security committee](https://github.com/etcd-io/etcd/blob/master/security/security-release-process.md#product-security-committee-psc)",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "go.etcd.io/etcd/client/v3"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.4.0"
      }, {
        "fixed" : "3.4.10"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "go.etcd.io/etcd/client/v3"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "3.3.23"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/etcd-io/etcd/security/advisories/GHSA-528j-9r78-wffx"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/etcd-io/etcd/issues/10132"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/etcd-io/etcd/pull/11818"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/etcd-io/etcd/commit/585814082b8c8b7db272b30b365b81d27df4a4cb"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/etcd-io/etcd"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/etcd-io/etcd/blob/master/Documentation/op-guide/security.md#does-etcd-encrypt-data-stored-on-disk-drives"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/etcd-io/etcd/blob/master/security/SECURITY_AUDIT.pdf"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-256" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-10-06T23:17:24Z",
    "nvd_published_at" : null
  }
}