DEV Community

andreagomez
andreagomez

Posted on

ZooKeeper quota writes need a fail-closed validation path

ZooKeeper quota writes need a fail-closed validation path

Apache ZooKeeper's quota subtree is intended for administrative metadata. CVE-2026-100300 shows that accepting invalid quota data can damage the entire ensemble rather than reject one request.

The Apache advisory affects ZooKeeper 3.8.0 through 3.8.7 and 3.9.0 through 3.9.6. On default deployments, the /zookeeper/quota subtree is world-writable. An unauthenticated client can write malformed quota-node data or paths that crash the transaction-apply thread. The advisory warns that the on-disk data directory can become unbootable.

This is more severe than a transient client disconnect. The failing request reaches a critical server thread, and the damaged state may survive a restart. Recovery can require more than removing the malicious client or blocking one source address.

Upgrade to ZooKeeper 3.8.8 or 3.9.7. Operators should also review ACLs on /zookeeper/quota. A default compatibility setting is not an access-control design. Restrict chroot and administrative clients, require authentication where the deployment supports it, and monitor writes to the quota subtree.

The network control should sit in front of port 2181 as well. If only application servers need ZooKeeper, a service-level allowlist is appropriate. A public-facing ZooKeeper listener is difficult to justify for most application clusters.

Before changing ACLs, inventory clients that create or update quotas. Test the change in a staging ensemble and confirm that legitimate automation has a dedicated identity. Do not grant world-write merely because a client was difficult to configure.

Backups should be tested against the current ZooKeeper version. A snapshot that cannot be loaded after a malformed quota transaction does not provide a dependable recovery path. Keep a known-good copy off the affected nodes and document the procedure for restoring the data directory.

After the update, search transaction and request logs for malformed quota writes and repeated apply-thread failures. If the data directory is already damaged, isolate the node and follow Apache recovery guidance rather than repeatedly restarting it into the same failure.

References

Top comments (1)

Collapse
 
userxnom profile image
Abdullah Naseer •

This is the kind of CVE write-up I wish more people did — the fail-closed framing is exactly right. Most validation bugs fail open and get treated as a nuisance; this one crashes the transaction-apply thread and can leave the on-disk data directory unbootable, so one malformed write can take the whole ensemble down with it.

One practical question: you rightly say to inventory the clients that create or update quotas before changing the ACLs — but quota writes are rare, and the client doing them is often a forgotten cron job or an old admin script nobody remembers. How would you actually find them? Is there a log pattern or audit trail you'd grep for first, or is it a case of watching the quota subtree for a while before locking it down?

And a small concrete addition for readers: the fastest first check is just zkCli — getAcl /zookeeper/quota shows in seconds whether the subtree is still world-writable on your deployment. Thanks for writing this up with the affected versions (3.8.0–3.8.7, 3.9.0–3.9.6) and the upgrade targets (3.8.8 / 3.9.7) right up front.