CVE-2020-15106: Go.etcd.io/etcd Panic Due To Malformed WALs Vulnerability

LOW
Advisory Identifier: GHSA-p4g4-wgrh-qrg2
CVSS 3.7
CWE-20
Published
Advisory Summary

CVE-2020-15106 is a LOW (CVSS 3.7) panic due to malformed wals vulnerability (CWE-20: Improper Input Validation) affecting Go.etcd.io/etcd libraries in the Go ecosystem. The issue involves panic due to malformed wals in go.etcd.io/etcd. Remediation is available by upgrading affected packages to version 0.5.0-alpha.5.0.20200423152442-f4b650b51dc4.

CVE-2020-15106 at a Glance

CVE Identifier CVE-2020-15106
GHSA Identifier GHSA-p4g4-wgrh-qrg2
Severity LOW
CVSS v3.1 Base Score 3.7
CWE Classification CWE-20: Improper Input Validation
Affected Product Go.etcd.io/etcd
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 3.7

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

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

How to Fix CVE-2020-15106

To remediate this vulnerability, upgrade all affected Go.etcd.io/etcd 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 fixed: 0.5.0-alpha.5.0.20200423152442-f4b650b51dc4
Upgrade go.etcd.io/etcd to 0.5.0-alpha.5.0.20200423152442-f4b650b51dc4
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

How to Check if You Are Affected

To determine whether your application is affected by CVE-2020-15106, inspect your project dependencies for Go.etcd.io/etcd:

inspect dependencies for go.etcd.io/etcd

Analyze the terminal output to locate any version of Go.etcd.io/etcd in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.5.0-alpha.5.0.20200423152442-f4b650b51dc4), 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-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. In Go.etcd.io/etcd, 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 Validation ### Detail The size of a record is stored in the length field of a WAL file and no additional validation is done on this data. Therefore, it is possible to forge an extremely large frame size that can unintentionally panic at the expense of any RAFT participant trying to decode the WAL. ### Specific Go Packages Affected github.com/etcd-io/etcd/wal ### 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)

CVE-2020-15106 Affected Go.etcd.io/etcd Versions

1 component(s)
Fixed Versions:
0.5.0-alpha.5.0.20200423152442-f4b650b51dc4
Product / Package Ecosystem Affected Versions Fixed Version
go.etcd.io/etcd
Go
< 0.5.0-alpha.5.0.20200423152442-f4b650b51dc4
0.5.0-alpha.5.0.20200423152442-f4b650b51dc4

References

Frequently Asked Questions

What is CVE-2020-15106?
CVE-2020-15106 is a security vulnerability in Go.etcd.io/etcd involving Panic due to malformed WALs in go.etcd.io/etcd under CWE-20: Improper Input Validation.
Which Go.etcd.io/etcd versions are affected?
Affected versions include releases prior to 0.5.0-alpha.5.0.20200423152442-f4b650b51dc4 across affected packages: go.etcd.io/etcd.
What version fixes CVE-2020-15106?
Upgrading to 0.5.0-alpha.5.0.20200423152442-f4b650b51dc4 (or the latest patched release for your respective branch) resolves the vulnerability.
Is go.etcd.io/etcd affected?
Yes, go.etcd.io/etcd is affected in releases prior to 0.5.0-alpha.5.0.20200423152442-f4b650b51dc4. Upgrade your dependency to 0.5.0-alpha.5.0.20200423152442-f4b650b51dc4 or later.
What is the CVSS score of CVE-2020-15106?
CVE-2020-15106 has a CVSS v3.1 base score of 3.7 (LOW) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L.
What CWE is associated with CVE-2020-15106?
CVE-2020-15106 is classified under CWE-20: Improper Input Validation (The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.).
How can I check Go dependencies for CVE-2020-15106?
Run the dependency tree command: 'inspect dependencies for go.etcd.io/etcd'. 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-p4g4-wgrh-qrg2",
  "modified" : "2023-10-02T13:55:51Z",
  "published" : "2023-02-07T22:59:30Z",
  "aliases" : [ "CVE-2020-15106" ],
  "summary" : "Panic due to malformed WALs in go.etcd.io/etcd",
  "details" : "### Vulnerability type\nData Validation\n\n### Detail\nThe size of a record is stored in the length field of a WAL file and no additional validation is done on this data. Therefore, it is possible to forge an extremely large frame size that can unintentionally panic at the expense of any RAFT participant trying to decode the WAL.\n\n### Specific Go Packages Affected\ngithub.com/etcd-io/etcd/wal\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" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "go.etcd.io/etcd"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.5.0-alpha.5.0.20200423152442-f4b650b51dc4"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/etcd-io/etcd/security/advisories/GHSA-p4g4-wgrh-qrg2"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-15106"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/etcd-io/etcd/pull/11793"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/etcd-io/etcd/commit/4571e528f49625d3de3170f219a45c3b3d38c675"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/etcd-io/etcd/commit/f4b650b51dc4a53a8700700dc12e1242ac56ba07"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/etcd-io/etcd"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/etcd-io/etcd/blob/master/security/SECURITY_AUDIT.pdf"
  }, {
    "type" : "WEB",
    "url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/L6B6R43Y7M3DCHWK3L3UVGE2K6WWECMP"
  }, {
    "type" : "WEB",
    "url" : "https://pkg.go.dev/vuln/GO-2020-0005"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-20" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-02-07T22:59:30Z",
    "nvd_published_at" : "2020-08-05T19:15:00Z"
  }
}