CVE-2025-58457
Apache ZooKeeper: Insufficient Permission Check in AdminServer Snapshot/Restore Commands
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: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.
- Disable both commands (
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.apache.zookeeper » zookeeper | >= 3.9.0, < 3.9.4 | 3.9.4 |
Blast radius
58% of the dependent artifacts (730) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 7,469 |
| 2 hops | 17,468 |
| 3 hops | 10,079 |
| 4 hops | 26,111 |
| 5 hops | 14,975 |
| 6 hops | 5,602 |
Most used dependents
- org.apache.spark » spark-sql3,174 usages
- org.apache.spark » spark-core2,899 usages
- org.apache.curator » curator-recipes1,197 usages
- org.apache.curator » curator-framework1,070 usages
- org.apache.curator » curator-test1,002 usages
- org.apache.spark » spark-mllib831 usages
- org.apache.solr » solr-solrj784 usages
- org.apache.spark » spark-streaming670 usages
- org.apache.spark » spark-hive633 usages
- org.apache.curator » curator-client529 usages
- org.apache.spark » spark-catalyst502 usages
- org.apache.solr » solr-core500 usages
- org.apache.hive » hive-service301 usages
- org.apache.accumulo » accumulo-core213 usages
- org.apache.solr » solr-test-framework181 usages
Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
- Advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2025-58457
- Packagehttps://github.com/apache/zookeeper
- Webhttps://lists.apache.org/thread/r5yol0kkhx2fzw22pxk1ozwm3oc6yxrx
- Webhttps://zookeeper.apache.org/doc/current/zookeeperSnapshotAndRestore.html
- Webhttps://zookeeper.apache.org/doc/r3.9.4/releasenotes.html
- Webhttps://zookeeper.apache.org/security.html#CVE-2025-58457
- Webhttp://github.com/apache/zookeeper/commit/71e173fcbcc9deb784081cf867bd045df3c32635
- Webhttp://www.openwall.com/lists/oss-security/2025/09/24/10
