Apache Kafka Clients: Privilege escalation to filesystem read-access via automatic ConfigProvider
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Privilege escalation, Information disclosure
- Confidentiality · integrity · availability
- High · None · None
- Fix status
- Partial Red Hat: 4 fixed, 10 without a fix
Attack profile from CVSS 3.1 · CISA ADP. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-269 and CWE-552.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Apache | Apache Kafka Clients | 2.3.0 – 3.5.2; 3.6.0 – 3.6.2; 3.7.0 | — | No fix listed | CNA |
| — | org.apache.kafka:kafka-clients (Maven) | 2.3.0 to before 3.7.1 | 3.7.1 | Patch available | GHSA-2x2g-32r7-p4x8 |
- Apache Kafka Clients VendorApache Affected 2.3.0 – 3.5.2; 3.6.0 – 3.6.2; 3.7.0 Fixed in — No fix listed CNA
- org.apache.kafka:kafka-clients (Maven) Vendor— Affected 2.3.0 to before 3.7.1 Fixed in 3.7.1 Patch available GHSA-2x2g-32r7-p4x8
Remediation
- Fix · GHSA-2x2g-32r7-p4x8 org.apache.kafka:kafka-clients (Maven) Fixed in 3.7.1 Advisory →
Red Hat 4 advisories
- RHSA-2025:12511 Released 2025-08-01 · Red Hat rating ImportantStreams for Apache Kafka 3.0.0 release and security update
- Streams for Apache Kafka 3.0.0
- RHSA-2025:9922 Released 2025-06-30 · Red Hat rating ImportantStreams for Apache Kafka 2.9.1 release and security update
- Streams for Apache Kafka 2.9.1
- RHSA-2025:2416 Released 2025-03-05 · Red Hat rating ImportantStreams for Apache Kafka 2.9.0 release and security update
- Streams for Apache Kafka 2.9.0
Show 1 more Red Hat advisories
- RHSA-2024:10700 Released 2024-12-02 · Red Hat rating ImportantRed Hat Build of Apache Camel 4.8 for Spring Boot security update.
- Red Hat build of Apache Camel 4.8 for Spring Boot
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Data Grid 8 | Affected | No fix planned: Will not fix |
| Red Hat Fuse 7 | Affected | No fix planned: Out of support scope |
| Red Hat Integration Camel K 1 | Affected | No fix planned: Out of support scope |
| Red Hat JBoss Data Grid 7 | Affected | No fix planned: Out of support scope |
| Red Hat JBoss Enterprise Application Platform Expansion Pack | Affected | No fix planned: Out of support scope |
| Red Hat Process Automation 7 | Affected | No fix planned: Out of support scope |
| Red Hat build of Apache Camel 4 for Quarkus 3 | Affected | No fix yet |
| Red Hat build of Apicurio Registry 2 | Affected | No fix yet |
| Red Hat build of Debezium 2 | Affected | No fix planned: Will not fix |
| streams for Apache Kafka | Affected | No fix planned: Out of support scope |
| Red Hat build of Apache Camel 4.8 for Spring Boot | Fixed | RHSA-2024:10700 |
| Streams for Apache Kafka 2.9.0 | Fixed | RHSA-2025:2416 |
| Streams for Apache Kafka 2.9.1 | Fixed | RHSA-2025:9922 |
| Streams for Apache Kafka 3.0.0 | Fixed | RHSA-2025:12511 |
Not affected: 5 products
- A-MQ Clients 2
- Logging Subsystem for Red Hat OpenShift
- Red Hat JBoss Enterprise Application Platform 7
- Red Hat JBoss Enterprise Application Platform 8
- Red Hat build of Quarkus
Timeline
- 2026-10-02 Threatist record created from CVE-2024-31141
- 2026-10-03 Alias added: GHSA-2x2g-32r7-p4x8
References
Advisory 4
More Apache Kafka vulnerabilities
- TI-2025-20589 Apache Kafka Client: Arbitrary file read and SSRF vulnerability CVSS 3.1HIGH 7.5
- TI-2026-25947 Apache Kafka: Missing JWT token validation in OAUTHBEARER authentication CVSS 3.1CRITICAL 9.1
- TI-2018-12295 Improper input validation in Apache Kafka CVSS 3.0HIGH 8.8
- TI-2025-20590 Apache Kafka: Possible RCE attack via SASL JAAS LdapLoginModule configuration CVSS 3.1HIGH 8.8
- TI-2022-15706 Unauthenticated clients may cause OutOfMemoryError on Apache Kafka Brokers CVSS 3.1HIGH 7.5
- TI-2025-20591 Apache Kafka: Possible RCE/Denial of service attack via SASL JAAS JndiLoginModule configuration CVSS 3.1HIGH 7.5
Sources
- CVE-2024-31141 · CVE Program
- CVE-2024-31141 · NVD
- FIRST EPSS
- GHSA-2x2g-32r7-p4x8 · GitHub Advisory Database · CC BY 4.0
- CVE-2024-31141 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences