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 package | Versions | Reported by |
|---|---|---|
| Spring Spring for Apache Kafka | from 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.12 | CVE List |
| spring-kafka | Not specified | CVE 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.11 | GitHub Advisory Database |
| vmware spring_for_apache_kafka | from 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.1 | NVD |
| redhat fuse | 7.0.0 | NVD |
| redhat jboss_enterprise_application_platform_expansion_pack | Not specified | NVD |
All scores
| vmware | 8.1high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| redhat-SADP | 8.1high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 8.1high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
Classification
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
| https://spring.io/security/cve-2026-41731 | vendor-advisory, web | |
| https://access.redhat.com/security/cve/CVE-2026-41731 | third-party-advisory, vdb-entry | |
| https://bugzilla.redhat.com/show_bug.cgi?id=2487375 | issue-tracking, third-party-advisory | |
| https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-41731.json | third-party-advisory | |
| https://nvd.nist.gov/vuln/detail/CVE-2026-41731 | advisory | |
| https://github.com/spring-projects/spring-kafka | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-41731 changed 2026-08-05 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-xq69-5h5v-x9x4 changed 2026-06-12 | CC-BY-4.0 |
| NVD | CVE-2026-41731 changed 2026-08-05 | Public domain |