ADVISORIES

GitHub Advisory Database

GHSA-rfx7-8w68-q57q

etcd: Nested etcd transactions bypass RBAC authorization checks

Details

Impact

_What kind of vulnerability is it? Who is impacted?_

An authenticated user with RBAC restricted permissions on key ranges can use nested transactions to bypass all key-level authorization. This allows any authenticated user with direct access to etcd to effectively ignore all key range restrictions, accessing the entire etcd data store.

Kubernetes does not rely on etcd’s built-in authentication and authorization. Instead, the API server handles authentication and authorization itself, so typical Kubernetes deployments are not affected.

Patches

_Has the problem been patched? What versions should users upgrade to?_

This vulnerability is patched in the following versions:

  • etcd 3.6.9
  • etcd 3.5.28
  • etcd 3.4.42

Workarounds

_Is there a way for users to fix or remediate the vulnerability without upgrading?_

If upgrading is not immediately possible, reduce exposure by treating the affected RPCs as unauthenticated in practice.

  • restrict network access to etcd server ports so only trusted components can connect
  • require strong client identity at the transport layer, such as mTLS with tightly scoped client certificate

distribution

Reporters

_Our community helps keep etcd secure_

SIG-Etcd thanks community members Luke Francis and Battulga Byambaa for reporting this vulnerability.

Affected packages

EcosystemPackageAffected versions
Gogo.etcd.io/etcd/v3
From 3.6.0-alpha.0 before 3.6.9 (fixed in 3.6.9)
Gogo.etcd.io/etcd/v3
From 3.5.0-alpha.0 before 3.5.28 (fixed in 3.5.28)
Gogo.etcd.io/etcd/v3
All versions before 3.4.42 (fixed in 3.4.42)
Gogo.etcd.io/etcd
All versions up to and including 3.3.27

References