CVE-2023-34040: Spring-Kafka has Java Deserialization vulnerability When Improperly Configured
7.8
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.94568%
CWE
Published
8/24/2023
Updated
11/5/2024
KEV Status
No
Technology
Java
Technical Details
CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
org.springframework.kafka:spring-kafka | maven | >= 3.0.0, < 3.0.10 | 3.0.10 |
org.springframework.kafka:spring-kafka | maven | >= 2.8.1, < 2.9.11 | 2.9.11 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from unsafe deserialization of Kafka record headers. The deprecated ListenerUtils
methods directly deserialized header contents without validating
the header type, which could be exploited when: 1) ErrorHandlingDeserializer
isn't used to sanitize headers, 2) checkDeserExWhen*Null
flags are enabled, and 3) untrusted data is allowed. The patched version introduces DeserializationExceptionHeader
type checks in SerializationUtils
equivalents, which the original functions lacked.