CVE-2023-44981: Zookeeper Authorization Bypass Through User-Controlled Key Vulnerability
CRITICALCVE-2023-44981 is a CRITICAL (CVSS 9.1) authorization bypass through user-controlled key vulnerability (CWE-639: Authorization Bypass Through User-Controlled Key) affecting Zookeeper libraries in the Maven ecosystem. The issue involves authorization bypass through user-controlled key vulnerability in apache zookeeper. Remediation is available by upgrading affected packages to version 3.7.2, 3.8.3, 3.9.1.
CVE-2023-44981 at a Glance
Security Impact
CVSS: 9.1
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N).
How to Fix CVE-2023-44981
To remediate this vulnerability, upgrade all affected Zookeeper dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
<dependency>
<groupId>org.apache.zookeeper</groupId>
<artifactId>zookeeper</artifactId>
<version>3.7.2</version>
</dependency>
<dependency>
<groupId>org.apache.zookeeper</groupId>
<artifactId>zookeeper</artifactId>
<version>3.8.3</version>
</dependency>
<dependency>
<groupId>org.apache.zookeeper</groupId>
<artifactId>zookeeper</artifactId>
<version>3.9.1</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree -Dincludes=org.apache.zookeeper
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2023-44981, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=org.apache.zookeeper
Analyze the terminal output to locate any version of Zookeeper in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.7.2), your application is affected.
Note: The mvn dependency:tree -Dincludes=org.apache.zookeeper command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-639: Authorization Bypass Through User-Controlled Key, where the system's authorization functionality does not prevent one user from gaining access to another user's data or record by modifying the key value identifying the data. In Zookeeper, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2023-44981 Affected Zookeeper Versions
3 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.apache.zookeeper:zookeeper
|
Maven |
< 3.7.2
|
3.7.2
|
|
org.apache.zookeeper:zookeeper
|
Maven |
≥ 3.8.0
< 3.8.3
|
3.8.3
|
|
org.apache.zookeeper:zookeeper
|
Maven |
≥ 3.9.0
< 3.9.1
|
3.9.1
|
References
Frequently Asked Questions
What is CVE-2023-44981?
Which Zookeeper versions are affected?
What version fixes CVE-2023-44981?
Is zookeeper affected?
What is the CVSS score of CVE-2023-44981?
What CWE is associated with CVE-2023-44981?
How can I check Maven dependencies for CVE-2023-44981?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-7286-pgfv-vxvh",
"modified" : "2025-02-13T19:18:13Z",
"published" : "2023-10-11T12:30:27Z",
"aliases" : [ "CVE-2023-44981" ],
"summary" : "Authorization Bypass Through User-Controlled Key vulnerability in Apache ZooKeeper",
"details" : "Authorization Bypass Through User-Controlled Key vulnerability in Apache ZooKeeper. If SASL Quorum Peer authentication is enabled in ZooKeeper (quorum.auth.enableSasl=true), the authorization is done by verifying that the instance part in SASL authentication ID is listed in zoo.cfg server list. The instance part in SASL auth ID is optional and if it's missing, like 'eve@EXAMPLE.COM', the authorization check will be skipped. As a result an arbitrary endpoint could join the cluster and begin propagating counterfeit changes to the leader, essentially giving it complete read-write access to the data tree. Quorum Peer authentication is not enabled by default.\n\nUsers are recommended to upgrade to version 3.9.1, 3.8.3, 3.7.2, which fixes the issue.\n\nAlternately ensure the ensemble election/quorum communication is protected by a firewall as this will mitigate the issue.\n\nSee the documentation for more details on correct cluster administration.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.apache.zookeeper:zookeeper"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "3.7.2"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.apache.zookeeper:zookeeper"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.8.0"
}, {
"fixed" : "3.8.3"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.apache.zookeeper:zookeeper"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.9.0"
}, {
"fixed" : "3.9.1"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-44981"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/apache/zookeeper"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread/wf0yrk84dg1942z1o74kd8nycg6pgm5b"
}, {
"type" : "WEB",
"url" : "https://lists.debian.org/debian-lts-announce/2023/10/msg00029.html"
}, {
"type" : "WEB",
"url" : "https://security.netapp.com/advisory/ntap-20240621-0007"
}, {
"type" : "WEB",
"url" : "https://www.debian.org/security/2023/dsa-5544"
}, {
"type" : "WEB",
"url" : "http://www.openwall.com/lists/oss-security/2023/10/11/4"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-639" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2023-10-11T20:36:50Z",
"nvd_published_at" : "2023-10-11T12:15:11Z"
}
}