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 package | Versions | Reported by |
|---|---|---|
| etcd-io etcd | < 3.3.23, < 3.4.10 | CVE List |
| go.etcd.io/etcd/v3 (Go) | before 3.3.23, from 3.4.0 before 3.4.10 | GitHub Advisory Database |
| go.etcd.io/etcd (Go) | before 0.5.0-alpha.5.0.20200423152442-f4b650b51dc4 | GitHub Advisory Database, Go Vulnerability Database |
| etcd etcd | before 3.3.23, from 3.4.0 before 3.4.10 | NVD |
| fedoraproject fedora | 32 | NVD |
| etcd (Bitnami) | before 3.3.23, from 3.4.0 before 3.4.10 | Bitnami Vulnerability Database |
All scores
| GitHub_M | 6.5medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| GitHub | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| GitHub | 3.7low CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L |
| NVD | 6.5medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| NVD | 4.0medium CVSS:2.0 | AV:N/AC:L/Au:S/C:N/I:N/A:P |
| Bitnami Vulnerability Database | medium 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:
- Contact the etcd security committee
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:
- Contact the etcd security committee
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
Related
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2020-15106 changed 2024-08-04 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-m332-53r6-2w93 changed 2026-09-10 | CC-BY-4.0 |
| GitHub Advisory Database | GHSA-p4g4-wgrh-qrg2 changed 2026-09-10 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2020-0005 changed 2026-02-04 | CC-BY-4.0 |
| NVD | CVE-2020-15106 changed 2026-06-17 | Public domain |
| Bitnami Vulnerability Database | BIT-ETCD-2020-15106 changed 2026-09-08 | Apache-2.0 |
| Bitnami Vulnerability Database | BIT-ETCD-2020-15112 changed 2026-09-08 | Apache-2.0 |