MediumGHSA-r978-9m6m-6gm6BIT-zookeeper-2024-23944CVE-2024-23944

Apache ZooKeeper vulnerable to information disclosure in persistent watchers handling

Published 15 Mar 2024 · Updated 10 Sept 2026

Is your project on an affected org.apache.zookeeper:zookeeper?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Java apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Affected packages

Affected
>=3.8.0 <3.8.4
Fixed in
3.8.4
Update to the fixed version for your release line, for example:mvn versions:use-dep-version -Dincludes=org.apache.zookeeper:zookeeper -DdepVersion=3.8.4 -DforceVersion=true
Affected
>=3.9.0 <3.9.2
Fixed in
3.9.2
Update to the fixed version for your release line, for example:mvn versions:use-dep-version -Dincludes=org.apache.zookeeper:zookeeper -DdepVersion=3.9.2 -DforceVersion=true
Affected
>=3.6.0 <=3.7.2
Fixed in
No fix released

Details

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.

Is GHSA-r978-9m6m-6gm6 in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected org.apache.zookeeper:zookeeper, and gives you the command that fixes it.

More advisories for org.apache.zookeeper:zookeeper

  • HighCVE-2026-24281Apache ZooKeeper: Reverse-DNS fallback enables hostname verification bypass in ZooKeeper ZKTrustManager · 7 Mar 2026
  • HighCVE-2026-24308Apache ZooKeeper has improper handling of configuration values · 7 Mar 2026
  • MediumCVE-2025-58457Apache ZooKeeper: Insufficient Permission Check in AdminServer Snapshot/Restore Commands · 24 Sept 2025
  • HighCVE-2024-51504Apache ZooKeeper: Authentication bypass with IP-based authentication in Admin Server · 7 Nov 2024
  • CriticalCVE-2023-44981Authorization Bypass Through User-Controlled Key vulnerability in Apache ZooKeeper · 11 Oct 2023
  • HighCVE-2017-5637Uncontrolled Resource Consumption in Apache ZooKeeper · 13 May 2022
All 9 advisories for org.apache.zookeeper:zookeeper

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.