cve.bz

CVE-2024-31141 apache kafka: Improper Privilege Management

6.5 mediumEPSS 1.3%Fix available

Medium (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.

On this page
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.

Severity

CVSS 3.1

6.5 medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
EPSS
1.3% (unchanged from 1.3% a week ago; 1.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 72nd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2024-11-19. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-269 Improper Privilege Management
CWE-552 Files or Directories Accessible to External Parties
OWASP Top 10
A01:2025 Broken Access Control, A06:2025 Insecure Design
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain 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.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Apache Software Foundation Apache Kafka Clientsfrom 2.3.0 through 3.5.2
Apache Software Foundation Apache Kafka Clientsfrom 3.6.0 through 3.6.2
Apache Software Foundation Apache Kafka Clients3.7.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-2x2g-32r7-p4x8Mavenorg.apache.kafka:kafka-clients>=2.3.0 <3.7.13.7.1

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

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.

Red Hat's mitigation

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.

ProductPackageStateAdvisory
Red Hat build of Apache Camel 4.8 for Spring Bootkafka-clientsFixed 2024-12-02RHSA-2024:10700
Streams for Apache Kafka 2.9.0Fixed 2025-03-05RHSA-2025:2416
Streams for Apache Kafka 2.9.1Fixed 2025-06-30RHSA-2025:9922
Streams for Apache Kafka 3.0.0Fixed 2025-08-01RHSA-2025:12511
A-MQ Clients 2kafka-clientsNot affected
Logging Subsystem for Red Hat OpenShiftorg.apache.kafka/kafka-clientsNot affected
Red Hat build of Apache Camel 4 for Quarkus 3kafka-clientsAffected
Red Hat build of Apicurio Registry 2kafka-clientsAffected
Red Hat build of Debezium 2kafka-clientsWill not fix
Red Hat build of Quarkuskafka-clientsNot affected
Red Hat Data Grid 8kafka-clientsWill not fix
Red Hat Fuse 7kafka-clientsOut of support scope
Red Hat Integration Camel K 1kafka-clientsOut of support scope
Red Hat JBoss Data Grid 7kafka-clientsOut of support scope
Red Hat JBoss Enterprise Application Platform 7kafka-clientsNot affected
Red Hat JBoss Enterprise Application Platform 8kafka-clientsNot affected
Red Hat JBoss Enterprise Application Platform 8org.jboss.eap-jboss-eap-xpNot affected
Red Hat JBoss Enterprise Application Platform Expansion Packkafka-clientsOut of support scope
Red Hat JBoss Enterprise Application Platform Expansion Packorg.jboss.eap-jboss-eap-xpOut of support scope
Red Hat Process Automation 7kafka-clientsOut 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.

Attack patterns (CAPEC)

  • CAPEC-150 Collect Data from Common Resource Locations Severity: Medium
  • CAPEC-639 Probe System Files Severity: Medium
  • CAPEC-58 Restful Privilege Elevation Likelihood: High · Severity: High
  • CAPEC-122 Privilege Abuse Likelihood: High · Severity: Medium
  • CAPEC-233 Privilege Escalation

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON