Description
Allocation of Resources Without Limits or Throttling in the multiRead request handler of Apache ZooKeeper allows a remote attacker to crash the server (denial of service) with a single small request.
The multiRead handler places no limit on the number of bundled read operations or on the cumulative size of the response it builds in memory. Because each operation's result is fully materialized and retained before serialization, a request that is small on the wire — within the jute.maxbuffer limit — but that references a large znode many times can force the server to allocate far more heap than the request size implies, exhausting the JVM heap and terminating the server with an OutOfMemoryError. Neither jute.maxbuffer nor largeRequestMaxBytes prevents this, as both bound only the inbound request, not the response.
This issue affects Apache ZooKeeper from 3.7.0 through 3.9.6. Users are recommended to upgrade to version 3.9.7, which enforces configurable limits on the multiRead operation count and cumulative response size.
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 | — |