# CVE-2024-31141: Apache Kafka Clients: Privilege escalation to filesystem read-access via automatic ConfigProvider

- Severity: Medium 6.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.36%, higher than 72% of CVEs (2026-12-01)
- Published: 2024-11-19T08:40:50.695Z
- Modified: 2026-09-10T03:50:20.287Z
- Also known as: GHSA-2x2g-32r7-p4x8
- Weaknesses: CWE-269, CWE-552
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: apache

## Description

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.

(As written by CVE List.)

## Affected

- org.apache.kafka:kafka-clients: from 2.3.0 up to 3.5.2; from 3.6.0 up to 3.6.2; 3.7.0
- org.apache.kafka:kafka-clients (Maven): from 2.3.0 before 3.7.1
- apache kafka: from 2.3.0 up to 3.5.2; from 3.6.0 up to 3.6.2; 3.7.0

## Every score

- CISA-ADP: 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`
- GitHub: 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`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N`

## References

- <https://lists.apache.org/thread/9whdzfr0zwdhr364604w5ssnzmg4v2lv> (mailing-list, vendor-advisory, web)
- <http://www.openwall.com/lists/oss-security/2024/11/18/5> (mailing-list, third-party-advisory, web)
- <https://security.netapp.com/advisory/ntap-20250131-0001/> (third-party-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-31141> (advisory)
- <https://github.com/apache/kafka> (package)
- <https://security.netapp.com/advisory/ntap-20250131-0001> (web)

## Sources

- CVE List: [CVE-2024-31141](https://www.cve.org/CVERecord?id=CVE-2024-31141), CVE Terms of Use, modified 2025-01-31
- GitHub Advisory Database: [GHSA-2x2g-32r7-p4x8](https://github.com/advisories/GHSA-2x2g-32r7-p4x8), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2024-31141](https://nvd.nist.gov/vuln/detail/CVE-2024-31141), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-31141 · Whole record: https://cve.day/CVE-2024-31141.json · Rebuilt by cve.day 2026-11-25T22:58:48.426Z
