Uncontrolled Memory Allocation in Spring for Apache Kafka - CVE-2026-59406
Published: November 20, 2026
Vulnerability details
The vulnerability allows a remote user to cause a denial of service by exhausting the Kafka consumer application's heap.
The vulnerability exists due to unbounded memory allocation in JsonKafkaHeaderMapper and DefaultKafkaHeaderMapper when deserializing inbound Kafka record headers into producer-selected types from trusted packages. A remote user can publish a record with crafted headers to a topic they have permission to write to in order to exhaust the consumer's heap and stop the listener container.