CVE-2023-44981

NameCVE-2023-44981
DescriptionAuthorization 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. Users are recommended to upgrade to version 3.9.1, 3.8.3, 3.7.2, which fixes the issue. Alternately ensure the ensemble election/quorum communication is protected by a firewall as this will mitigate the issue. See the documentation for more details on correct cluster administration.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
ReferencesDLA-3624-1, DSA-5544-1
Debian Bugs1054224

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
zookeeper (PTS)jessie, jessie (lts)3.4.9-3+deb8u2fixed
stretch (security), stretch (lts), stretch3.4.9-3+deb9u2fixed
buster3.4.13-2vulnerable
buster (security)3.4.13-2+deb10u1fixed
bullseye (security), bullseye3.4.13-6+deb11u1fixed
bookworm (security), bookworm3.8.0-11+deb12u1fixed
sid, trixie3.9.2-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
zookeepersourcejessie(not affected)
zookeepersourcestretch(not affected)
zookeepersourcebuster3.4.13-2+deb10u1DLA-3624-1
zookeepersourcebullseye3.4.13-6+deb11u1DSA-5544-1
zookeepersourcebookworm3.8.0-11+deb12u1DSA-5544-1
zookeepersource(unstable)3.9.1-11054224

Notes

https://www.openwall.com/lists/oss-security/2023/10/11/4
https://github.com/apache/zookeeper/commit/e2070bed85d8b0c98a5a0045bf92421f473c412e (master)
https://github.com/apache/zookeeper/commit/96b3172ca249a8580e9a315d589d319286cee4ee (release-3.8.3)
Introduced by: https://github.com/apache/zookeeper/commit/8a06bd1ccef382461c7b0a63f2012f4aeac90753 (release-3.4.10-rc0)
[stretch] - zookeeper <not-affected> (Vulnerable code introduced later)
[jessie] - zookeeper <not-affected> (Vulnerable code introduced later)

Search for package or bug name: Reporting problems