Improper Handling of Insufficient Permissions or Privileges Affecting org.apache.zookeeper:zookeeper package, versions [3.9.0, 3.9.4)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.07% (22nd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Improper Handling of Insufficient Permissions or Privileges vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JAVA-ORGAPACHEZOOKEEPER-13045609
  • published26 Sept 2025
  • disclosed24 Sept 2025
  • creditDamien Diederen

Introduced: 24 Sep 2025

NewCVE-2025-58457  (opens in a new tab)
CWE-280  (opens in a new tab)

How to fix?

Upgrade org.apache.zookeeper:zookeeper to version 3.9.4 or higher.

Overview

org.apache.zookeeper:zookeeper is a centralized service for maintaining configuration information, naming, providing distributed synchronization, and providing group services.

Affected versions of this package are vulnerable to Improper Handling of Insufficient Permissions or Privileges due to insufficient permission checks in the handleAuthorization function. A user can gain unauthorized access to sensitive operations by executing snapshot and restore commands without adequate permissions.

Workaround

This vulnerability can be mitigated by disabling the snapshot and restore commands via admin.snapshot.enabled and admin.restore.enabled, disabling the AdminServer interface entirely via admin.enableServer, or ensuring the root ACL does not provide open permissions.

Note: ZooKeeper ACLs are not recursive, so the workaround does not impact operations on child nodes besides notifications from recursive watches.

CVSS Base Scores

version 4.0
version 3.1