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)
| Artifact | Affected versions | Fixed 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
69% of the dependent artifacts (13,431) still pull an affected version in their latest release.
| Depth | Dependent 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
- org.apache.hadoop » hadoop-common3,482 usages
- org.apache.spark » spark-sql3,174 usages
- org.apache.kafka » kafka-clients3,135 usages
- org.apache.spark » spark-core2,899 usages
- org.apache.hadoop » hadoop-client1,796 usages
- org.apache.kafka » kafka1,450 usages
- org.apache.hadoop » hadoop-hdfs1,377 usages
- org.apache.hadoop » hadoop-mapreduce-client-core1,366 usages
- org.apache.curator » curator-recipes1,197 usages
- org.apache.curator » curator-framework1,070 usages
- org.apache.kafka » connect-api1,026 usages
- org.apache.curator » curator-test1,002 usages
- org.apache.flink » flink-streaming-java982 usages
- org.apache.hbase » hbase-client960 usages
- org.apache.hadoop » hadoop-core855 usages
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.
References
- Advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2023-44981
- Packagehttps://github.com/apache/zookeeper
- Webhttps://lists.apache.org/thread/wf0yrk84dg1942z1o74kd8nycg6pgm5b
- Webhttps://lists.debian.org/debian-lts-announce/2023/10/msg00029.html
- Webhttps://security.netapp.com/advisory/ntap-20240621-0007
- Webhttps://www.debian.org/security/2023/dsa-5544
- Webhttp://www.openwall.com/lists/oss-security/2023/10/11/4
