Выделение Resources Without Limits или Throttling в обработчике запросов multiRead Apache ZooKeeper позволяет удаленному злоумышленнику сбить сервер (отказ в обслуживании) с помощью одного небольшого запроса. Обработчик multiRead не накладывает никаких ограничений на количество операций чтения в пакете или на совокупный размер ответа, который он строит в памяти. Поскольку результат каждой операции полностью материализуется и сохраняется до сериализации, запрос, который является небольшим на проводе - в пределах предела jute.maxbuffer - но который ссылается на большой znode много раз, может заставить сервер выделить гораздо больше кучу, чем размер запроса подразумевает, истощая кучу JVM и заканчивая сервер с OutOfMemoryError.
Ни jute.maxbuffer, ни largeRequestMaxBytes не препятствуют этому, так как оба связывают только входящий запрос, а не ответ. Эта проблема затрагивает Apache ZooKeeper от 3.7.0 до 3.9.6. Пользователям рекомендуется обновиться до версии 3.9.7, которая устанавливает настраиваемые ограничения на количество операций multiRead и кумулятивный размер ответа.
Показать оригинальное описание (EN)
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.
Характеристики атаки
Последствия
Строка CVSS v4.0