Kafka PushTelemetry decompression can OOM a broker (CVE-2026-111073)
Only the compressed size is checked against telemetry.max.bytes, default 1 MB, before an unbounded decompress.
Unbounded decompression DoS in Apache Kafka PushTelemetry
Apache Kafka's broker-side PushTelemetry API (KIP-714) checks only the compressed size of a client metrics payload against telemetry.max.bytes (default 1 MB), then decompresses it with no output-size limit. Any authenticated client can send a small, highly compressible payload that expands to hundreds of megabytes of broker heap; the API is not ACL-gated. Repeated or concurrent requests can exhaust heap, crash the broker, and, if aimed at multiple brokers, hurt cluster availability.
What to do: Upgrade to Apache Kafka 4.2.2, 4.3.1, or 4.4.0. On affected versions, lowering telemetry.max.bytes only partly reduces worst-case decompressed size.
| Product | Affected | Fixed in |
|---|---|---|
| Apache Kafka | — | 4.2.2, 4.3.1, 4.4.0 |
Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.
The broker-side PushTelemetry API (KIP-714) validates only the compressed size of a client's metrics payload against telemetry.max.bytes (default 1 MB) before decompressing it. ClientTelemetryUtils.decompress() then decompresses the payload with no limit on the decompressed output size, growing a heap buffer until the compressed input is exhausted. A small, highly compressible payload (for example gzip-compressed zeros) can therefore expand to hundreds of megabytes of broker heap. Impact: An authenticated client can send a PushTelemetry request with a small compressed payload that decompresses to a very large size, consuming broker heap out of proportion to the request size. Repeated or concurrent requests can exhaust the broker heap and cause an OutOfMemoryError, degrading or crashing the broker; a client that targets multiple brokers can affect cluster availability. PushTelemetry is available to any authenticated client and is not gated by an ACL. Mitigation: Upgrade to Apache Kafka 4.2.2, 4.3.1, or 4.4.0. On affected versions there is no configuration that fully prevents the amplification, because telemetry.max.bytes bounds only the compressed size; lowering telemetry.max.bytes reduces the worst-case decompressed size proportionally and is a partial mitigation. Resolution: - From Apache Kafka 4.2.2, 4.3.1, and 4.4.0: ClientTelemetryUtils.decompress() enforces a maximum decompressed size equal to telemetry.max.bytes (default 1 MB). Decompression reads in bounded chunks and aborts with a TelemetryTooLargeException once the decompressed total exceeds the limit, so an over-large or highly compressible payload is rejected instead of being fully expanded in heap. The decompressed size is therefore bounded by default.
Only the compressed size is checked against telemetry.max.bytes, default 1 MB, before an unbounded decompress.
Today 625 readers · 755 views · 574 reads · all time 158K views