Skip to main content
Network Thinking Solutions Logo

CVE-2023-34040

Java Deserialization vulnerability in Spring-Kafka When Improperly Configured

All CVEs
CVE-2023-34040Published 8/24/2023

Java Deserialization vulnerability in Spring-Kafka When Improperly Configured

Vendor advisory
CVSS7.8High

Overview

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.

Published
8/24/2023
Last modified
6/17/2026
CVE assigner
Not available
NVD analysis
Not available

Exploitation

No CISA KEV flag in the saved record

An absent KEV flag does not establish that exploitation has never occurred. Verify current intelligence before prioritizing work.

EPSS predictions and CISA SSVC assessments are not imported here. Review additional intelligence on Cloudflare

Affected products

Affected-version rules published in the advisory. Conditions and uncertain comparisons require verification.

Vendor / productAffected versionsPlatform / conditionsEvidence
spring for apache kafka
vmware
≥ 2.8.1, ≤ 2.9.10

Verify advisory

Source
spring for apache kafka
vmware
≥ 3.0.0, ≤ 3.0.9

Verify advisory

Source
Spring For Apache Kafka
Spring
≥ 2.8.x, < 2.9.11

Verify advisory

Source
Spring For Apache Kafka
Spring
≥ 2.9.x, < 2.9.11

Verify advisory

Source
Spring For Apache Kafka
Spring
≥ 3.0.x, < 3.0.10

Verify advisory

Source

Recommended actions

Verify the product, installed version, platform, and advisory prerequisites on each system. Apply the vendor's applicable fixed release or mitigation. An affected-range boundary alone is not a universal update recommendation.

Vendor advisory links

Derived from non-aggregator references because the source record has no vendor tags. Verify the advisory before acting on it.

Severity

CVSS describes technical impact. It is separate from exploitation evidence.

Published headline score: 7.8. Score version, vector, and attribution are not available in this record. Additional score details appear when the source record is next refreshed.

Sources & references

Sources: Official CVE List, NVD and cve.now (summaries CC BY 4.0). Uses NVD data; not endorsed by NVD.