CVE-2026-41731
In Spring for Apache Kafka, overly broad trusted-package matching in header mappers exposes JDK classes to deserialization
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.
INFO
Published Date :
June 10, 2026, 12:16 a.m.
Last Modified :
July 23, 2026, 9:10 a.m.
Remotely Exploit :
Yes !
Source :
[email protected]
Affected Products
The following products are affected by CVE-2026-41731
vulnerability.
Even if cvefeed.io is aware of the exact versions of the
products
that
are
affected, the information is not represented in the table below.
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS | 134c704f-9b21-4f2e-91b3-4a467353bcc0 | |||||
| CVSS 3.1 | HIGH | dcf2e128-44bd-42ed-91e8-88f912c1401d | ||||
| CVSS 3.1 | HIGH | [email protected] | ||||
| CVSS 3.1 | HIGH | 0b0ca135-0b70-47e7-9f44-1890c2a1c46c |
Solution
- Update Spring for Apache Kafka to a non-vulnerable version.
- Review and sanitize deserialized header values.
- Configure Jackson deserialization securely.
Public PoC/Exploit Available at Github
CVE-2026-41731 has a 1 public
PoC/Exploit available at Github.
Go to the Public Exploits tab to see the list.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2026-41731.
| URL | Resource |
|---|---|
| https://spring.io/security/cve-2026-41731 | Vendor Advisory |
| https://access.redhat.com/security/cve/CVE-2026-41731 | Third Party Advisory |
| 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 |
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2026-41731 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2026-41731
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
None
PLpgSQL TypeScript JavaScript HTML CSS Java Dockerfile Go Makefile Shell
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2026-41731 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2026-41731 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Translated by [email protected]
Jul. 23, 2026
Action Type Old Value New Value Added Translation Title: Spring for Apache Kafka de Spring, Description: 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. -
Modified Analysis by [email protected]
Jul. 17, 2026
Action Type Old Value New Value Added CPE Configuration OR *cpe:2.3:a:redhat:jboss_enterprise_application_platform_expansion_pack:-:*:*:*:*:*:*:* *cpe:2.3:a:redhat:fuse:7.0.0:*:*:*:*:*:*:* Changed CPE Configuration OR *cpe:2.3:a:vmware:spring_for_apache_kafka:*:*:*:*:*:*:*:* versions from (including) 2.8.0 up to (including) 2.8.11 *cpe:2.3:a:vmware:spring_for_apache_kafka:*:*:*:*:*:*:*:* versions from (including) 2.9.0 up to (including) 2.9.13 *cpe:2.3:a:vmware:spring_for_apache_kafka:*:*:*:*:*:*:*:* versions from (including) 3.2.0 up to (including) 3.2.13 *cpe:2.3:a:vmware:spring_for_apache_kafka:*:*:*:*:*:*:*:* versions from (including) 3.3.0 up to (including) 3.3.15 *cpe:2.3:a:vmware:spring_for_apache_kafka:*:*:*:*:*:*:*:* versions from (including) 4.0.0 up to (including) 4.0.5 OR *cpe:2.3:a:vmware:spring_for_apache_kafka:*:*:*:*:*:*:*:* versions from (including) 2.9.0 up to (excluding) 2.9.14 *cpe:2.3:a:vmware:spring_for_apache_kafka:*:*:*:*:*:*:*:* versions from (including) 3.2.0 up to (excluding) 3.2.14 *cpe:2.3:a:vmware:spring_for_apache_kafka:*:*:*:*:*:*:*:* versions from (including) 3.3.0 up to (excluding) 3.3.15.1 *cpe:2.3:a:vmware:spring_for_apache_kafka:*:*:*:*:*:*:*:* versions from (including) 4.0.0 up to (excluding) 4.0.5.1 *cpe:2.3:a:vmware:spring_for_apache_kafka:*:*:*:*:*:*:*:* versions from (including) 2.8.0 up to (excluding) 2.8.12 Added Reference Type redhat-SADP: https://access.redhat.com/security/cve/CVE-2026-41731 Types: Third Party Advisory Added Reference Type redhat-SADP: https://bugzilla.redhat.com/show_bug.cgi?id=2487375 Types: Issue Tracking, Third Party Advisory Added Reference Type redhat-SADP: https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-41731.json Types: Third Party Advisory -
CVE Modified by 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
Jul. 15, 2026
Action Type Old Value New Value Changed Affected [{'cpes': ['cpe:/a:redhat:jboss_fuse:7'], 'vendor': 'Red Hat', 'product': 'Red Hat Fuse 7', 'defaultStatus': 'affected'}, {'cpes': ['cpe:/a:redhat:jbosseapxp'], 'vendor': 'Red Hat', 'product': 'Red Hat JBoss Enterprise Application Platform Expansion Pack', 'defaultStatus': 'affected'}] [{'cpes': ['cpe:/a:redhat:jboss_fuse:7'], 'vendor': 'Red Hat', 'product': 'Red Hat Fuse 7', 'packageName': 'spring-kafka', 'collectionURL': 'https://access.redhat.com/downloads/content/package-browser/', 'defaultStatus': 'affected'}, {'cpes': ['cpe:/a:redhat:jbosseapxp'], 'vendor': 'Red Hat', 'product': 'Red Hat JBoss Enterprise Application Platform Expansion Pack', 'packageName': 'spring-kafka', 'collectionURL': 'https://access.redhat.com/downloads/content/package-browser/', 'defaultStatus': 'affected'}] -
CVE Modified by 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
Jun. 30, 2026
Action Type Old Value New Value Added Affected [{'cpes': ['cpe:/a:redhat:jboss_fuse:7'], 'vendor': 'Red Hat', 'product': 'Red Hat Fuse 7', 'defaultStatus': 'affected'}, {'cpes': ['cpe:/a:redhat:jbosseapxp'], 'vendor': 'Red Hat', 'product': 'Red Hat JBoss Enterprise Application Platform Expansion Pack', 'defaultStatus': 'affected'}] Added CVSS V3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H Added CWE CWE-502 Added Reference https://access.redhat.com/security/cve/CVE-2026-41731 Added Reference https://bugzilla.redhat.com/show_bug.cgi?id=2487375 Added Reference https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-41731.json -
CVE Modified by [email protected]
Jun. 27, 2026
Action Type Old Value New Value Changed Affected [{'vendor': 'Spring', 'product': 'Spring for Apache Kafka', 'versions': [{'status': 'affected', 'version': '4.0.0', 'lessThan': '4.0.6', 'versionType': 'custom'}, {'status': 'affected', 'version': '3.3.0', 'lessThan': '3.3.16', 'versionType': 'custom'}, {'status': 'affected', 'version': '3.2.0', 'lessThan': '3.2.14', 'versionType': 'custom'}, {'status': 'affected', 'version': '2.9.0', 'lessThan': '2.9.14', 'versionType': 'custom'}, {'status': 'affected', 'version': '2.8.0', 'lessThan': '2.8.12', 'versionType': 'custom'}], 'defaultStatus': 'unaffected'}] [{'vendor': 'Spring', 'product': 'Spring for Apache Kafka', 'versions': [{'status': 'affected', 'version': '4.0.0', 'lessThan': '4.0.5.1', 'versionType': 'custom'}, {'status': 'affected', 'version': '3.3.0', 'lessThan': '3.3.15.1', 'versionType': 'custom'}, {'status': 'affected', 'version': '3.2.0', 'lessThan': '3.2.14', 'versionType': 'custom'}, {'status': 'affected', 'version': '2.9.0', 'lessThan': '2.9.14', 'versionType': 'custom'}, {'status': 'affected', 'version': '2.8.0', 'lessThan': '2.8.12', 'versionType': 'custom'}], 'defaultStatus': 'unaffected'}] -
Initial Analysis by [email protected]
Jun. 22, 2026
Action Type Old Value New Value Added CPE Configuration OR *cpe:2.3:a:vmware:spring_for_apache_kafka:*:*:*:*:*:*:*:* versions from (including) 2.8.0 up to (including) 2.8.11 *cpe:2.3:a:vmware:spring_for_apache_kafka:*:*:*:*:*:*:*:* versions from (including) 2.9.0 up to (including) 2.9.13 *cpe:2.3:a:vmware:spring_for_apache_kafka:*:*:*:*:*:*:*:* versions from (including) 3.2.0 up to (including) 3.2.13 *cpe:2.3:a:vmware:spring_for_apache_kafka:*:*:*:*:*:*:*:* versions from (including) 3.3.0 up to (including) 3.3.15 *cpe:2.3:a:vmware:spring_for_apache_kafka:*:*:*:*:*:*:*:* versions from (including) 4.0.0 up to (including) 4.0.5 Added Reference Type VMware: https://spring.io/security/cve-2026-41731 Types: Vendor Advisory -
CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0
Jun. 17, 2026
Action Type Old Value New Value Added SSVC {'id': 'CVE-2026-41731', 'role': 'CISA Coordinator', 'options': [{'exploitation': 'none'}, {'automatable': 'no'}, {'technicalImpact': 'total'}], 'version': '2.0.3', 'timestamp': '2026-06-10T17:18:09.377824Z'} -
CVE Modified by [email protected]
Jun. 17, 2026
Action Type Old Value New Value Added Affected [{'vendor': 'Spring', 'product': 'Spring for Apache Kafka', 'versions': [{'status': 'affected', 'version': '4.0.0', 'lessThan': '4.0.6', 'versionType': 'custom'}, {'status': 'affected', 'version': '3.3.0', 'lessThan': '3.3.16', 'versionType': 'custom'}, {'status': 'affected', 'version': '3.2.0', 'lessThan': '3.2.14', 'versionType': 'custom'}, {'status': 'affected', 'version': '2.9.0', 'lessThan': '2.9.14', 'versionType': 'custom'}, {'status': 'affected', 'version': '2.8.0', 'lessThan': '2.8.12', 'versionType': 'custom'}], 'defaultStatus': 'unaffected'}] -
New CVE Received by [email protected]
Jun. 10, 2026
Action Type Old Value New Value Added 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. Added CVSS V3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H Added CWE CWE-502 Added Reference https://spring.io/security/cve-2026-41731