Katalog CVE

CVE-2026-59406

ŚrednieCVSS 6.5
Opublikowano: Zaktualizowano: Przetłumaczono: NVD NIST

Prawdopodobieństwo exploitacji (EPSS)

Niskie ryzyko
0.54%

Percentyl 47 - wyżej niż 47% wszystkich znanych CVE

Streszczenie

Podczas mapowania nagłówków rekordów przychodzących JsonKafkaHeaderMapper i DefaultKafkaHeaderMapper deserializują każdą wartość nagłówka do typu wskazanego w kontrolowanym przez producenta nagłówku spring_json_header_types, jeśli pakiet tego typu jest zaufany. Ponieważ org.springframework.util jest domyślnie zaufany, producent może zadeklarować org.springframework.util.ResizableByteArrayOutputStream i podać liczbę jako wartość nagłówka, powodując alokację bufora o tym rozmiarze i wyczerpanie pamięci.

Ocena ryzyka

Złośliwy producent może wielokrotnie zatrzymywać konsumpcję i wywierać presję na pamięć całej aplikacji, prowadząc do odmowy usługi. Dotyczy to aplikacji konsumujących rekordy z tematów, do których atakujący może publikować.

Rekomendacja

Zaktualizuj Spring Kafka do wersji zawierającej poprawkę. Do czasu aktualizacji ogranicz zaufane pakiety w mapperach nagłówków i kontroluj dostęp producentów do tematów.

Inne podatności w Spring Kafka

Zobacz wszystkie
Oryginalny opis (angielski, źródło NVD)

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.

Dane podatności pochodzą z NVD (NIST) · CISA KEV · EPSS