Apache ZooKeeper security advisories
Security information for Apache ZooKeeper
Reporting
Do you want disclose a potential security issue for Apache ZooKeeper? You can read more about the projects’ security policy on their security page, and email your report to the Apache ZooKeeper Security Team.
Advisories
This section is experimental: it provides advisories since 2023 and may lag behind the official CVE publications. It may also lack details found on the project security page. If you have any feedback on how you would like this data to be provided, you are welcome to reach out on our public mailinglist or privately on security@apache.org
Sensitive information disclosure in client configuration handling
CVE-2026-24308 [CVE] [CVE json] [OSV json]
Last updated: 2026-03-07T08:51:03.330Z
Affected
- Apache ZooKeeper from 3.9.0 through 3.9.4
- Apache ZooKeeper from 3.8.0 through 3.8.5
Description
Improper handling of configuration values in ZKConfig in Apache ZooKeeper 3.8.5 and 3.9.4 on all platforms allows an attacker to expose sensitive information stored in client configuration in the client’s logfile. Configuration values are exposed at INFO level logging rendering potential production systems affected by the issue. Users are recommended to upgrade to version 3.8.6 or 3.9.5 which fixes this issue.
References
Credits
- Youlong Chen chenyoulong20g@ict.ac.cn (reporter)
Reverse-DNS fallback enables hostname verification bypass in ZooKeeper ZKTrustManager
CVE-2026-24281 [CVE] [CVE json] [OSV json]
Last updated: 2026-03-07T08:50:30.345Z
Affected
- Apache ZooKeeper from 3.9.0 through 3.9.4
- Apache ZooKeeper from 3.8.0 through 3.8.5
Description
Hostname verification in Apache ZooKeeper ZKTrustManager falls back to reverse DNS (PTR) when IP SAN validation fails, allowing attackers who control or spoof PTR records to impersonate ZooKeeper servers or clients with a valid certificate for the PTR name. It’s important to note that attacker must present a certificate which is trusted by ZKTrustManager which makes the attack vector harder to exploit. Users are recommended to upgrade to version 3.8.6 or 3.9.5, which fixes this issue by introducing a new configuration option to disable reverse DNS lookup in client and quorum protocols.
References
Credits
- Nikita Markevich markevich.nikita1@gmail.com (reporter)
Insufficient Permission Check in AdminServer Snapshot/Restore Commands
CVE-2025-58457 [CVE] [CVE json] [OSV json]
Last updated: 2025-09-24T09:29:42.132Z
Affected
- Apache ZooKeeper from 3.9.0 before 3.9.4
Description
Improper permission check in ZooKeeper AdminServer lets authorized clients to run snapshot and restore command with insufficient permissions.
This issue affects Apache ZooKeeper: from 3.9.0 before 3.9.4.
Users are recommended to upgrade to version 3.9.4, which fixes the issue.
The issue can be mitigated by disabling both commands (via admin.snapshot.enabled and admin.restore.enabled), disabling the whole AdminServer interface (via admin.enableServer), or ensuring that the root ACL does not provide open permissions. (Note that ZooKeeper ACLs are not recursive, so this does not impact operations on child nodes besides notifications from recursive watches.)
References
Credits
- Damien Diederen ddiederen@apache.org (reporter)
Authentication bypass with IP-based authentication in Admin Server
CVE-2024-51504 [CVE] [CVE json] [OSV json]
Last updated: 2024-11-07T09:52:02.061Z
Affected
- Apache ZooKeeper from 3.9.0 before 3.9.3
Description
When using IPAuthenticationProvider in ZooKeeper Admin Server there is a possibility of Authentication Bypass by Spoofing – this only impacts IP based authentication implemented in ZooKeeper Admin Server. Default configuration of client’s IP address detection in IPAuthenticationProvider, which uses HTTP request headers, is weak and allows an attacker to bypass authentication via spoofing client’s IP address in request headers. Default configuration honors X-Forwarded-For HTTP header to read client’s IP address. X-Forwarded-For request header is mainly used by proxy servers to identify the client and can be easily spoofed by an attacker pretending that the request comes from a different IP address. Admin Server commands, such as snapshot and restore arbitrarily can be executed on successful exploitation which could potentially lead to information leakage or service availability issues. Users are recommended to upgrade to version 3.9.3, which fixes this issue.
References
Credits
- 4ra1n (reporter)
- Y4tacker (reporter)
Information disclosure in persistent watcher handling
CVE-2024-23944 [CVE] [CVE json] [OSV json]
Last updated: 2025-07-03T14:52:54.955Z
Affected
- Apache ZooKeeper from 3.9.0 through 3.9.1
- Apache ZooKeeper from 3.8.0 through 3.8.3
- Apache ZooKeeper from 3.6.0 through 3.7.2
Description
Information disclosure in persistent watchers handling in Apache ZooKeeper due to missing ACL check. It allows an attacker to monitor child znodes by attaching a persistent watcher (addWatch command) to a parent which the attacker has already access to. ZooKeeper server doesn’t do ACL check when the persistent watcher is triggered and as a consequence, the full path of znodes that a watch event gets triggered upon is exposed to the owner of the watcher. It’s important to note that only the path is exposed by this vulnerability, not the data of znode, but since znode path can contain sensitive information like user name or login ID, this issue is potentially critical.
Users are recommended to upgrade to version 3.9.2, 3.8.4 which fixes the issue.
References
Credits
- 周吉安(寒泉) zhoujian.zja@alibaba-inc.com (reporter)
Authorization bypass in SASL Quorum Peer Authentication
CVE-2023-44981 [CVE] [CVE json] [OSV json]
Last updated: 2023-10-11T11:55:41.759Z
Affected
- Apache ZooKeeper from 3.9.0 before 3.9.1
- Apache ZooKeeper from 3.8.0 through 3.8.2
- Apache ZooKeeper from 3.7.0 through 3.7.1
- Apache ZooKeeper before 3.7.0
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
Credits
- Damien Diederen ddiederen@apache.org (reporter)