MediumGHSA-2hmj-97jw-28jhBIT-zookeeper-2025-58457CVE-2025-58457

Apache ZooKeeper: Insufficient Permission Check in AdminServer Snapshot/Restore Commands

Published 24 Sept 2025 · 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 package

Affected
>=3.9.0 <3.9.4
Fixed in
3.9.4
Update to the fixed version for your release line, for example:mvn versions:use-dep-version -Dincludes=org.apache.zookeeper:zookeeper -DdepVersion=3.9.4 -DforceVersion=true

Details

Improper permission checks in the AdminServer allow an authenticated client with insufficient privileges to invoke the snapshot and restore commands. The intended requirement is authentication and authorization on the root path (/) with ALL permission for these operations; however, affected versions permit invocation without that level of authorization. The primary risk is disclosure of cluster state via snapshots to a lesser-privileged client.

  • Affected: org.apache.zookeeper:zookeeper 3.9.0 through 3.9.3.
  • Fixed: 3.9.4 (ZOOKEEPER-4964 “check permissions individually during admin server auth”).
  • Mitigations:
  • Disable both commands (admin.snapshot.enabled, admin.restore.enabled).
  • Disable AdminServer (admin.enableServer).
  • Ensure the root ACL is not open; note that ZooKeeper ACLs are not recursive.
  • Upgrade to 3.9.4.

Is GHSA-2hmj-97jw-28jh 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
  • HighCVE-2024-51504Apache ZooKeeper: Authentication bypass with IP-based authentication in Admin Server · 7 Nov 2024
  • MediumCVE-2024-23944Apache ZooKeeper vulnerable to information disclosure in persistent watchers handling · 15 Mar 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.