CVE-2025-58457: Apache ZooKeeper: Insufficient Permission Check in AdminServer Snapshot/Restore Commands
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.
Published Sep 24, 2025 · Updated Nov 5, 2025
Affected packages
org.apache.zookeeper:zookeeper
- Ecosystem
- Maven
- Affected
- >= 3.9.0, < 3.9.4
- Fixed in
- 3.9.4
- Check
mvn dependency:tree -Dincludes=org.apache.zookeeper:zookeeper
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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:zookeeper3.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.
Credited to cai0duque.
References
- https://nvd.nist.gov/vuln/detail/CVE-2025-58457
- https://lists.apache.org/thread/r5yol0kkhx2fzw22pxk1ozwm3oc6yxrx
- https://zookeeper.apache.org/security.html#CVE-2025-58457
- https://zookeeper.apache.org/doc/current/zookeeperSnapshotAndRestore.html
- https://zookeeper.apache.org/doc/r3.9.4/releasenotes.html
- https://github.com/advisories/GHSA-2hmj-97jw-28jh
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Maven vulnerabilities
All Maven entriesCVE-2026-24281
Apache ZooKeeper: Reverse-DNS fallback enables hostname verification bypass in ZooKeeper ZKTrustManager
high7.4Mar 7, 2026CVE-2026-24308
Apache ZooKeeper has improper handling of configuration values
high8.7Mar 7, 2026CVE-2024-51504
Apache ZooKeeper: Authentication bypass with IP-based authentication in Admin Server
high8.8Nov 7, 2024CVE-2024-23944
Apache ZooKeeper vulnerable to information disclosure in persistent watchers handling
medium5.3No fixMar 15, 2024
