Skip to main content
No exploitation reportedFix available

CVE-2024-31141

No exploitation reported by the sources we read.

  • Published2024-11-19
  • Fixed in3.7.1
  • WeaknessCWE-269 · CWE-552

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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.

Timeline

dates in UTC
  1. 2024-11-1909:15CVE publishedNVD

Observed activity

isMalicious corpus · updated 2026-11-03 15:37 UTC
Indicators tagged with this CVE, per day0 indicators over 7 days
Block these indicators
  • Firewall list (EDL, text): https://api.ismalicious.com/edl/cve/CVE-2024-31141?format=txt
  • CSV export: https://api.ismalicious.com/edl/cve/CVE-2024-31141?format=csv
  • TAXII collection of exploited CVEs
  • The EDL and CSV take an API key on the Pro plan.

Versions per branch

OSV · NVD
kafka-clients
BranchAffectedFixed in
3.7≥ 2.3.0, < 3.7.13.7.1
Apache kafka
BranchAffectedFixed in
3.5≥ 2.3.0, ≤ 3.5.2no fix published
3.6≥ 3.6.0, ≤ 3.6.2no fix published
3.7= 3.7.0no fix published

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA1 product

As apache, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

  • Apache Software Foundation Apache Kafka Clientsother versions: not affected

    package org.apache.kafka:kafka-clientshttps://repo.maven.apache.org/maven2

    Affected
    • ≥ 2.3.0, ≤ 3.5.2no fix statedsemver
    • ≥ 3.6.0, ≤ 3.6.2no fix statedsemver
    • = 3.7.0no fix statedsemver

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE Terms of UseCVE recordupdated 2024-11-19

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • apache-nifiWolfiall versions · fixed in 2.0.0-r4and 2 other packages
  • apache-nifiChainguardall versions · fixed in 2.0.0-r4and 2 other packages
  • druidWolfiall versions · fixed in 31.0.0-r2and 1 other package
  • druidChainguardall versions · fixed in 31.0.0-r2and 1 other package
  • hadoop-fips-3.3.6Chainguardall versions · no fixed version listed
  • io.root.org.apache.kafka:kafka-clientsRoot:Mavenall versions · fixed in 3.6.0-root.io.2
  • io.root.org.apache.kafka:kafka-clientsRoot:Mavenall versions · fixed in 3.0.0-root.io.1
  • io.root.org.apache.kafka:kafka-clientsRoot:Mavenall versions · fixed in 3.6.0-root.io.3

22 more package ranges on OSV.dev

Vendor advisories

  • RHSA-2025:2416 Red Hat Product Security1 product fixed

    Red Hat Security Advisory: Streams for Apache Kafka 2.9.0 release and security update

  • RHSA-2024:10700 Red Hat Product Security1 product fixed

    Red Hat Security Advisory: Red Hat Build of Apache Camel 4.8 for Spring Boot security update.

Full record on NVD

Fix

  1. Update kafka-clients to 3.7.1
  2. Vendor fix Red Hat Product Security RHSA-2025:2416 · 1 productBefore applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
  3. Workaround from the vendor Red Hat Product Security RHSA-2025:2416 · 1 productFor applications in which an untrusted party can specify Apache Kafka Client configuration, disable automatic configuration providers by setting the JVM system property org.apache.kafka.automatic.config.providers=none. For Kafka Connect workers that must use the listed providers, restrict them with…

Advisories and patches

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof-of-concept repositories
none listed
PoC-in-GitHub
Metasploit modules
none listed
Metasploit Framework

Sources

Identifiers

Technical details

CVSS v3 Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Published
2024-11-19
Last Modified
2026-06-17
NVD status
Analyzed
GitHub Advisory
GHSA-2x2g-32r7-p4x8

Frequently asked questions

What is CVE-2024-31141?

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.

Is CVE-2024-31141 actively exploited?

Active exploitation of CVE-2024-31141 has not been confirmed. Its EPSS score was 1.3% on 2026-11-03, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2024-31141?

CVE-2024-31141 has a CVSS v3 base score of 6.5 (MEDIUM severity), with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N.

Running kafka-clients? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website lookups · 250 API requests/month

Sources for this record