GitHub Advisoryadvisory · Maven
GHSA-2hmj-97jw-28jh Apache ZooKeeper: Insufficient Permission Check in AdminServer Snapshot/Restore Commands
MEDIUM
Official page ↗
- Aliases
- CVE-2025-58457
- Ecosystem
- Maven
- Packages
- org.apache.zookeeper:zookeeper
- Severity
- Moderate
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
- Weaknesses
- CWE-280
- Reviewed
- 2025-09-24
Affected packages
• Maven org.apache.zookeeper:zookeeper: >= 3.9.0, < 3.9.4 → fixed in 3.9.4
Description
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.
Related
Alias · CVE (1)
- CVE-2025-58457 Improper permission check in ZooKeeper AdminServer lets authorized clients to run snapshot and restore command with insufficient… vulnerability
Weakness · CWE (1)
- CWE-280 Improper Handling of Insufficient Permissions or Privileges weakness
References
- https://nvd.nist.gov/vuln/detail/CVE-2025-58457 advisory
- https://github.com/apache/zookeeper package
- https://lists.apache.org/thread/r5yol0kkhx2fzw22pxk1ozwm3oc6yxrx web
- https://zookeeper.apache.org/doc/current/zookeeperSnapshotAndRestore.html web
- https://zookeeper.apache.org/doc/r3.9.4/releasenotes.html web
- https://zookeeper.apache.org/security.html#CVE-2025-58457 web
- http://github.com/apache/zookeeper/commit/71e173fcbcc9deb784081cf867bd045df3c32635 web
- http://www.openwall.com/lists/oss-security/2025/09/24/10 web