Files or Directories Accessible to External Parties Affecting org.apache.kafka:kafka-clients package, versions [2.3.0,3.8.0)
Do your applications use this vulnerable package?
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applications- Snyk ID SNYK-JAVA-ORGAPACHEKAFKA-8384362
- published 19 Nov 2024
- disclosed 19 Nov 2024
- credit Greg Harris
Introduced: 19 Nov 2024
New CVE-2024-31141 Open this link in a new tabHow to fix?
Upgrade org.apache.kafka:kafka-clients
to version 3.8.0 or higher.
Overview
org.apache.kafka:kafka-clients is a streaming platform that can publish and subscribe to streams of records, store streams of records in a fault-tolerant durable way, and process streams of records as they occur.
Affected versions of this package are vulnerable to Files or Directories Accessible to External Parties through ConfigProviders
interface, including the FileConfigProvider
, DirectoryConfigProvider
, and EnvVarConfigProvider
class objects, which allows attackers to read arbitrary contents of the disk and environment variables.
Note:
Users should upgrade to the fixed version, and it is recommended that the JVM system property be set to
org.apache.kafka.automatic.config.providers=none
.Users of Kafka Connect with one of the above ConfigProvider implementations specified in their worker config are also recommended to add appropriate
allowlist.pattern
andallowed.paths
to restrict their operation to appropriate bounds.