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

- Priority: **Routine**
- Reason: Not severe (CVSS 6.5, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2024-11-19 · Modified: 2025-01-31
- Aliases: CGA-229f-hvm5-5vrh, CGA-2545-vg46-q42f, CGA-2f46-46mw-5xvv, CGA-2q3v-87v9-mc7m, CGA-3cp9-vhm9-9c42, CGA-4p28-h9f5-w4vr, CGA-55jf-xc3x-phhx, CGA-5vw3-96j2-2qrr, CGA-67m7-6v44-q55w, CGA-6m89-j83q-pxr9, CGA-6pjh-p9m9-8q8x, CGA-6qh9-2r2v-w442, CGA-826w-cqfw-9mhw, CGA-8298-h479-rx3f, CGA-842f-x736-vgx6, CGA-9264-9q77-vw74, CGA-95j4-rg62-58v4, CGA-9p99-7rvw-6fg3, CGA-cg65-hwj6-4gm6, CGA-ch3v-fhcr-rm55, CGA-cpjm-r862-qpmf, CGA-fcmx-2348-c23c, CGA-fxv6-39mx-fv3c, CGA-gcp8-w6q8-wf3v, CGA-gjw2-wp26-w4mw, CGA-gr7m-rwgj-j879, CGA-h336-xprr-xjxr, CGA-h8p5-hcxg-v8qg, CGA-hcpc-97xm-3mgc, CGA-hjj7-24gj-c256, CGA-j9hm-jrgv-25w4, CGA-jc7w-gpp3-86hv, CGA-mp67-94w2-gcc8, CGA-mw6f-rw7f-33f2, CGA-pwvr-q2xf-68qh, CGA-qh66-grp5-73q8, CGA-qmj9-5jp4-fg22, CGA-r3hf-q9pc-77gg, CGA-r95c-282h-pfjp, CGA-rg44-fcxx-6jhr, CGA-rvqj-6rw4-j2x9, CGA-rwg4-mxm9-9fr5, CGA-v242-j59h-fv3m, CGA-v5pc-6jh6-cg7c, CGA-v99j-2h9q-77r8, CGA-w375-2cvr-rp98, CGA-w433-vfjp-6fp4, CGA-w872-8g65-q2vp, CGA-fxf5-rvq9-cc3r, CGA-hpc7-pm7x-cprw, GHSA-2x2g-32r7-p4x8
- Record: https://cvemate.com/vulnerability/CVE-2024-31141 · JSON: https://cvemate.com/vulnerability/CVE-2024-31141/json

## Description

```text
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.
```

## Signals

- CVSS: 6.5 medium (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
- EPSS: 1.356%, percentile 72.591%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 52)

- apache software foundation apache kafka clients: ≥ 2.3.0, ≤ 3.5.2 \| ≥ 3.6.0, ≤ 3.6.2 \| 3.7.0
- apache kafka: ≥ 2.3.0, ≤ 3.5.2 \| ≥ 3.6.0, ≤ 3.6.2 \| 3.7.0
- chainguard apache-nifi (Chainguard): \< 2.0.0-r4
- chainguard apache-nifi-compat (Chainguard): \< 2.0.0-r4
- chainguard apache-nifi-toolkit (Chainguard): \< 2.0.0-r4
- chainguard druid (Chainguard): \< 31.0.0-r2
- chainguard druid-compat (Chainguard): \< 31.0.0-r2
- chainguard hadoop-fips-3.3.6 (Chainguard): All versions (No fix recorded)
- chainguard kafka\_exporter-strimzi-compat (Chainguard): \< 0.44.0-r2
- chainguard kafka-strimzi-compat (Chainguard): \< 0.44.0-r2
- chainguard logstash-8-with-output-opensearch (Chainguard): \< 8.16.1-r1
- chainguard prometheus-jmx-exporter-strimzi-compat (Chainguard): \< 0.44.0-r2
- chainguard strimzi-kafka-operator (Chainguard): \< 0.44.0-r2
- chainguard strimzi-kafka-operator-cluster-operator (Chainguard): \< 0.44.0-r2
- chainguard strimzi-kafka-operator-kafka-agent (Chainguard): \< 0.44.0-r2
- chainguard strimzi-kafka-operator-kafka-base (Chainguard): \< 0.44.0-r2
- chainguard strimzi-kafka-operator-kafka-init (Chainguard): \< 0.44.0-r2
- chainguard strimzi-kafka-operator-kafka-thirdparty-libs (Chainguard): \< 0.44.0-r2
- chainguard strimzi-kafka-operator-kafka-thirdparty-libs-cc (Chainguard): \< 0.44.0-r2
- chainguard strimzi-kafka-operator-topic-operator (Chainguard): \< 0.44.0-r2

## References

- <https://lists.apache.org/thread/9whdzfr0zwdhr364604w5ssnzmg4v2lv>
- <http://www.openwall.com/lists/oss-security/2024/11/18/5>
- <https://security.netapp.com/advisory/ntap-20250131-0001/>
- <https://repo.maven.apache.org/maven2>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/31xxx/CVE-2024-31141.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2024-31141>
- <https://github.com/apache/kafka>
- <https://security.netapp.com/advisory/ntap-20250131-0001>

---

Data as of 2026-12-05T05:13:32.264Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
