Uncontrolled Memory Allocation in Spring for Apache Kafka - CVE-2026-59406

 

Uncontrolled Memory Allocation in Spring for Apache Kafka - CVE-2026-59406

Published: November 20, 2026


Vulnerability identifier: #VU168636
CSH Severity: Low
CVSS v4: 7.1 [CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-59406
CWE-ID: CWE-789
Exploitation vector: Remote access
Exploit availability: No public exploit available

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.


Affected software

Spring for Apache Kafka

How to mitigate CVE-2026-59406

Install security update from vendor's website.

Spring for Apache Kafka - addressed in versions 2.8.14, 2.9.16, 3.3.18, 4.0.8.1, 4.0.9, 4.1.2.1, 4.1.3

External References

Related Security Bulletins