7.8
HIGH
CVE-2023-34040
Apache Kafka Spring Deserialization Vulnerability
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.

INFO

Published Date :

Aug. 24, 2023, 1:15 p.m.

Last Modified :

Oct. 18, 2023, 5:56 p.m.

Remotely Exploitable :

No

Impact Score :

5.9

Exploitability Score :

1.8
Public PoC/Exploit Available at Github

CVE-2023-34040 has a 7 public PoC/Exploit available at Github. Go to the Public Exploits tab to see the list.

Affected Products

The following products are affected by CVE-2023-34040 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Vmware spring_for_apache_kafka
References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2023-34040.

URL Resource
https://spring.io/security/cve-2023-34040 Mitigation Vendor Advisory

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

None

Java

Updated: 5 months, 3 weeks ago
0 stars 0 fork 0 watcher
Born at : May 27, 2024, 3:57 p.m. This repo has been linked 1 different CVEs too.

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. Cre: NVD

Java

Updated: 6 months, 4 weeks ago
0 stars 0 fork 0 watcher
Born at : April 24, 2024, 3:54 a.m. This repo has been linked 1 different CVEs too.

Resources to learn about Insecure Deserialization

Updated: 3 months, 1 week ago
1 stars 0 fork 0 watcher
Born at : April 17, 2024, 7 p.m. This repo has been linked 20 different CVEs too.

Spring-Kafka-Deserialization-Remote-Code-Execution

Java

Updated: 6 months, 2 weeks ago
30 stars 8 fork 8 watcher
Born at : Sept. 28, 2023, 11:18 a.m. This repo has been linked 1 different CVEs too.

POC for Spring Kafka Deserialization Vulnerability CVE-2023-34040

Java

Updated: 3 months, 1 week ago
43 stars 3 fork 3 watcher
Born at : Aug. 30, 2023, 12:09 p.m. This repo has been linked 1 different CVEs too.

None

Java

Updated: 3 months ago
13 stars 1 fork 1 watcher
Born at : April 23, 2023, 4:12 a.m. This repo has been linked 5 different CVEs too.

a rep for documenting my study, may be from 0 to 0.1

Java Dockerfile Shell Python HTML

Updated: 2 months, 2 weeks ago
1833 stars 266 fork 266 watcher
Born at : Oct. 18, 2021, 1:21 a.m. This repo has been linked 34 different CVEs too.

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2023-34040 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2023-34040 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by [email protected]

    May. 14, 2024

    Action Type Old Value New Value
  • Reanalysis by [email protected]

    Oct. 18, 2023

    Action Type Old Value New Value
    Changed CPE Configuration OR *cpe:2.3:a:vmware:spring:*:*:*:*:*:apache_kafka:*:* versions from (including) 2.8.1 up to (including) 2.9.10 *cpe:2.3:a:vmware:spring:*:*:*:*:*:apache_kafka:*:* versions from (including) 3.0.0 up to (including) 3.0.9 OR *cpe:2.3:a:vmware:spring_for_apache_kafka:*:*:*:*:*:*:*:* versions from (including) 2.8.1 up to (including) 2.9.10 *cpe:2.3:a:vmware:spring_for_apache_kafka:*:*:*:*:*:*:*:* versions from (including) 3.0.0 up to (including) 3.0.9
  • Initial Analysis by [email protected]

    Aug. 29, 2023

    Action Type Old Value New Value
    Added CVSS V3.1 NIST AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
    Changed Reference Type https://spring.io/security/cve-2023-34040 No Types Assigned https://spring.io/security/cve-2023-34040 Mitigation, Vendor Advisory
    Added CWE NIST CWE-502
    Added CPE Configuration OR *cpe:2.3:a:vmware:spring:*:*:*:*:*:apache_kafka:*:* versions from (including) 2.8.1 up to (including) 2.9.10 *cpe:2.3:a:vmware:spring:*:*:*:*:*:apache_kafka:*:* versions from (including) 3.0.0 up to (including) 3.0.9
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2023-34040 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2023-34040 weaknesses.

Exploit Prediction

EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.

0.04 }} -0.00%

score

0.10510

percentile

CVSS31 - Vulnerability Scoring System
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability