CVE-2019-0201: Zookeeper Access Control Bypass Vulnerability

MODERATE
Advisory Identifier: GHSA-2hw2-62cp-p9p7
CVSS 5.9
CWE-862
Published
Advisory Summary

CVE-2019-0201 is a MODERATE (CVSS 5.9) access control bypass vulnerability (CWE-862: Missing Authorization) affecting Zookeeper libraries in the Maven ecosystem. The issue involves access control bypass in apache zookeeper. Remediation is available by upgrading affected packages to version 3.4.14, 3.5.5.

CVE-2019-0201 at a Glance

CVE Identifier CVE-2019-0201
GHSA Identifier GHSA-2hw2-62cp-p9p7
Severity MODERATE
CVSS v3.1 Base Score 5.9
CWE Classification CWE-862: Missing Authorization
Affected Product Zookeeper
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 5.9

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2019-0201

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.

org.apache.zookeeper:zookeeper fixed: 3.4.14
<dependency>
    <groupId>org.apache.zookeeper</groupId>
    <artifactId>zookeeper</artifactId>
    <version>3.4.14</version>
</dependency>
org.apache.zookeeper:zookeeper fixed: 3.5.5
<dependency>
    <groupId>org.apache.zookeeper</groupId>
    <artifactId>zookeeper</artifactId>
    <version>3.5.5</version>
</dependency>
Verify Direct and Transitive Dependencies

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-2019-0201, 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.4.14), 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-862: Missing Authorization, where the product does not perform an authorization check when an actor attempts to access a resource or perform an action. 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

An issue is present in Apache ZooKeeper 1.0.0 to 3.4.13 and 3.5.0-alpha to 3.5.4-beta. ZooKeeper?s getACL() command doesn?t check any permission when retrieves the ACLs of the requested node and returns all information contained in the ACL Id field as plaintext string. DigestAuthenticationProvider overloads the Id field with the hash value that is used for user authentication. As a consequence, if Digest Authentication is in use, the unsalted hash value will be disclosed by getACL() request for unauthenticated or unprivileged users.

CVE-2019-0201 Affected Zookeeper Versions

2 component(s)
Fixed Versions:
3.4.143.5.5
Product / Package Ecosystem Affected Versions Fixed Version
org.apache.zookeeper:zookeeper
Maven
≥ 1.0.0
< 3.4.14
3.4.14
org.apache.zookeeper:zookeeper
Maven
≥ 3.5.0
< 3.5.5
3.5.5

References

NVD — CVE-2019-0201 NVD
https://nvd.nist.gov/vuln/detail/CVE-2019-0201
Zookeeper Security Information SECURITY
https://zookeeper.apache.org/security.html#CVE-2019-0201
Zookeeper Security Information SECURITY
https://www.oracle.com/security-alerts/cpuoct2020.html
Zookeeper Security Information SECURITY
https://www.oracle.com/security-alerts/cpujul2020.html
Zookeeper Security Information SECURITY
https://www.oracle.com//security-alerts/cpujul2021.html
Zookeeper Security Information SECURITY
https://www.debian.org/security/2019/dsa-4461
Zookeeper Security Information SECURITY
https://security.netapp.com/advisory/ntap-20190619-0001
seclists.org/bugtraq/2019/jun/13 WEB
https://seclists.org/bugtraq/2019/Jun/13
lists.debian.org/debian-lts-announce... WEB
https://lists.debian.org/debian-lts-announce/2019/05/msg00033.html
lists.apache.org/thread.html/r40f321... WEB
https://lists.apache.org/thread.html/r40f32125c1d97ad82404cc918171d9e0fcf78e534256674e9da1eb4b@%3Ccommon-issues.hadoop.apache.org%3E
lists.apache.org/thread.html/f9bc3e5... WEB
https://lists.apache.org/thread.html/f9bc3e55f4e28d1dcd1a69aae6d53e609a758e34d2869b4d798e13cc@%3Cissues.drill.apache.org%3E
lists.apache.org/thread.html/f611288... WEB
https://lists.apache.org/thread.html/f6112882e30a31992a79e0a8c31ac179e9d0de7c708de3a9258d4391@%3Cissues.bookkeeper.apache.org%3E
lists.apache.org/thread.html/b0656d3... WEB
https://lists.apache.org/thread.html/b0656d359c7d40ec9f39c8cc61bca66802ef9a2a12ee199f5b0c1442@%3Cdev.drill.apache.org%3E
lists.apache.org/thread.html/5d9a1cf... WEB
https://lists.apache.org/thread.html/5d9a1cf41a5880557bf680b7321b4ab9a4d206c601ffb15fef6f196a@%3Ccommits.accumulo.apache.org%3E
lists.apache.org/thread.html/519eb0f... WEB
https://lists.apache.org/thread.html/519eb0fd45642dcecd9ff74cb3e71c20a4753f7d82e2f07864b5108f@%3Cdev.drill.apache.org%3E
lists.apache.org/thread.html/053d9ce... WEB
https://lists.apache.org/thread.html/053d9ce4d579b02203db18545fee5e33f35f2932885459b74d1e4272@%3Cissues.activemq.apache.org%3E
issues.apache.org/jira/browse/zookeep... WEB
https://issues.apache.org/jira/browse/ZOOKEEPER-1392
access.redhat.com/errata/rhsa-2019:43... WEB
https://access.redhat.com/errata/RHSA-2019:4352
access.redhat.com/errata/rhsa-2019:38... WEB
https://access.redhat.com/errata/RHSA-2019:3892
access.redhat.com/errata/rhsa-2019:31... WEB
https://access.redhat.com/errata/RHSA-2019:3140
Zookeeper Security Information SECURITY
http://www.securityfocus.com/bid/108427

