CVE-2023-34040
published medium CVSS 3.1 · 5.3Java Deserialization vulnerability in Spring-Kafka When Improperly Configured
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Spring | — | Spring For Apache Kafka2.8.x to < 2.9.11 · 2.9.x to < 2.9.11 · 3.0.x to < 3.0.10 · Other versions: unaffected | Affected | Not stated | vmware |
Description
In Spring for Apache Kafka 3.0.9 and earlier and versions 2.9.10 and earlier, a possible deserialization attack vector existed, but only if unusual configuration was applied. An attacker would have to construct a malicious serialized object in one of the deserialization exception record headers. Specifically, an application is vulnerable when all of the following are true: * The user does not configure an ErrorHandlingDeserializer for the key and/or value of the record * The user explicitly sets container properties checkDeserExWhenKeyNull and/or checkDeserExWhenValueNull container properties to true. * The user allows untrusted sources to publish to a Kafka topic By default, these properties are false, and the container only attempts to deserialize the headers if an ErrorHandlingDeserializer is configured. The ErrorHandlingDeserializer prevents the vulnerability by removing any such malicious headers before processing the record.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.3 / 10
- Severity
- medium
- Provider
- vmware · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Spring | Spring For Apache Kafka | 2.8.x to < 2.9.11 (affected · 2.9.11)2.9.x to < 2.9.11 (affected · 2.9.11)3.0.x to < 3.0.10 (affected · 3.0.10)Default: unaffected | vmware · cna |
Weaknesses
1- CWE-502 CWE-502 Deserialization of Untrusted Data
References
1Provider assertions
3vmware · cna
Java Deserialization vulnerability in Spring-Kafka When Improperly Configured
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 810b6e4fca57abaa6f7840b2e30012962a77c411c7dba6b431ea4db86e8143b5
- Ingested
- 23 Sep 2026, 08:09:20 UTC
- Source record
- Official CVE record