CVE-2024-31141: apache software foundation apache kafka clients Improper Privilege Management
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.24% chance of exploitation in the next 30 days, higher than 68.6% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 0 · Related 4Timeline
- 19-11-2024PublishedVulnerability first disclosed.
- 31-01-2025Last 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- OSV · WolfiEcosystem advisory · calculated6.5MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
- OSV · ChainguardEcosystem advisory · calculated6.5MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
- OSV · MavenEcosystem advisory · calculated6.5MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
- NVDNIST6.5MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
EPSS trend
Probability
1.24%
Chance of exploitation in the next 30 days
Percentile
69%
Versus all other CVEs
30-day change
0.00 pp
From 1.24% on 18-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-269Improper Privilege ManagementThe product does not properly assign, modify, track, or check privileges for an actor, creating an unintended sphere of control for that actor.
- CWE-552Files or Directories Accessible to External PartiesThe product makes files or directories accessible to unauthorized actors, even though they should not be.
Affected systems
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
- apache kafka clients≥ 2.3.0, ≤ 3.5.2 | ≥ 3.6.0, ≤ 3.6.2 | 3.7.0
Org.apache.kafka1 product
- kafka-clients≥ 2.3.0, < 3.7.1
5 vendors · 52 products
References
8 links- github.com/apache/kafkaPACKAGE