CVE-2026-41731
published high CVSS 3.1 · 8.1In Spring for Apache Kafka, overly broad trusted-package matching in header mappers exposes JDK classes to deserialization
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Spring | — | Spring for Apache Kafka4.0.0 to < 4.0.5.1 · 3.3.0 to < 3.3.15.1 · 3.2.0 to < 3.2.14 · 2.9.0 to < 2.9.14 · 2.8.0 to < 2.8.12 · Other versions: unaffected | Affected | Not stated | vmware |
| Red Hat | — | spring-kafkaRed Hat Fuse 7 | Affected | Not stated | redhat-SADP |
| Red Hat | — | spring-kafkaRed Hat JBoss Enterprise Application Platform Expansion Pack | Unaffected | Not required | redhat-SADP |
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.
A flaw was found in the spring-kafka component. A remote attacker, by supplying crafted header values, could exploit a vulnerability in JsonKafkaHeaderMapper and DefaultKafkaHeaderMapper that incorrectly matched type headers against trusted packages. This issue, combined with Jackson's default bean deserialization, could allow the consumer to deserialize arbitrary Java Development Kit (JDK) types. This could lead to arbitrary code execution on the affected system.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 8.1 / 10
- Severity
- high
- Provider
- vmware · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: GENERAL
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 8.1 | high | redhat-SADP · adp | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Spring | Spring for Apache Kafka | 4.0.0 to < 4.0.5.1 (affected · custom)3.3.0 to < 3.3.15.1 (affected · custom)3.2.0 to < 3.2.14 (affected · custom)2.9.0 to < 2.9.14 (affected · custom)2.8.0 to < 2.8.12 (affected · custom)Default: unaffected | vmware · cna |
| Red Hat | Red Hat Fuse 7 | Default: affected | redhat-SADP · adp |
| Red Hat | Red Hat JBoss Enterprise Application Platform Expansion Pack | Default: unaffected | redhat-SADP · adp |
Weaknesses
2- CWE-502 CWE-502: Deserialization of Untrusted Data
- CWE-502 Deserialization of Untrusted Data
References
4- https://access.redhat.com/security/cve/CVE-2026-41731
- RHBZ#2487375 https://bugzilla.redhat.com/show_bug.cgi?id=2487375
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-41731.json
- https://spring.io/security/cve-2026-41731
Provider assertions
3vmware · cna
In Spring for Apache Kafka, overly broad trusted-package matching in header mappers exposes JDK classes to deserialization
redhat-SADP · adp
spring-kafka: Spring for Apache Kafka: Arbitrary code execution via insecure deserialization of crafted header values
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 6a08311693ae7e07814c703eb8824991457f9b6c0f480945d7b362379c5f1b44
- Ingested
- 23 Sep 2026, 09:14:00 UTC
- Source record
- Official CVE record