CVE-2026-111551
Unbounded Allocation in Client and Kafka Streams Deserializers
01Record
| Identifier | CVE-2026-111551 |
|---|---|
| Project | Apache Kafka |
| Component | org.apache.kafka.common.serialization.ListDeserializer |
| CWE | CWE-789 |
| CVSS | 7.5 |
| Disclosed | 2026-10-28 |
| Endor reference | ENDOR-VUL-2026-1505 |
| Writeup | Link |
02Detail
Description: Several Kafka deserialization paths read a size or count field straight from input data and use it to allocate an array, collection, or byte buffer with no check against the bytes actually available. A small crafted input can therefore declare a very large size and force a multi-gigabyte allocation.
A 9-byte record crashes consumers using ListSerde, via ListDeserializer.deserializeNullIndexList. In Kafka Streams, a crafted group assignment of about 12 bytes — which a non-Streams consumer can supply as group leader with Group:Read access — crashes every stream thread during rebalance through AssignmentInfo.decodeActiveTasks and its sibling decoders, and the crash recurs on each restart. Further affected Streams paths read an unchecked size in ProcessorRecordContext (header count), ChangedDeserializer, CombinedKeySchema, and ProcessorMetadata.
Impact: Denial of service through memory exhaustion across consumers, Kafka Streams applications (including internal changelog and repartition topics), and connectors that handle collection-typed values; the Streams rebalance path is reachable with only Group:Read.
Affects Apache Kafka; fixed in 4.2.2, 4.3.2, and 4.4.0. Found by pointing Endor Labs AI SAST at Kafka, which traced each attacker-controlled size value to its unchecked allocation. Also tracked as CWE-20, CWE-400, and CWE-770.
Discovered by Peyton Kennedy (p80n).