Description
Improper Authorization vulnerability in Apache ZooKeeper.
When SASL authentication is enabled on the client port, the server's SASL callback handler grants every authorization identity (authzid) that a client requests, without checking it against the principal the client authenticated as. The server then tries to replace the requested identity with a canonical form of the authenticated principal, derived from the zookeeper.security.auth_to_local rules. If no rule applies to the principal, canonicalization fails and the error is only logged. The client-requested authzid then becomes the session's SASL identity for all ACL checks.
An authenticated client whose principal is not covered by the auth_to_local rules can therefore claim any SASL identity. With the default rules, this includes any Kerberos principal from a realm other than the server's default realm, such as a principal from a cross-realm trusted realm. The client then gets the permissions granted to that identity in sasl ACLs. If the requested identity matches a configured zookeeper.superUser, it gets superuser access to the whole data tree.
Users are recommended to upgrade to version 3.8.8 or 3.9.7, which fixes the issue.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Apache Software Foundation | Apache ZooKeeper | 3.9.0 – ≤ 3.9.6, 3.8.0 – ≤ 3.8.7 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | zookeeper | 3.9.7-1 | — |
| Debian 13 | zookeeper | No fix yet | — |
| Debian 12 | zookeeper | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | zookeeper | No fix yet | — |
| Ubuntu 26.04 LTS | zookeeper | No fix yet | — |
| Ubuntu 24.04 LTS | zookeeper | No fix yet | — |
| Ubuntu 22.04 LTS | zookeeper | No fix yet | — |
| Ubuntu 20.04 LTS | zookeeper | No fix yet | — |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 18.04 LTS | zookeeper | No fix yet | — |
| Ubuntu Pro 16.04 LTS | zookeeper | No fix yet | — |
| Ubuntu Pro 14.04 LTS | zookeeper | No fix yet | — |