CVE-2025-58457: Apache ZooKeeper: Insufficient Permission Check in AdminServer Snapshot/Restore Commands
(updated )
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.
References
- github.com/advisories/GHSA-2hmj-97jw-28jh
- github.com/apache/zookeeper
- lists.apache.org/thread/r5yol0kkhx2fzw22pxk1ozwm3oc6yxrx
- nvd.nist.gov/vuln/detail/CVE-2025-58457
- zookeeper.apache.org/doc/current/zookeeperSnapshotAndRestore.html
- zookeeper.apache.org/doc/r3.9.4/releasenotes.html
- zookeeper.apache.org/security.html
Code Behaviors & Features
Detect and mitigate CVE-2025-58457 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →