Bug 2327264 (CVE-2024-31141) - CVE-2024-31141 kafka-clients: privilege escalation to filesystem read-access via automatic ConfigProvider
Summary: CVE-2024-31141 kafka-clients: privilege escalation to filesystem read-access ...
Keywords:
Status: NEW
Alias: CVE-2024-31141
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-11-19 09:01 UTC by OSIDB Bzimport
Modified: 2025-05-06 20:10 UTC (History)
85 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2024:10700 0 None None None 2024-12-02 16:06:23 UTC
Red Hat Product Errata RHSA-2024:10861 0 None None None 2024-12-05 16:20:31 UTC
Red Hat Product Errata RHSA-2025:2416 0 None None None 2025-03-05 20:59:37 UTC

Description OSIDB Bzimport 2024-11-19 09:01:00 UTC
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.

Comment 2 errata-xmlrpc 2024-12-02 16:06:18 UTC
This issue has been addressed in the following products:

  Red Hat build of Apache Camel 4.8 for Spring Boot

Via RHSA-2024:10700 https://access.redhat.com/errata/RHSA-2024:10700

Comment 4 errata-xmlrpc 2024-12-05 16:20:26 UTC
This issue has been addressed in the following products:

  Red Hat Build of Apache Camel 4.8 for Quarkus 3.15

Via RHSA-2024:10861 https://access.redhat.com/errata/RHSA-2024:10861

Comment 7 errata-xmlrpc 2025-03-05 20:59:32 UTC
This issue has been addressed in the following products:

  Streams for Apache Kafka 2.9.0

Via RHSA-2025:2416 https://access.redhat.com/errata/RHSA-2025:2416


Note You need to log in before you can comment on or make changes to this bug.