CVSS 3.1
6.5 mediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:NMedium (6.5) in apache kafka. EPSS 1.3% estimated probability of exploitation activity in the next 30 days. Fixed in org.apache.kafka:kafka-clients 3.7.1.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:Norg.apache.kafka:kafka-clients (Maven): fixed in 3.7.1Explain CVE-2024-31141 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-31141?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-31141?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-31141 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.
From the CNA's record in the CVE List.
| Product | Affected |
|---|---|
| Apache Software Foundation Apache Kafka Clients | from 2.3.0 through 3.5.2 |
| Apache Software Foundation Apache Kafka Clients | from 3.6.0 through 3.6.2 |
| Apache Software Foundation Apache Kafka Clients | 3.7.0 |
| Advisory | Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|---|
| GHSA-2x2g-32r7-p4x8 | Maven | org.apache.kafka:kafka-clients | >=2.3.0 <3.7.1 | 3.7.1 |
Red Hat rates this Moderate.
Moderate impact affects Red Hat products and services that include Apache Kafka Clients when an attacker with low privileges can cause an application to process attacker-controlled client configuration. Over the network, and with high attack complexity, the attacker may abuse the automatic FileConfigProvider, DirectoryConfigProvider, or EnvVarConfigProvider to read arbitrary filesystem contents or environment variables; in Kafka Connect this can escalate REST API access to filesystem or environment access. The current record marks 24 Red Hat product or service streams as affected, with remediation delegated or deferred for some streams, while Red Hat AMQ amq-cl-2 and OpenShift Logging 5.8 and 5.9 are not affected because the vulnerable code is not present. Red Hat rates the issue CVSS 5.3 Moderate, lower than the external 6.5 Moderate score, because Red Hat assesses the attack complexity as high rather than low.
For 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 appropriate allowlist.pattern and allowed.paths settings. Upgrade kafka-clients to version 3.8.0 or later, or apply the applicable vendor fix. The system-property restriction is not recommended for Kafka Clients or Kafka Connect deployments where users are trusted with disk and environment access, or for Kafka Broker, Kafka MirrorMaker 2.0, Kafka Streams, and Kafka command-line tools.
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat build of Apache Camel 4.8 for Spring Boot | kafka-clients | Fixed 2024-12-02 | RHSA-2024:10700 |
| Streams for Apache Kafka 2.9.0 | Fixed 2025-03-05 | RHSA-2025:2416 | |
| Streams for Apache Kafka 2.9.1 | Fixed 2025-06-30 | RHSA-2025:9922 | |
| Streams for Apache Kafka 3.0.0 | Fixed 2025-08-01 | RHSA-2025:12511 | |
| A-MQ Clients 2 | kafka-clients | Not affected | |
| Logging Subsystem for Red Hat OpenShift | org.apache.kafka/kafka-clients | Not affected | |
| Red Hat build of Apache Camel 4 for Quarkus 3 | kafka-clients | Affected | |
| Red Hat build of Apicurio Registry 2 | kafka-clients | Affected | |
| Red Hat build of Debezium 2 | kafka-clients | Will not fix | |
| Red Hat build of Quarkus | kafka-clients | Not affected | |
| Red Hat Data Grid 8 | kafka-clients | Will not fix | |
| Red Hat Fuse 7 | kafka-clients | Out of support scope | |
| Red Hat Integration Camel K 1 | kafka-clients | Out of support scope | |
| Red Hat JBoss Data Grid 7 | kafka-clients | Out of support scope | |
| Red Hat JBoss Enterprise Application Platform 7 | kafka-clients | Not affected | |
| Red Hat JBoss Enterprise Application Platform 8 | kafka-clients | Not affected | |
| Red Hat JBoss Enterprise Application Platform 8 | org.jboss.eap-jboss-eap-xp | Not affected | |
| Red Hat JBoss Enterprise Application Platform Expansion Pack | kafka-clients | Out of support scope | |
| Red Hat JBoss Enterprise Application Platform Expansion Pack | org.jboss.eap-jboss-eap-xp | Out of support scope | |
| Red Hat Process Automation 7 | kafka-clients | Out of support scope | |
| 1 more in the JSON and on Red Hat's page. | |||
Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2024-31141.
The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.