{"id":"CVE-2026-41731","aliases":["CVE-2026-41731","GHSA-xq69-5h5v-x9x4"],"related":[],"kind":"vulnerability","state":"published","title":"In Spring for Apache Kafka, overly broad trusted-package matching in header mappers exposes JDK classes to deserialization","summary":"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.\n\nAffected versions:\nSpring 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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.\n\nAffected versions:\nSpring 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.","source":"cvelist"},{"lang":"es","text":"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.\n\nVersiones afectadas:\nSpring 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.","source":"nvd"}],"published":"2026-06-09T23:49:26.535Z","modified":"2026-08-05T13:22:14.220Z","severity":{"scorer":"vmware","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.1,"rating":"HIGH"},"severities":[{"scorer":"vmware","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.1,"rating":"HIGH"},{"scorer":"redhat-SADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.1,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.1,"rating":"HIGH"}],"cwes":["CWE-502"],"affected":[{"ranges":[{"type":"custom","introduced":"4.0.0","fixed":"4.0.5.1","status":"affected"},{"type":"custom","introduced":"3.3.0","fixed":"3.3.15.1","status":"affected"},{"type":"custom","introduced":"3.2.0","fixed":"3.2.14","status":"affected"},{"type":"custom","introduced":"2.9.0","fixed":"2.9.14","status":"affected"},{"type":"custom","introduced":"2.8.0","fixed":"2.8.12","status":"affected"}],"vendor":"Spring","product":"Spring for Apache Kafka","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Fuse 7","package":"spring-kafka","cpe":"cpe:/a:redhat:jboss_fuse:7","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat JBoss Enterprise Application Platform Expansion Pack","package":"spring-kafka","cpe":"cpe:/a:redhat:jbosseapxp","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"4.0.0","status":"affected","fixed":"4.0.6"}],"ecosystem":"Maven","package":"org.springframework.kafka:spring-kafka","purl":"pkg:maven/org.springframework.kafka/spring-kafka","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"3.3.0","status":"affected","fixed":"3.3.16"}],"ecosystem":"Maven","package":"org.springframework.kafka:spring-kafka","purl":"pkg:maven/org.springframework.kafka/spring-kafka","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"3.2.0","status":"affected","lastAffected":"3.2.13"}],"ecosystem":"Maven","package":"org.springframework.kafka:spring-kafka","purl":"pkg:maven/org.springframework.kafka/spring-kafka","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2.9.0","status":"affected","lastAffected":"2.9.13"}],"ecosystem":"Maven","package":"org.springframework.kafka:spring-kafka","purl":"pkg:maven/org.springframework.kafka/spring-kafka","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","lastAffected":"2.8.11"}],"ecosystem":"Maven","package":"org.springframework.kafka:spring-kafka","purl":"pkg:maven/org.springframework.kafka/spring-kafka","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"2.8.0","fixed":"2.8.12"},{"status":"affected","introduced":"2.9.0","fixed":"2.9.14"},{"status":"affected","introduced":"3.2.0","fixed":"3.2.14"},{"status":"affected","introduced":"3.3.0","fixed":"3.3.15.1"},{"status":"affected","introduced":"4.0.0","fixed":"4.0.5.1"}],"vendor":"vmware","product":"spring_for_apache_kafka","cpe":"cpe:2.3:a:vmware:spring_for_apache_kafka:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"7.0.0"}],"vendor":"redhat","product":"fuse","cpe":"cpe:2.3:a:redhat:fuse:7.0.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[],"vendor":"redhat","product":"jboss_enterprise_application_platform_expansion_pack","cpe":"cpe:2.3:a:redhat:jboss_enterprise_application_platform_expansion_pack:-:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://spring.io/security/cve-2026-41731","tags":["vendor-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-41731","tags":["third-party-advisory","vdb-entry","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2487375","tags":["issue-tracking","third-party-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-41731.json","tags":["third-party-advisory","x-sadp-csaf-vex"],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-41731","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/spring-projects/spring-kafka","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"vmware","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-06-10T17:18:09.377Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-41731","url":"https://www.cve.org/CVERecord?id=CVE-2026-41731","licence":"CVE Terms of Use","modified":"2026-08-05T12:14:45.446Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-xq69-5h5v-x9x4","url":"https://github.com/advisories/GHSA-xq69-5h5v-x9x4","licence":"CC-BY-4.0","modified":"2026-06-12T22:11:25.858Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-41731","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-41731","licence":"Public domain","modified":"2026-08-05T13:22:14.220Z"}],"updatedAt":"2026-11-25T22:59:24.294Z","epss":{"score":0.00646,"percentile":0.45643,"date":"2026-11-30T12:00:22.000Z"}}