Files or Directories Accessible to External Parties Affecting org.apache.kafka:kafka-clients package, versions [2.3.0,3.8.0)


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.04% (11th percentile)

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 IDSNYK-JAVA-ORGAPACHEKAFKA-8384362
  • published19 Nov 2024
  • disclosed19 Nov 2024
  • creditGreg Harris

Introduced: 19 Nov 2024

CVE-2024-31141  (opens in a new tab)
CWE-552  (opens in a new tab)

How 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:

  1. 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.

  2. Users of Kafka Connect with one of the above 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.

CVSS Scores

version 4.0
version 3.1