CVE-2026-59406

MediumCVSS 6.5/10Last modified Dec 2, 2026

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.

Metrics

CVSS 3.1 6.5/10CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Affected software

Source: the vendor's advisory (CNA). NVD analysis pending.

VendorProductVersions
SpringSpring for Apache Kafka>= 4.1.0, < 4.1.2.1; >= 4.0.0, < 4.0.8.1; >= 3.0.0, < 3.3.18; >= 2.9.0, < 2.9.16; < 2.8.14; >= 4.1.0, < 4.1.3; >= 4.0.0, < 4.0.9

References

Timeline

Published
Dec 2, 2026
Last modified
Dec 2, 2026
NVD status
Awaiting Analysis

Related CVEs from 2026

CVE-2026-594075.5When building a container image on a POSIX platform using Buildpacks, layers in excess of approximately 4KB in size are written to a temporaCVE-2026-594085.0The start goal of Spring Boot's Maven plugin launches the application under test with JMX enabled. JMX is configured to accept remote connecCVE-2026-594095.5When running on a HotSpot JVM, calling the Actuator's heapdump endpoint causes it to write the JVM's heap to a temporary file that can be reCVE-2026-59417.1Parsing logic flaws cause non-signature data to be misidentified as valid signatures when processing malformed form field hierarchies, leadiCVE-2026-594106.8When an InetAddressFilter is used with the JDK HttpClient factory filtering only applies to the initial request. Redirect targets are never CVE-2026-594119.1When a Servlet-based web application that uses Actuator is deployed to Cloud Foundry, Spring Boot's default web security is disabled. ReactiCVE-2026-594125.3When an InetAddressFilter is has a '0 bits' mask it matches both IPv4 and IPv6 addresses. A filter of 0.0.0.0/0 should have only matched IPvCVE-2026-594135.3When accessing an actuator endpoint over HTTP that includes a @Selector method parameter it possible to set the value using a query parameteCVE-2026-594149.1Request matchers created by EndpointRequest and PathRequest may not correctly handle paths with trailing slashes. This may prevent security CVE-2026-594158.1TypesenseVectorStore is vulnerable to a document ID injection in its delete operation that can cause unintended documents to be deleted. CVE-2026-594167.0Spring Integration FTP/FTPS outbound components ( FtpMessageHandler and FtpOutboundGateway ) build a textual FTP SITE chmod command by concaCVE-2026-594179.1Applications using spring-ai-redis-semantic-cache with a SemanticCacheAdvisor shared by more than one end user are vulnerable to cross-user
CVE-2026-59406: Medium severity, CVSS 6.5 | Vulnix