Home / Apache Software Foundation / Apache Kafka Clients / CVE-2024-31141
CVE-2024-31141: is it exploited, and which versions of Apache Software Foundation Apache Kafka Clients are affected and fixed?
CVE-2024-31141 is a files or folders accessible to outside parties vulnerability in Apache Software Foundation Apache Kafka Clients. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 16:39 UTC). Affected: org.apache.kafka:kafka-clients from 2.3.0 before 3.7.1 (GitHub advisory GHSA-2x2g-32r7-p4x8). Fixed in 3.7.1 (GitHub advisory GHSA-2x2g-32r7-p4x8). Severity: Medium (6.5, CVSS 3.1, from CISA-ADP).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 16:39 UTC, CVE record November 19, 2026, 07:11 UTC and NVD November 19, 2026, 07:25 UTC.
What is CVE-2024-31141?
Apache Kafka Clients: Privilege escalation to filesystem read-access via automatic ConfigProvider
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.
From the CVE record by apache, last updated January 31, 2025, 15:02 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| Apache Software Foundation | Apache Kafka Clients org.apache.kafka:kafka-clients | from 2.3.0 through 3.5.2 from 3.6.0 through 3.6.2 3.7.0 |
As the CVE record by apache states it, last updated January 31, 2025. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| Maven | org.apache.kafka:kafka-clients | >= 2.3.0, < 3.7.1 | 3.7.1 | GHSA-2x2g-32r7-p4x8 |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated February 18, 2025. Summary: Apache Kafka Clients: Privilege escalation to filesystem read-access via automatic ConfigProvider.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| apache | kafka | from 2.3.0 through 3.5.2 | application |
| apache | kafka | from 3.6.0 through 3.6.2 | application |
| apache | kafka | 3.7.0 | application |
NVD analysis (status Analyzed), last modified June 17, 2026, 07:27 UTC.
How severe is CVE-2024-31141?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 6.5 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N | CISA-ADP |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2024-31141 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: no; technical impact: partial (CISA ADP, November 19, 2024)
- EPSS
- 1.36% probability of exploitation activity in the next 30 days, percentile 72.6 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
Where are the vendor advisories and references?
- https://lists.apache.org/thread/9whdzfr0zwdhr364604w5ssnzmg4v2lv vendor-advisory
- http://www.openwall.com/lists/oss-security/2024/11/18/5
- https://security.netapp.com/advisory/ntap-20250131-0001/
Who found and reported it?
- Greg Harris (finder)
- Mickael Maison (remediation reviewer)
- Chris Egerton (remediation reviewer)
As published in the CVE record; contact details are removed.
When was it published, and where is the official record?
- Reserved
- March 28, 2024
- Published
- November 19, 2024, 08:40 UTC
- CVE record updated
- January 31, 2025, 15:02 UTC by apache
- NVD
- Analyzed, last modified June 17, 2026, 07:27 UTC
- Last checked
- CVE list November 19, 2026, 07:11 UTC; NVD November 19, 2026, 07:25 UTC; KEV December 3, 2026, 16:39 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
What other CVEs affect Apache Kafka Clients?
- Apr 20, 2026CVE-2026-33558 Apache Software Foundation Apache Kafka: sensitive information written to log files
- Apr 7, 2026CVE-2026-35554 Apache Software Foundation Apache Kafka Clients: use after free
Every CVE in Apache Kafka Clients
Questions about CVE-2024-31141
Is CVE-2024-31141 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 16:39 UTC. FIRST's EPSS gives it a 1.36% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of Apache Software Foundation Apache Kafka Clients are affected by CVE-2024-31141?
org.apache.kafka:kafka-clients from 2.3.0 before 3.7.1, per the GitHub advisory GHSA-2x2g-32r7-p4x8. The tables above give every range the sources list.
Which version fixes CVE-2024-31141?
3.7.1, per the GitHub advisory GHSA-2x2g-32r7-p4x8. Check the vendor's advisory before you rely on it.
How severe is CVE-2024-31141?
Medium (6.5, CVSS 3.1, from CISA-ADP). The severity table above shows each score with its source.
Where is the official record of CVE-2024-31141?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.