Skip to main content
VulnerabilityPublished Updated

CVE-2026-41731: Spring for Apache Kafka · Deserialization of Untrusted Data

Affects Spring for Apache KafkaSource CVE Database V5

0
Compare

Not known to be exploited · CVSS 8.1 High · fixed in 4.0.5.1 : patch Spring for Apache Kafka soon.

Data as of 29 Oct 2026, 19:04 UTC

CVSS 3.1 base score
8.1High
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.5% chance of exploitation in 30 days – higher than 43% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 4.0.5.1, 3.3.15.1, 3.2.14 +2
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 9 Jun 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 29 Oct 2026.

What to do

Upgrade to a fixed release listed under Affected software.

Affected software

ProductAffectedFixed in
SpringSpring for Apache KafkaAffected
  • >=4.0.0 <4.0.5.1
Fixed in
  • 4.0.5.1
SpringSpring for Apache KafkaAffected
  • >=3.3.0 <3.3.15.1
Fixed in
  • 3.3.15.1
SpringSpring for Apache KafkaAffected
  • >=3.2.0 <3.2.14
Fixed in
  • 3.2.14
SpringSpring for Apache KafkaAffected
  • >=2.9.0 <2.9.14
Fixed in
  • 2.9.14
SpringSpring for Apache KafkaAffected
  • >=2.8.0 <2.8.12
Fixed in
  • 2.8.12
Mavenorg.springframework.kafka/spring-kafkapkg:maven/org.springframework.kafka/spring-kafkaOther threatsAffected
  • 2.8.0 – 4.0.6
10 affected builds
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

If you cannot patch yet, consider restricting or validating Kafka header inputs where possible and applying any vendor-recommended workarounds once available. Avoid trusting untrusted Kafka producers.

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.

References

Community reviews

Loading reviews…