Skip to content

Authorization Bypass Through User-Controlled Key vulnerability in Apache ZooKeeper

Critical severity GitHub Reviewed Published Oct 11, 2023 to the GitHub Advisory Database • Updated Jun 21, 2024

Package

maven org.apache.zookeeper:zookeeper (Maven)

Affected versions

< 3.7.2
>= 3.8.0, < 3.8.3
>= 3.9.0, < 3.9.1

Patched versions

3.7.2
3.8.3
3.9.1

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.

References

Published by the National Vulnerability Database Oct 11, 2023
Published to the GitHub Advisory Database Oct 11, 2023
Reviewed Oct 11, 2023
Last updated Jun 21, 2024

Severity

Critical

CVSS overall score

This score calculates overall vulnerability severity from 0 to 10 and is based on the Common Vulnerability Scoring System (CVSS).
/ 10

CVSS v3 base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None

CVSS v3 base metrics

Attack vector: More severe the more the remote (logically and physically) an attacker can be in order to exploit the vulnerability.
Attack complexity: More severe for the least complex attacks.
Privileges required: More severe if no privileges are required.
User interaction: More severe when no user interaction is required.
Scope: More severe when a scope change occurs, e.g. one vulnerable component impacts resources in components beyond its security scope.
Confidentiality: More severe when loss of data confidentiality is highest, measuring the level of data access available to an unauthorized user.
Integrity: More severe when loss of data integrity is the highest, measuring the consequence of data modification possible by an unauthorized user.
Availability: More severe when the loss of impacted component availability is highest.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

EPSS score

1.233%
(86th percentile)

Weaknesses

CVE ID

CVE-2023-44981

GHSA ID

GHSA-7286-pgfv-vxvh

Source code

Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.