CVE-2026-59406
Received Received - Intake

Heap Exhaustion in Spring Kafka Header Mapping

Vulnerability report for CVE-2026-59406, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-12-02

Last updated on: 2026-12-02

Assigner: VMware

Description

When mapping inbound record headers, JsonKafkaHeaderMapper and DefaultKafkaHeaderMapper (used by the default message converters) deserialize each header value into the type named for it in the producer-controlled spring_json_header_types header, provided that type's package is trusted. Because org.springframework.util is trusted by default, a producer can declare org.springframework.util.ResizableByteArrayOutputStream and supply a number as the header value, causing the consumer to allocate a buffer of that size while mapping the header. With Jackson 3, a single header with a large value raises an OutOfMemoryError that is not caught by the mapper, so the listener container stops before the record is committed, and stops again on the same record after a restart. With Jackson 2, a single record carrying many such headers can exhaust the heap with the same result. In both cases, a small record is enough for a malicious producer to repeatedly stop consumption and put memory pressure on the whole application. An application is affected if it consumes records from a topic that an attacker can produce to and maps headers with JsonKafkaHeaderMapper or DefaultKafkaHeaderMapper , which is the default for @KafkaListener methods and other listeners using the messaging message converters.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-12-02
Last Modified
2026-12-02
Generated
2026-12-02
AI Q&A
2026-12-02
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 7 associated CPEs
Vendor Product Version / Range
vmware jsonkafkaheadermapper *
vmware defaultkafkaheadermapper *
vmware spring_for_apache_kafka to 2.8.14 (exc)
vmware spring_for_apache_kafka From 2.9.0 (inc) to 2.9.16 (exc)
vmware spring_for_apache_kafka From 3.0.0 (inc) to 3.3.18 (exc)
vmware spring_for_apache_kafka From 4.0.0 (inc) to 4.0.9 (exc)
vmware spring_for_apache_kafka From 4.1.0 (inc) to 4.1.3 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-UNKNOWN

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This is a denial-of-service vulnerability in Spring for Apache Kafka where malicious producers can cause memory exhaustion in consumers. It occurs when JsonKafkaHeaderMapper or DefaultKafkaHeaderMapper deserializes header values into types specified in the producer-controlled spring_json_header_types header. A producer declares a large buffer size (e.g., org.springframework.util.ResizableByteArrayOutputStream), forcing the consumer to allocate excessive memory. With Jackson 3, a single large header causes an uncaught OutOfMemoryError, stopping the listener container. With Jackson 2, multiple headers exhaust heap memory.

Detection Guidance

Check Spring for Apache Kafka versions using commands like 'mvn dependency:tree' or 'gradle dependencies' to identify if affected versions (2.8.13 and earlier, 2.9.0–2.9.15, 3.0.0–3.3.17, 4.0.0–4.0.8, 4.1.0–4.1.2) are in use. Monitor application logs for OutOfMemoryError exceptions during Kafka header processing.

Impact Analysis

If you use Spring for Apache Kafka and consume records from attacker-controlled topics, this vulnerability can cause your application to crash repeatedly due to memory exhaustion. It stops the listener container before processing records and resumes the same issue after restart, disrupting normal operations and potentially causing downtime.

Compliance Impact

This vulnerability could impact compliance with GDPR and HIPAA by enabling denial-of-service attacks that disrupt system availability. Excessive memory allocation or crashes may lead to service unavailability, violating availability requirements in both regulations. GDPR emphasizes data availability and security, while HIPAA requires ensuring access to ePHI. The attack could also interfere with logging and monitoring systems, further complicating compliance efforts.

Mitigation Strategies

Upgrade Spring for Apache Kafka to fixed versions: 2.8.14, 2.9.16, 3.3.18 (Enterprise), 4.0.9 (OSS), 4.0.8.1 (Enterprise), or 4.1.3 (OSS)/4.1.2.1 (Enterprise). Ensure no attacker-controlled topics are consumed by applications using default header mapping in @KafkaListener methods.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-59406. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...