Frequently Asked Questions

What is CVE-2019-0201?
CVE-2019-0201 is a security vulnerability in Zookeeper involving Access control bypass in Apache ZooKeeper under CWE-862: Missing Authorization.
Which Zookeeper versions are affected?
Affected versions include releases prior to 3.4.14, 3.5.5 across affected packages: org.apache.zookeeper:zookeeper.
What version fixes CVE-2019-0201?
Upgrading to 3.4.14, 3.5.5 (or the latest patched release for your respective branch) resolves the vulnerability.
Is zookeeper affected?
Yes, org.apache.zookeeper:zookeeper is affected in releases prior to 3.4.14, 3.5.5. Upgrade your dependency to 3.4.14, 3.5.5 or later.
What is the CVSS score of CVE-2019-0201?
CVE-2019-0201 has a CVSS v3.1 base score of 5.9 (MODERATE) with vector string CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N.
What CWE is associated with CVE-2019-0201?
CVE-2019-0201 is classified under CWE-862: Missing Authorization (The product does not perform an authorization check when an actor attempts to access a resource or perform an action.).
How can I check Maven dependencies for CVE-2019-0201?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.apache.zookeeper'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-2hw2-62cp-p9p7",
  "modified" : "2021-07-27T20:54:44Z",
  "published" : "2019-05-29T18:54:11Z",
  "aliases" : [ "CVE-2019-0201" ],
  "summary" : "Access control bypass in Apache ZooKeeper",
  "details" : "An issue is present in Apache ZooKeeper 1.0.0 to 3.4.13 and 3.5.0-alpha to 3.5.4-beta. ZooKeeper?s getACL() command doesn?t check any permission when retrieves the ACLs of the requested node and returns all information contained in the ACL Id field as plaintext string. DigestAuthenticationProvider overloads the Id field with the hash value that is used for user authentication. As a consequence, if Digest Authentication is in use, the unsalted hash value will be disclosed by getACL() request for unauthenticated or unprivileged users.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.zookeeper:zookeeper"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.0.0"
      }, {
        "fixed" : "3.4.14"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.zookeeper:zookeeper"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.5.0"
      }, {
        "fixed" : "3.5.5"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-0201"
  }, {
    "type" : "WEB",
    "url" : "https://zookeeper.apache.org/security.html#CVE-2019-0201"
  }, {
    "type" : "WEB",
    "url" : "https://www.oracle.com/security-alerts/cpuoct2020.html"
  }, {
    "type" : "WEB",
    "url" : "https://www.oracle.com/security-alerts/cpujul2020.html"
  }, {
    "type" : "WEB",
    "url" : "https://www.oracle.com//security-alerts/cpujul2021.html"
  }, {
    "type" : "WEB",
    "url" : "https://www.debian.org/security/2019/dsa-4461"
  }, {
    "type" : "WEB",
    "url" : "https://security.netapp.com/advisory/ntap-20190619-0001"
  }, {
    "type" : "WEB",
    "url" : "https://seclists.org/bugtraq/2019/Jun/13"
  }, {
    "type" : "WEB",
    "url" : "https://lists.debian.org/debian-lts-announce/2019/05/msg00033.html"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/r40f32125c1d97ad82404cc918171d9e0fcf78e534256674e9da1eb4b@%3Ccommon-issues.hadoop.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/f9bc3e55f4e28d1dcd1a69aae6d53e609a758e34d2869b4d798e13cc@%3Cissues.drill.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/f6112882e30a31992a79e0a8c31ac179e9d0de7c708de3a9258d4391@%3Cissues.bookkeeper.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/b0656d359c7d40ec9f39c8cc61bca66802ef9a2a12ee199f5b0c1442@%3Cdev.drill.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/5d9a1cf41a5880557bf680b7321b4ab9a4d206c601ffb15fef6f196a@%3Ccommits.accumulo.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/519eb0fd45642dcecd9ff74cb3e71c20a4753f7d82e2f07864b5108f@%3Cdev.drill.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/053d9ce4d579b02203db18545fee5e33f35f2932885459b74d1e4272@%3Cissues.activemq.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://issues.apache.org/jira/browse/ZOOKEEPER-1392"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2019:4352"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2019:3892"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2019:3140"
  }, {
    "type" : "WEB",
    "url" : "http://www.securityfocus.com/bid/108427"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-862" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2019-05-29T18:53:55Z",
    "nvd_published_at" : "2019-05-23T14:29:00Z"
  }
}