CVE-2026-59739

Apache ZooKeeper: Information disclosure via SetWatches reconnect replay

Published Sep 16, 2026 CVSS 3.1 · 7.5 High EPSS < 1% KEV · Not listed
Description
Information disclosure via SetWatches reconnect replay in Apache ZooKeeper due to missing ACL check. An attacker can discover ACL-restricted paths by registering exists-watches on non-existent paths, then reconnecting after the paths are created with restricted ACLs. Issue is caused by incomplete fix for CVE-2024-23944 (ZOOKEEPER-4799). The fix added ACL checking to WatchManager.triggerWatch(). However, DataTree.setWatches() — the SetWatches/SetWatches2 reconnect replay handler — still calls watcher.process(event) with null ACL, bypassing the check entirely. 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.6, 3.8.7 which fixes the issue.

Analysis

AI-generated

Technical impact

There is an information‑disclosure flaw in Apache ZooKeeper caused by a missing ACL check during the reconnect replay of SetWatches requests. When an attacker registers an exists‑watch on a path that does not yet exist, and then reconnects after the path has been created with restrictive ACLs, ZooKeeper will trigger the watch with a null ACL, bypassing the access control check in WatchManager.triggerWatch(). The result is that the attacker learns the pathname of a znode that is normally ACL‑protected. While the flaw does not reveal the znode’s payload, the path itself may contain sensitive identifiers such as usernames or login IDs, making this a potentially critical vulnerability. The weakness is a classic example of CWE‑862: Missing Authorization, and also reflects CWE‑425: Incomplete Verification of Permissions.

Affected Systems

The flaw applies to all ZooKeeper 3.9.x and 3.8.x releases prior to Apache ZooKeeper 3.9.6 and 3.8.7, which lack the proper ACL verification in DataTree.setWatches(). The vendor responsible is the Apache Software Foundation, and any deployment that utilizes ZooKeeper ensembles communicating over an untrusted network is affected.

Risk and Exploitability

With a CVSS score of 7.5, this vulnerability is of high severity. The EPSS score is less than 1 %, indicating a low probability of exploitation at the time of analysis, and the issue is not listed in the CISA KEV catalog. Attackers would need remote network access to the ZooKeeper service and the ability to issue SetWatches requests; this requirement is inferred from the description because the CVE specifically mentions issuing SetWatches requests, but it does not state the exact network conditions. No local privilege escalation or advanced exploitation is required. The risk is mitigated entirely by applying the approved patch, after which the ACL checks are enforced correctly and the path disclosure vector is eliminated.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to Apache ZooKeeper 3.9.6 or 3.8.7 or later releases that include the ACL check fix.
  • Configure ZooKeeper to enforce client authentication (e.g., TLS or SASL) so that only verified clients can register watches.
  • Restrict ZooKeeper client access to authorized IP ranges or implement firewall rules to limit connections.

Generated by OpenCVE AI on September 28, 2026 at 15:04 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
CPEs cpe:2.3:a:apache:zookeeper:*:*:*:*:*:*:*:*
Type Values Removed Values Added
First Time appeared Apache
Apache zookeeper
Vendors & Products Apache
Apache zookeeper
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N'}

Type Values Removed Values Added
Description Information disclosure via SetWatches reconnect replay in Apache ZooKeeper due to missing ACL check. An attacker can discover ACL-restricted paths by registering exists-watches on non-existent paths, then reconnecting after the paths are created with restricted ACLs. Issue is caused by incomplete fix for CVE-2024-23944 (ZOOKEEPER-4799). The fix added ACL checking to WatchManager.triggerWatch(). However, DataTree.setWatches() — the SetWatches/SetWatches2 reconnect replay handler — still calls watcher.process(event) with null ACL, bypassing the check entirely. 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.6, 3.8.7 which fixes the issue.
Title Apache ZooKeeper: Information disclosure via SetWatches reconnect replay
Weaknesses CWE-862
References
Weaknesses
  • CWE-425

    Direct Request ('Forced Browsing')

  • CWE-862

    Missing Authorization

Sources

Status
PUBLISHED
Assigner
apache
Published
Updated
Sep 17, 2026, 7:19 PM
Reserved
Jul 6, 2026, 8:46 PM
Status
Analyzed
Published
Sep 16, 2026, 10:16 AM
Modified
Sep 18, 2026, 2:37 PM
Severity
Moderate
Public date
Sep 16, 2026, 9:26 AM