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.
Source :
[email protected]
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.
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
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
Resources to learn about Insecure Deserialization
Spring-Kafka-Deserialization-Remote-Code-Execution
Java
POC for Spring Kafka Deserialization Vulnerability CVE-2023-34040
Java
None
Java
a rep for documenting my study, may be from 0 to 0.1
Java Dockerfile Shell Python HTML
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
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