CVE-2020-15106
JSON

6.5medium

Improper Input Validation in etcd

Severity
6.5medium CVSS:3.1 by GitHub_M
Exploit likelihood
1.26% (higher than 70% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-m332-53r6-2w93BIT-ETCD-2020-15106BIT-ETCD-2020-15112GHSA-p4g4-wgrh-qrg2GO-2020-0005

Description

In etcd before versions 3.3.23 and 3.4.10, a large slice causes panic in decodeRecord method. 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.

Affected

Product or packageVersionsReported by
etcd-io etcd< 3.3.23, < 3.4.10CVE List
go.etcd.io/etcd/v3 (Go)before 3.3.23, from 3.4.0 before 3.4.10GitHub Advisory Database
go.etcd.io/etcd (Go)before 0.5.0-alpha.5.0.20200423152442-f4b650b51dc4GitHub Advisory Database, Go Vulnerability Database
etcd etcdbefore 3.3.23, from 3.4.0 before 3.4.10NVD
fedoraproject fedora32NVD
etcd (Bitnami)before 3.3.23, from 3.4.0 before 3.4.10Bitnami Vulnerability Database

All scores

GitHub_M6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
GitHub5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
GitHub3.7low CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L
NVD6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
NVD4.0medium CVSS:2.0AV:N/AC:L/Au:S/C:N/I:N/A:P
Bitnami Vulnerability Databasemedium rating

Classification

What each source says

CVE List

In etcd before versions 3.3.23 and 3.4.10, a large slice causes panic in decodeRecord method. 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.

GitHub Advisory Database
Vulnerability type

Data Validation

Detail

In the ReadAll method in wal/wal.go, it is possible to have an entry index greater then the number of entries. This could cause issues when WAL entries are being read during consensus as an arbitrary etcd consensus participant could go down from a runtime panic when reading the entry.

References

Find out more on this vulnerability in the security audit report

For more information

If you have any questions or comments about this advisory:

GitHub Advisory Database
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

For more information

If you have any questions or comments about this advisory:

Go Vulnerability Database

Malformed WALs can be constructed such that WAL.ReadAll can cause attempted out of bounds reads, or creation of arbitrarily sized slices, which may be used as a DoS vector.

NVD (es)

En etcd versiones anteriores a 3.3.23 y 3.4.10, un segmento grande causa pánico en el método decodeRecord. El tamaño de un registro es almacenado en el campo de longitud de un archivo WAL y no se hace ninguna comprobación adicional en estos datos. Por lo tanto, es posible forjar un tamaño de trama extremadamente grande que puede entrar en pánico involuntariamente a expensas de cualquier participante de RAFT que intente decodificar el WAL

Bitnami Vulnerability Database

In etcd before versions 3.3.23 and 3.4.10, it is possible to have an entry index greater then the number of entries in the ReadAll method in wal/wal.go. This could cause issues when WAL entries are being read during consensus as an arbitrary etcd consensus participant could go down from a runtime panic when reading the entry.

References

https://github.com/etcd-io/etcd/security/advisories/GHSA-p4g4-wgrh-qrg2advisory, third-party-advisory, web
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/L6B6R43Y7M3DCHWK3L3UVGE2K6WWECMP/vendor-advisory, web
https://github.com/etcd-io/etcd/security/advisories/GHSA-m332-53r6-2w93advisory, web
https://nvd.nist.gov/vuln/detail/CVE-2020-15112advisory, web
https://github.com/etcd-io/etcd/pull/11793fix, web
https://github.com/etcd-io/etcd/commit/7d1cf640497cbcdfb932e619b13624112c7e3865web
https://github.com/etcd-io/etcd/commit/f4b650b51dc4a53a8700700dc12e1242ac56ba07fix, web
https://github.com/etcd-io/etcdpackage
https://github.com/etcd-io/etcd/blob/master/security/SECURITY_AUDIT.pdfweb
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/L6B6R43Y7M3DCHWK3L3UVGE2K6WWECMPweb
https://pkg.go.dev/vuln/GO-2020-0005web
https://nvd.nist.gov/vuln/detail/CVE-2020-15106advisory, web

Related

Sources

SourceRecordLicence
CVE ListCVE-2020-15106 changed 2024-08-04CVE Terms of Use
GitHub Advisory DatabaseGHSA-m332-53r6-2w93 changed 2026-09-10CC-BY-4.0
GitHub Advisory DatabaseGHSA-p4g4-wgrh-qrg2 changed 2026-09-10CC-BY-4.0
Go Vulnerability DatabaseGO-2020-0005 changed 2026-02-04CC-BY-4.0
NVDCVE-2020-15106 changed 2026-06-17Public domain
Bitnami Vulnerability DatabaseBIT-ETCD-2020-15106 changed 2026-09-08Apache-2.0
Bitnami Vulnerability DatabaseBIT-ETCD-2020-15112 changed 2026-09-08Apache-2.0