Trusted package bypass in Spring for Apache Kafka header mapper
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- High
- Impact type
- —
- Confidentiality · integrity · availability
- None · None · Low
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA.
Summary
Spring for Apache Kafka is affected in the ranges from 0 before 2.8.14, from 2.9.0 before 2.9.16, from 3.0.0 before 3.3.18, from 4.0.0 before 4.0.8.1, from 4.0.0 before 4.0.9, from 4.1.0 before 4.1.2.1 and from 4.1.0 before 4.1.3. JsonKafkaHeaderMapper and DefaultKafkaHeaderMapper accept the java.lang.Class header type because java.lang is trusted by default, so a header value can name any class on the classpath and that class is loaded without the trusted packages check. A malicious producer to a topic the consumer reads can make the consumer load and, with some Jackson versions, initialize such classes, with an impact that depends on their static initializers.
Written with Claude Haiku 5.5 from the sources below · 2026-12-02
Description from the CNA
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| VMware | Spring for Apache Kafka | 4.1.0 to before 4.1.2.1; 4.0.0 to before 4.0.8.1; 3.0.0 to before 3.3.18; 2.9.0 to before 2.9.16; before 2.8.14; 4.1.0 to before 4.1.3; 4.0.0 to before 4.0.9 | 4.1.2.1, 4.0.8.1, 3.3.18, 2.9.16, 2.8.14, 4.1.3, 4.0.9 | Patch available | CNA |
- Spring for Apache Kafka VendorVMware Affected 4.1.0 to before 4.1.2.1; 4.0.0 to before 4.0.8.1; 3.0.0 to before 3.3.18; 2.9.0 to before 2.9.16; before 2.8.14; 4.1.0 to before 4.1.3; 4.0.0 to before 4.0.9 Fixed in 4.1.2.1, 4.0.8.1, 3.3.18, 2.9.16, 2.8.14, 4.1.3, 4.0.9 Patch available CNA
Remediation
Upgrade Spring for Apache Kafka to 2.8.14, 2.9.16, 3.3.18, 4.0.8.1, 4.0.9, 4.1.2.1 or 4.1.3, matching the release line in use.
Written with Claude Haiku 5.5 from the sources below · 2026-12-02
- Fix · CNA Spring for Apache Kafka (Spring) Fixed in 4.1.2.1, 4.0.8.1, 3.3.18, 2.9.16, 2.8.14, 4.1.3, 4.0.9
Fixed in the same release
Records fixed by the same vendor advisory or release, as the CNA lists them.
- Release ·
Spring for Apache Kafka 2.8.14, 2.9.16 and 5 more versions
4 records Highest priority Priority MEDIUM 3 MEDIUM, 1 LOW
Other records, highest priority first
- TI-2026-101977 Header-driven class loading in Spring for Apache Kafka deserializerPriority MEDIUM 45
- TI-2026-102003 Denial of service in Spring for Apache Kafka via crafted headersPriority MEDIUM 44
- TI-2026-101983 Denial of service in Spring for Apache Kafka header mappingPriority MEDIUM 44
Timeline
- 2026-12-02 Threatist record created from CVE-2026-59401
- 2026-12-02 Alias added: GHSA-hxp7-vq4w-9qw4
References
More VMware vulnerabilities
- TI-2026-94633 Authentication bypass in VMware vCenter Directory Service KEVCVSS 3.1CRITICAL 9.8
- TI-2026-42442 Directory traversal in VMware vCenter Syslog server KEVCVSS 3.1CRITICAL 9.8
- TI-2024-26040 VMware vCenter Server privilege escalation to root via network packet KEVCVSS 3.1CRITICAL 9.8
- TI-2024-26039 Heap overflow in VMware vCenter Server lets attackers run code KEVCVSS 3.1CRITICAL 9.8
- TI-2024-24610 Heap overflow in VMware vCenter Server DCERPC implementation KEVCVSS 3.1CRITICAL 9.8
- TI-2023-16914 Out-of-bounds write in VMware vCenter Server DCERPC implementation KEVCVSS 3.1CRITICAL 9.8
Sources
- CVE-2026-59401 · CVE Program
- CVE-2026-59401 · NVD
- GHSA-hxp7-vq4w-9qw4 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences