Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.5%top 59%

CVE-2026-41731: CWE-502: Deserialization of Untrusted Data in Spring Spring for Apache Kafka

0
High
VulnerabilityCVE-2026-41731cvecve-2026-41731cwe-502
Published: 06/09/2026 (06/09/2026, 23:49:26 UTC)
Source: CVE Database V5
Vendor/Project: Spring
Product: Spring for Apache Kafka

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.

CVSS v3.1

Score 8.1high

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected software

org.springframework.kafka/spring-kafka
pkg:maven/org.springframework.kafka/spring-kafka
Affected versions
=2.8.0=2.8.12=2.9.0=2.9.14=3.2.0=3.2.14=3.3.0=3.3.16=4.0.0=4.0.6

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/15/2026, 09:15:06 UTC

Technical Analysis

The vulnerability arises from the way Spring for Apache Kafka's JsonKafkaHeaderMapper and DefaultKafkaHeaderMapper validate trusted package headers using a prefix check, which implicitly trusts all subpackages. Combined with Jackson's default bean deserialization, this flaw enables a malicious producer to supply crafted Kafka header values that cause the consumer to deserialize arbitrary Java objects, leading to potential remote code execution or other impacts associated with unsafe deserialization. Affected versions include 2.8.0 through 2.8.11, 2.9.0 through 2.9.13, 3.2.0 through 3.2.13, 3.3.0 through 3.3.15, and 4.0.0 through 4.0.5. The CVSS 3.1 base score is 8.1, indicating high severity. The Red Hat advisory linked does not explicitly state patch availability or remediation steps.

Potential Impact

Successful exploitation allows an attacker controlling Kafka message headers to cause the consumer to deserialize arbitrary Java objects, potentially leading to remote code execution, data compromise, or denial of service. The vulnerability affects confidentiality, integrity, and availability as indicated by the CVSS vector (C:H/I:H/A:H). No known exploits in the wild have been reported at this time.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, users should consider disabling or restricting the use of JsonKafkaHeaderMapper and DefaultKafkaHeaderMapper or applying custom deserialization validation to avoid processing untrusted data. Monitor the Red Hat advisory and Spring project updates for official patches or mitigations.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
vmware
Date Reserved
2026-04-22T06:21:39.015Z
Cvss Version
3.1
State
PUBLISHED
Remediation Level
null
Vendor Advisory Urls
[{"url":"https://access.redhat.com/security/cve/CVE-2026-41731","vendor":"Red Hat"}]

Threat ID: 6a28a8098dd33fbd8595f113

Added to database: 06/09/2026, 23:55:53 UTC

Last enriched: 07/15/2026, 09:15:06 UTC

Last updated: 07/31/2026, 19:22:58 UTC

Views: 177

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses