Arbitrary JDK-type deserialization via package-prefix trust
Published Jun 9, 2026 · Updated Jun 9, 2026
Deserialization in Spring for Apache Kafka allows remote attackers to instantiate arbitrary JDK types through crafted Kafka headers. JsonKafkaHeaderMapper and DefaultKafkaHeaderMapper use a prefix comparison for trusted packages, so a trusted package also admits every subpackage to Jackson's default bean deserializer. A producer able to send records to the consumer can trigger constructors with side effects, including file-descriptor allocation and thread-pool creation.
Summary
What happened
Deserialization in Spring for Apache Kafka allows remote attackers to instantiate arbitrary JDK types through crafted Kafka headers. JsonKafkaHeaderMapper and DefaultKafkaHeaderMapper use a prefix comparison for trusted packages, so a trusted package also admits every subpackage to Jackson's default bean deserializer. A producer able to send records to the consumer can trigger constructors with side effects, including file-descriptor allocation and thread-pool creation.
The record
- CVE
- CVE-2026-41731
- Published
- Jun 9, 2026
- Updated
- Jun 9, 2026
- Vendor
- Spring
- Product
- Spring for Apache Kafka
- Classifications
- CWE-502
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Jun 9, 2026CVE publishedPublication date reported by the CVE source.
- Jun 9, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=2.8.0 <2.8.12
- Affected versionversion=2.9.0 <2.9.14
- Affected versionversion=3.2.0 <3.2.14
- Affected versionversion=3.3.0 <3.3.16
- Affected versionversion=4.0.0 <4.0.6
What conditions does exploitation require?
What is affected?
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo