Home » Database

AVID-2026-R1246

Description

Java Deserialization vulnerability in Spring-Kafka When Improperly Configured (CVE-2023-34040)

Details

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.

Reason for inclusion in AVID: CVE-2023-34040 describes a Java deserialization vulnerability in Spring-Kafka, a software component commonly used in AI data pipelines and deployment stacks (e.g., Kafka-based ingestion/streaming for ML workloads). This is a software supply chain vulnerability affecting a dependency used to build/run AI systems. It is a CVE-style security vulnerability (deserialization attack) with conditions and remediation guidance, not hardware/firmware-only. The report provides affected versions, conditions for exploitation, and references, giving sufficient evidence for curation.

References

Affected or Relevant Artifacts

  • Developer: Spring
  • Deployer: Spring
  • Artifact Details:
TypeName
SystemSpring For Apache Kafka

Impact

AVID Taxonomy Categorization

  • Risk domains: Security
  • SEP subcategories: S0100: Software Vulnerability
  • Lifecycle stages: L06: Deployment

CVSS

Version3.1
Vector StringCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
Base Score5.3
Base Severity🟠 Medium
Attack VectorLOCAL
Attack Complexity🟢 Low
Privileges Required🟢 Low
User InteractionNONE
ScopeUNCHANGED
Confidentiality Impact🟢 Low
Integrity Impact🟢 Low
Availability Impact🟢 Low

CWE

IDDescription
CWE-502CWE-502 Deserialization of Untrusted Data

Other information

  • Report Type: Advisory
  • Credits:
  • Date Reported: 2023-08-24
  • Version: 0.3.3
  • AVID Entry