6.5

CVE-2024-31141: Apache Kafka Clients: Privilege escalation to filesystem read-access via automatic ConfigProvider

Analyzed
AliasesCGA-229f-hvm5-5vrhCGA-2545-vg46-q42fCGA-2f46-46mw-5xvv
Published 19-11-2024Last modified 31-01-2025

Vulnerability summary

CVE-2024-31141 is a medium (CVSS 6.5) Improper Privilege Management vulnerability in apache software foundation apache kafka clients. EPSS estimates a 1.36% chance of exploitation in the next 30 days, higher than 72.5% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 6.5, network access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
6.5/10
010
Medium · v3.1 (CVE.org)
EPSS score
1.36%
0%100%
Low · +0.03 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 0 · Related 4

Timeline

  1. 19-11-2024
    PublishedVulnerability first disclosed.
  2. 31-01-2025
    Last modifiedVulnerability information updated.

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.

CVSS metrics

6 scores · 5 sources · 2 versions

EPSS trend

Probability

1.36%

Chance of exploitation in the next 30 days

Percentile

73%

Versus all other CVEs

30-day change

Increase +0.03 pp

From 1.33% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.

Chainguard25 products
  • apache-nifi< 2.0.0-r4
  • apache-nifi-compat< 2.0.0-r4
  • apache-nifi-toolkit< 2.0.0-r4
  • druid< 31.0.0-r2
  • druid-compat< 31.0.0-r2
Wolfi24 products
  • apache-nifi< 2.0.0-r4
  • apache-nifi-compat< 2.0.0-r4
  • apache-nifi-toolkit< 2.0.0-r4
  • druid< 31.0.0-r2
  • druid-compat< 31.0.0-r2
Apache1 product
  • kafkaEOL≥ 2.3.0, ≤ 3.5.2 | ≥ 3.6.0, ≤ 3.6.2 | 3.7.0
Apache software foundation1 product
Org.apache.kafka1 product
  • kafka-clients≥ 2.3.0, < 3.7.1

5 vendors · 52 products

References

8 links