CVE-2026-59401
Received Received - Intake

Remote Code Execution via Class Deserialization in Spring Kafka

Vulnerability report for CVE-2026-59401, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-12-02

Last updated on: 2026-12-02

Assigner: VMware

Description

JsonKafkaHeaderMapper and the deprecated DefaultKafkaHeaderMapper check the header type requested in the spring_json_header_types header against the mapper's trusted packages before deserializing a header value. Because java.lang is trusted by default, the type java.lang.Class passes this check. Deserializing a java.lang.Class header resolves the header value as a class name and loads that class, but the class named in the value is not subject to the trusted packages check. A malicious producer can use this to make the consumer load, and with some Jackson versions initialize, any class on the consumer's classpath, regardless of the trusted packages configuration. The impact depends on the side effects of the static initializers of the classes present on the classpath, such as resource allocation, driver registration, or blocking. An application is affected if it consumes records from a topic that an attacker can produce to and maps inbound headers with JsonKafkaHeaderMapper or DefaultKafkaHeaderMapper , which is the default when Jackson is on the classpath.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-12-02
Last Modified
2026-12-02
Generated
2026-12-02
AI Q&A
2026-12-02
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 6 associated CPEs
Vendor Product Version / Range
vmware jackson *
vmware spring_for_apache_kafka to 2.8.13 (inc)
vmware spring_for_apache_kafka From 2.9.0 (inc) to 2.9.15 (inc)
vmware spring_for_apache_kafka From 3.0.0 (inc) to 3.3.17 (inc)
vmware spring_for_apache_kafka From 4.0.0 (inc) to 4.0.8 (inc)
vmware spring_for_apache_kafka From 4.1.0 (inc) to 4.1.2 (inc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-UNKNOWN

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability involves JsonKafkaHeaderMapper and DefaultKafkaHeaderMapper in Spring for Apache Kafka. These mappers check header types against trusted packages before deserializing. However, java.lang is trusted by default, allowing a malicious producer to send a java.lang.Class header. This bypasses trusted package checks and loads any class from the consumer's classpath, potentially causing side effects like resource allocation or blocking.

Detection Guidance

Check if your Spring for Apache Kafka version is vulnerable by running: mvn dependency:tree | grep spring-kafka. If the version is 2.8.13 or earlier, 2.9.0-2.9.15, 3.0.0-3.3.17, 4.0.0-4.0.8, or 4.1.0-4.1.2, the system is affected.

Impact Analysis

An attacker could exploit this to load arbitrary classes on your system, leading to unintended side effects such as resource exhaustion, driver registration, or blocking. This is possible if your application consumes records from attacker-controlled topics and uses the vulnerable mappers.

Compliance Impact

This vulnerability could potentially violate compliance with GDPR and HIPAA by enabling unauthorized class loading and execution on the consumer's system. Malicious actors could exploit it to load arbitrary classes, which may include classes that manipulate data, bypass security controls, or exfiltrate sensitive information. Such actions could lead to unauthorized data access, processing, or disclosure, directly conflicting with GDPR's data protection principles and HIPAA's requirements for safeguarding protected health information.

Mitigation Strategies

Upgrade Spring for Apache Kafka to a fixed version where java.lang.Class is not trusted. Avoid using java.lang.Class headers; instead, send class names as Strings and resolve them in the consuming application.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-59401. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...