Кодек Netty's HTTP/3 (io.netty:netty-codec-http3) версий 4.2.0.Final — 4.2.17.Final содержит неконтролируемую уязвимость потребления ресурсов в декодере команд QPACK coder-stream (QpackEncoderHandler, установленный на однонаправленном потоке QPACK coder, тип 0x02). Обработчик принимает объявленную атакующим длину строки до Integer.MAX_VALUE (2 GiB) для полей Name Length и Value Length инструкции «Insert With Literal Name» (RFC 9204 4.3.3) без ограничения длины по инструкции или по букве и без ограничения размера кумуляции; существующие пределы HTTP/3 (maxHeaderListSize, maxUnknownFramePayloadLength, DEFAULT_MAX_FIELD_SECTION_SIZE) не применяются к этому обработчику. Удаленный, не аутентифицированный узел с установленным соединением HTTP/3 с сервером Netty HTTP/3 по умолчанию может объявить очень большую литеральную длину, а затем пропустить меньше байтов, чем заявлено, в результате чего кумулятор ByteToMessageDecoder MERGE сохраняет и увеличивает буфер для подключения и в конечном итоге вызывает выделение большого массива байтов.
Это приводит к безграничному росту кучи подключений и OutOfMemoryError, что приводит к отказу в обслуживании. Исправлено в 4.2.18.Final.
Показать оригинальное описание (EN)
Netty's HTTP/3 codec (io.netty:netty-codec-http3) versions 4.2.0.Final through 4.2.17.Final contain an uncontrolled resource consumption vulnerability in the QPACK encoder-stream instruction decoder (QpackEncoderHandler, installed on the peer-initiated unidirectional QPACK encoder stream, type 0x02). The handler accepts an attacker-declared string-literal length of up to Integer.MAX_VALUE (~2 GiB) for the Name Length and Value Length fields of the "Insert With Literal Name" instruction (RFC 9204 §4.3.3), with no per-instruction or per-literal length cap and no cumulation-size limit; the existing HTTP/3 limits (maxHeaderListSize, maxUnknownFramePayloadLength, DEFAULT_MAX_FIELD_SECTION_SIZE) are not applied to this handler. A remote, unauthenticated peer with an established HTTP/3 connection to a default Netty HTTP/3 server can declare a very large literal length and then trickle fewer bytes than declared, causing the ByteToMessageDecoder MERGE cumulator to retain and grow the per-connection buffer, and ultimately triggering a large byte-array allocation. This leads to unbounded per-connection heap growth and OutOfMemoryError, resulting in denial of service. Fixed in 4.2.18.Final.
Характеристики атаки
Последствия
Строка CVSS v4.0