CVE-2026-41731
JSON

8.1high

In Spring for Apache Kafka, overly broad trusted-package matching in header mappers exposes JDK classes to deserialization

Severity
8.1high CVSS:3.1 by vmware
Exploit likelihood
0.65% (higher than 46% of CVEs)
Published
Last changed
Assigned by
vmware
Also known as
GHSA-xq69-5h5v-x9x4

Description

JsonKafkaHeaderMapper and the deprecated DefaultKafkaHeaderMapper matched type headers against trusted packages using a prefix check, meaning that trusting any package implicitly trusted all of its subpackages. Combined with Jackson's default bean deserialization, a producer could supply crafted header values that caused the consumer to deserialize arbitrary JDK types. Affected versions: Spring for Apache Kafka 4.0.0 through 4.0.5; 3.3.0 through 3.3.15; 3.2.0 through 3.2.13; 2.9.0 through 2.9.13; 2.8.0 through 2.8.11.

Affected

Product or packageVersionsReported by
Spring Spring for Apache Kafkafrom 4.0.0 before 4.0.5.1, from 3.3.0 before 3.3.15.1, from 3.2.0 before 3.2.14, from 2.9.0 before 2.9.14, from 2.8.0 before 2.8.12CVE List
spring-kafkaNot specifiedCVE List
org.springframework.kafka:spring-kafka (Maven)from 4.0.0 before 4.0.6, from 3.3.0 before 3.3.16, from 3.2.0 up to 3.2.13, from 2.9.0 up to 2.9.13, up to 2.8.11GitHub Advisory Database
vmware spring_for_apache_kafkafrom 2.8.0 before 2.8.12, from 2.9.0 before 2.9.14, from 3.2.0 before 3.2.14, from 3.3.0 before 3.3.15.1, from 4.0.0 before 4.0.5.1NVD
redhat fuse7.0.0NVD
redhat jboss_enterprise_application_platform_expansion_packNot specifiedNVD

All scores

vmware8.1high CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
redhat-SADP8.1high CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
GitHub8.1high CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-502

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

JsonKafkaHeaderMapper and the deprecated DefaultKafkaHeaderMapper matched type headers against trusted packages using a prefix check, meaning that trusting any package implicitly trusted all of its subpackages. Combined with Jackson's default bean deserialization, a producer could supply crafted header values that caused the consumer to deserialize arbitrary JDK types. Affected versions: Spring for Apache Kafka 4.0.0 through 4.0.5; 3.3.0 through 3.3.15; 3.2.0 through 3.2.13; 2.9.0 through 2.9.13; 2.8.0 through 2.8.11.

NVD (es)

JsonKafkaHeaderMapper y el obsoleto DefaultKafkaHeaderMapper comparaban los encabezados de tipo con paquetes de confianza utilizando una comprobación de prefijo, lo que significaba que confiar en cualquier paquete confiaba implícitamente en todos sus subpaquetes. Combinado con la deserialización de beans predeterminada de Jackson, un productor podía suministrar valores de encabezado manipulados que hacían que el consumidor deserializara tipos JDK arbitrarios. Versiones afectadas: Spring para Apache Kafka 4.0.0 a 4.0.5; 3.3.0 a 3.3.15; 3.2.0 a 3.2.13; 2.9.0 a 2.9.13; 2.8.0 a 2.8.11.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-41731 changed 2026-08-05CVE Terms of Use
GitHub Advisory DatabaseGHSA-xq69-5h5v-x9x4 changed 2026-06-12CC-BY-4.0
NVDCVE-2026-41731 changed 2026-08-05Public domain