SB20261120220 - Multiple vulnerabilities in Spring for Apache Kafka
Published: November 20, 2026
Breakdown by Severity
- Low
- Medium
- High
- Critical
Description
This security bulletin contains information about 4 vulnerabilities.
1) Unsafe reflection (CVE-ID: CVE-2026-59399)
CWE-ID: CWE-470 - Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection')
CVSSv4: 7.6 [CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N]
The vulnerability allows a remote user to make a Kafka consumer load classes from its classpath and cause listeners to receive data of an unexpected type.
The vulnerability exists due to unrestricted class selection in DelegatingDeserializer when processing Kafka record headers. A remote user can control the deserializer selector in records published to a topic the application consumes to trigger class loading outside the configured delegates or cause records to be deserialized with an unintended delegate.
2) Unsafe reflection (CVE-ID: CVE-2026-59401)
CWE-ID: CWE-470 - Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection')
CVSSv4: 2.3 [CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N]
The vulnerability allows a remote user to bypass the trusted-package allowlist and potentially disrupt Kafka consumer operation.
The vulnerability exists due to insufficient validation of externally controlled class names in JsonKafkaHeaderMapper and DefaultKafkaHeaderMapper when deserializing inbound Kafka record headers. A remote user can publish records to a topic read by the consumer to trigger loading of a class from the consumer's classpath and, with some Jackson versions, trigger static initialization that can consume resources or block processing.
3) Uncontrolled Memory Allocation (CVE-ID: CVE-2026-59406)
CWE-ID: CWE-789 - Uncontrolled Memory Allocation
CVSSv4: 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]
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.
4) Uncontrolled Recursion (CVE-ID: CVE-2026-59432)
CWE-ID: CWE-674 - Uncontrolled Recursion
CVSSv4: 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]
The vulnerability allows a remote user to cause a denial of service by stopping a Kafka listener container.
The vulnerability exists due to uncontrolled recursion in JsonKafkaHeaderMapper and DefaultKafkaHeaderMapper when resolving array types declared in inbound record headers. A remote user can publish a record that causes array type resolution to exhaust the consumer thread's stack and stop the listener container.
The triggering record is not committed, so the listener can stop again when it processes the same record after a restart.
Remediation
Install update from vendor's website.