Etcd-io etcd
etcd: Watch API authorization bypass via open-ended range requests
etcd is a distributed key-value store for the data of a distributed system. Prior to versions 3.5.33, 3.6.14, and 3.7.1, a user granted READ permission on a single exact key can use the Watch gRPC API with clientv3.WithFromKey() to receive watch events for every key lexicographically greater than or equal to the permitted key. In server/etcdserver/api/v3rpc/watch.go, the open-ended RangeEnd sentinel is rewritten before the RBAC permission check in server/auth/range_perm_cache.go function isRangeOpPermitted, causing the request to be treated as an exact-key watch. Range/Get and DeleteRange requests are not affected, and the issue affects only clusters with authentication enabled. This issue is fixed in versions 3.5.33, 3.6.14, and 3.7.1.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 3.5.33
- >= 3.6.0, < 3.6.14
- >= 3.7.0-alpha.0, < 3.7.1
Fixed in 3.5.33, 3.6.14, 3.7.1
Mitigation
Upgrade etcd to 3.5.33 or 3.6.14 or 3.7.1 or later.
References
- Vendor advisory github.com/etcd-io/etcd/security/advisories/GH…
- Patch github.com/etcd-io/etcd/commit/6643f80602461a6…
- Patch github.com/etcd-io/etcd/commit/7cf71ec9e2ec542…
5 more
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.