{"id":"CVE-2026-41731","published":"2026-06-09T23:49:26Z","modified":"2026-08-05T12:14:45Z","title":"In Spring for Apache Kafka, overly broad trusted-package matching in header mappers exposes JDK classes to…","vendor":"Spring","product":"Spring for Apache Kafka","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.1,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0051,"percentile":0.4439,"provenance":"source"},"cwes":[{"id":"CWE-502","name":"Deserialization of Untrusted Data"}],"references":[{"url":"https://spring.io/security/cve-2026-41731","tags":[]},{"url":"https://access.redhat.com/security/cve/CVE-2026-41731","tags":["vdb-entry","x_refsource_REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2487375","tags":["issue-tracking","x_refsource_REDHAT"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-41731.json","tags":["x_sadp-csaf-vex"]}],"priority":{"score":14.5,"factors":[{"name":"EPSS percentile","points":8.88},{"name":"CVSS severity","points":5.67}]},"vendorSlug":"spring","affectedVersions":[{"vendor":"Spring","product":"Spring for Apache Kafka","versions":[">= 4.0.0, < 4.0.5.1",">= 3.3.0, < 3.3.15.1",">= 3.2.0, < 3.2.14",">= 2.9.0, < 2.9.14",">= 2.8.0, < 2.8.12"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-06-10T17:18:09.377824Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Maven","package":"org.springframework.kafka:spring-kafka","vulnerableRanges":[">=4.0.0, <4.0.6",">=3.3.0, <3.3.16",">=3.2.0, <=3.2.13",">=2.9.0, <=2.9.13","<=2.8.11"],"patched":["4.0.6","3.3.16"],"from":["GHSA-xq69-5h5v-x9x4"],"provenance":"source"}],"summary":{"text":"In Spring for Apache Kafka, the JsonKafkaHeaderMapper and deprecated DefaultKafkaHeaderMapper match type headers against trusted packages using a prefix check, so trusting a package also implicitly trusts all of its subpackages. Combined with Jackson's default bean deserialization, a remote producer could supply crafted header values to make the consumer deserialize arbitrary JDK types, with the attack complexity noted as high and no privileges or user interaction required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:33:32Z"},"euvd":{"id":"EUVD-2026-35908","exploited":false,"provenance":"source"}}