CRITICAL 9.1

CVE-2023-44981

Authorization Bypass Through User-Controlled Key vulnerability in Apache ZooKeeper

Description

Authorization Bypass Through User-Controlled Key vulnerability in Apache ZooKeeper. If SASL Quorum Peer authentication is enabled in ZooKeeper (quorum.auth.enableSasl=true), the authorization is done by verifying that the instance part in SASL authentication ID is listed in zoo.cfg server list. The instance part in SASL auth ID is optional and if it's missing, like 'eve@EXAMPLE.COM', the authorization check will be skipped. As a result an arbitrary endpoint could join the cluster and begin propagating counterfeit changes to the leader, essentially giving it complete read-write access to the data tree. Quorum Peer authentication is not enabled by default.

Users are recommended to upgrade to version 3.9.1, 3.8.3, 3.7.2, which fixes the issue.

Alternately ensure the ensemble election/quorum communication is protected by a firewall as this will mitigate the issue.

See the documentation for more details on correct cluster administration.

Affected Maven artifacts (1)

ArtifactAffected versionsFixed in
org.apache.zookeeper » zookeeper
< 3.7.2>= 3.8.0, < 3.8.3>= 3.9.0, < 3.9.1
3.7.2, 3.8.3, 3.9.1

Blast radius

1affected artifacts
6,898affected versions
19,383dependent artifacts (est.)
1,714,365dependent versions

69% of the dependent artifacts (13,431) still pull an affected version in their latest release.

DepthDependent versions
Direct
165,302
2 hops
835,866
3 hops
441,466
4 hops
174,128
5 hops
74,578
6 hops
23,025

Most used dependents

Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.