6.5
MEDIUM
CVE-2024-31141
Apache Kafka Clients Unauthorized Disk and Environment Variable Access Abuse
Description

Files or Directories Accessible to External Parties, Improper Privilege Management vulnerability in Apache Kafka Clients. Apache Kafka Clients accept configuration data for customizing behavior, and includes ConfigProvider plugins in order to manipulate these configurations. Apache Kafka also provides FileConfigProvider, DirectoryConfigProvider, and EnvVarConfigProvider implementations which include the ability to read from disk or environment variables. In applications where Apache Kafka Clients configurations can be specified by an untrusted party, attackers may use these ConfigProviders to read arbitrary contents of the disk and environment variables. In particular, this flaw may be used in Apache Kafka Connect to escalate from REST API access to filesystem/environment access, which may be undesirable in certain environments, including SaaS products. This issue affects Apache Kafka Clients: from 2.3.0 through 3.5.2, 3.6.2, 3.7.0. Users with affected applications are recommended to upgrade kafka-clients to version >=3.8.0, and set the JVM system property "org.apache.kafka.automatic.config.providers=none". Users of Kafka Connect with one of the listed ConfigProvider implementations specified in their worker config are also recommended to add appropriate "allowlist.pattern" and "allowed.paths" to restrict their operation to appropriate bounds. For users of Kafka Clients or Kafka Connect in environments that trust users with disk and environment variable access, it is not recommended to set the system property. For users of the Kafka Broker, Kafka MirrorMaker 2.0, Kafka Streams, and Kafka command-line tools, it is not recommended to set the system property.

INFO

Published Date :

Nov. 19, 2024, 9:15 a.m.

Last Modified :

Nov. 21, 2024, 9:12 a.m.

Remotely Exploitable :

Yes !

Impact Score :

3.6

Exploitability Score :

2.8
Public PoC/Exploit Available at Github

CVE-2024-31141 has a 2 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-2024-31141 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.

No affected product recoded yet

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-2024-31141.

URL Resource
https://lists.apache.org/thread/9whdzfr0zwdhr364604w5ssnzmg4v2lv
http://www.openwall.com/lists/oss-security/2024/11/18/5

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).

Generate logs from templates, or get logs from files, Elasticsearch or Kafka. Change the logs on the fly to create new, events and finally send the logs to console, file, Elasticsearch, Kafka, UDP or TCP

diode elasticsearch kafka logging logs rewrite tcp udp log-generation loggenerator

Java

Updated: 2 weeks, 2 days ago
2 stars 0 fork 0 watcher
Born at : Dec. 9, 2022, 10:07 a.m. This repo has been linked 1 different CVEs too.

None

Updated: 1 day, 21 hours ago
12 stars 0 fork 0 watcher
Born at : July 22, 2022, 3:39 p.m. This repo has been linked 2 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-2024-31141 vulnerability anywhere in the article.

  • Cybersecurity News
CVE-2024-10542 & CVE-2024-10781: Critical WordPress Plugin Flaw Exposes 200,000 Sites

A recent report from the Wordfence Threat Intelligence Team has revealed two critical vulnerabilities in the Anti-Spam by CleanTalk WordPress plugin, impacting over 200,000 active installations. These ... Read more

Published Date: Nov 26, 2024 (1 month ago)
  • Cybersecurity News
Russia-Linked TAG-110 Launches Cyberespionage Campaign Across Asia and Europe

Image: Insikt GroupInsikt Group, the threat research division of Recorded Future, has uncovered a cyberespionage campaign attributed to TAG-110, a Russia-aligned threat activity group. This campaign, ... Read more

Published Date: Nov 25, 2024 (1 month ago)
  • TheCyberThrone
Apache HertzBeat affected by CVE-2024-45791

Apache HertzBeat has been affected by a vulnerability that affects versions prior to 1.6.1 and could allow unauthorized actors to access sensitive information.The vulnerability tracked as CVE-2024-457 ... Read more

Published Date: Nov 20, 2024 (1 month ago)
  • TheCyberThrone
HellDown Ransomware exploiting Zyxel Vulnerability

Helldown ransomware is a relatively new and evolving threat in the cybersecurity landscape. Initially targeting Windows systems, it has now expanded to attack VMware and Linux environments. This ranso ... Read more

Published Date: Nov 20, 2024 (1 month ago)
  • TheCyberThrone
Broadcom repatched VMware bugs for the second time

Vmware vulnerabilities have been exploited in attacks after the initial released patches failed to fix the flawThe vulnerabilities are tracked  as CVE-2024-38812 and CVE-2024-38813, released on Septem ... Read more

Published Date: Nov 19, 2024 (1 month ago)
  • TheCyberThrone
Apache Kafka affected by CVE-2024-31141

The open-source event streaming platform Apache Kafka has been affected by a vulnerability the that could allow attackers to gain unauthorized access to sensitive information.The vulnerability tracked ... Read more

Published Date: Nov 19, 2024 (1 month ago)
  • Cybersecurity News
CVE-2024-31141: Apache Kafka Vulnerability Exposes User Data to Potential Attackers

A newly discovered vulnerability in Apache Kafka, the popular open-source event streaming platform, could allow attackers to gain unauthorized access to sensitive information. The vulnerability, track ... Read more

Published Date: Nov 19, 2024 (1 month, 1 week ago)

The following table lists the changes that have been made to the CVE-2024-31141 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 af854a3a-2127-422b-91ae-364da2661108

    Nov. 21, 2024

    Action Type Old Value New Value
    Added Reference http://www.openwall.com/lists/oss-security/2024/11/18/5
  • CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0

    Nov. 19, 2024

    Action Type Old Value New Value
    Added CVSS V3.1 CISA-ADP AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
  • CVE Received by [email protected]

    Nov. 19, 2024

    Action Type Old Value New Value
    Added Description Files or Directories Accessible to External Parties, Improper Privilege Management vulnerability in Apache Kafka Clients. Apache Kafka Clients accept configuration data for customizing behavior, and includes ConfigProvider plugins in order to manipulate these configurations. Apache Kafka also provides FileConfigProvider, DirectoryConfigProvider, and EnvVarConfigProvider implementations which include the ability to read from disk or environment variables. In applications where Apache Kafka Clients configurations can be specified by an untrusted party, attackers may use these ConfigProviders to read arbitrary contents of the disk and environment variables. In particular, this flaw may be used in Apache Kafka Connect to escalate from REST API access to filesystem/environment access, which may be undesirable in certain environments, including SaaS products. This issue affects Apache Kafka Clients: from 2.3.0 through 3.5.2, 3.6.2, 3.7.0. Users with affected applications are recommended to upgrade kafka-clients to version >=3.8.0, and set the JVM system property "org.apache.kafka.automatic.config.providers=none". Users of Kafka Connect with one of the listed ConfigProvider implementations specified in their worker config are also recommended to add appropriate "allowlist.pattern" and "allowed.paths" to restrict their operation to appropriate bounds. For users of Kafka Clients or Kafka Connect in environments that trust users with disk and environment variable access, it is not recommended to set the system property. For users of the Kafka Broker, Kafka MirrorMaker 2.0, Kafka Streams, and Kafka command-line tools, it is not recommended to set the system property.
    Added Reference Apache Software Foundation https://lists.apache.org/thread/9whdzfr0zwdhr364604w5ssnzmg4v2lv [No types assigned]
    Added CWE Apache Software Foundation CWE-269
    Added CWE Apache Software Foundation CWE-552
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-2024-31141 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-2024-31141 weaknesses.

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