Apache ZooKeeper: Insufficient Permission Check in AdminServer Snapshot/Restore Commands
Medium4.3CVE-2025-58457 · Published Sep 24, 2025 · updated Sep 10, 2026
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.
Affected versions
| Package | Affected | Fixed in |
|---|---|---|
| org.apache.zookeeper:zookeeper Maven | >= 3.9.0, < 3.9.4 | 3.9.4 |
Details and references
- CVSS 3.1
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
- Severity from
- GitHub (reviewed advisory)
- Weakness
- CWE-280
- Also known as
- BIT-zookeeper-2025-58457, CVE-2025-58457
- nvd.nist.gov/vuln/detail/CVE-2025-58457
- github.com/apache/zookeeper
- lists.apache.org/thread/r5yol0kkhx2fzw22pxk1ozwm3oc6yxrx
- zookeeper.apache.org/doc/current/zookeeperSnapshotAndRestore.html
- zookeeper.apache.org/doc/r3.9.4/releasenotes.html
- zookeeper.apache.org/security.html#CVE-2025-58457
- github.com/apache/zookeeper/commit/71e173fcbcc9deb784081cf867bd045df3c32635
- www.openwall.com/lists/oss-security/2025/09/24/10
More Apache ZooKeeper advisories
All Apache ZooKeeper| Date | Advisory | Severity | Fixed in |
|---|---|---|---|
| Mar 7 | Apache ZooKeeper has improper handling of configuration values | High | 3.8.6+1 more |
| Mar 7 | Apache ZooKeeper: Reverse-DNS fallback enables hostname verification bypass in ZooKeeper ZKTrustManager | High7.4 | 3.8.6+1 more |
| Nov 72024 | Apache ZooKeeper: Authentication bypass with IP-based authentication in Admin Server | High | 3.9.3 |
| Mar 152024 | Apache ZooKeeper vulnerable to information disclosure in persistent watchers handling | Medium5.3 | 3.8.4+1 more |
| Oct 112023 | Authorization Bypass Through User-Controlled Key vulnerability in Apache ZooKeeper | Critical9.1 | 3.7.2+2 more |
| May 132022 | Uncontrolled Resource Consumption in Apache ZooKeeper | High7.5 | 3.4.10+1 more |