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

- Severity: High 8.1 (CVSS:3.1, scored by vmware) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.65%, higher than 46% of CVEs (2026-11-30)
- Published: 2026-06-09T23:49:26.535Z
- Modified: 2026-08-05T13:22:14.220Z
- Also known as: GHSA-xq69-5h5v-x9x4
- Weaknesses: CWE-502
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: vmware

## 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.

(As written by CVE List.)

## Affected

- 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
- spring-kafka: no versions given
- 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
- 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
- redhat fuse: 7.0.0
- redhat jboss_enterprise_application_platform_expansion_pack: no versions given

## Every score

- vmware: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- redhat-SADP: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`

## 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

- CVE List: [CVE-2026-41731](https://www.cve.org/CVERecord?id=CVE-2026-41731), CVE Terms of Use, modified 2026-08-05
- GitHub Advisory Database: [GHSA-xq69-5h5v-x9x4](https://github.com/advisories/GHSA-xq69-5h5v-x9x4), CC-BY-4.0, modified 2026-06-12
- NVD: [CVE-2026-41731](https://nvd.nist.gov/vuln/detail/CVE-2026-41731), Public domain, modified 2026-08-05

---

Page: https://cve.day/CVE-2026-41731 · Whole record: https://cve.day/CVE-2026-41731.json · Rebuilt by cve.day 2026-11-25T22:59:24.294Z
