CVE-2025-27817 Details
Description
A possible arbitrary file read and SSRF vulnerability has been identified in Apache Kafka Client. Apache Kafka Clients accept configuration data for setting the SASL/OAUTHBEARER connection with the brokers, including "sasl.oauthbearer.token.endpoint.url" and "sasl.oauthbearer.jwks.endpoint.url". Apache Kafka allows clients to read an arbitrary file and return the content in the error log, or sending requests to an unintended location. In applications where Apache Kafka Clients configurations can be specified by an untrusted party, attackers may use the "sasl.oauthbearer.token.endpoint.url" and "sasl.oauthbearer.jwks.endpoint.url" configuratin to read arbitrary contents of the disk and environment variables or make requests to an unintended location. In particular, this flaw may be used in Apache Kafka Connect to escalate from REST API access to filesystem/environment/URL access, which may be undesirable in certain environments, including SaaS products. Since Apache Kafka 3.9.1/4.0.0, we have added a system property ("-Dorg.apache.kafka.sasl.oauthbearer.allowed.urls") to set the allowed urls in SASL JAAS configuration. In 3.9.1, it accepts all urls by default for backward compatibility. However in 4.0.0 and newer, the default value is empty list and users have to set the allowed urls explicitly.
An arbitrary file read and Server-Side Request Forgery (SSRF) vulnerability has been identified in Apache Kafka Client versions 3.1.0 prior to 3.9.0. This vulnerability arises from the client's ability to read arbitrary files and log their contents or send requests to unintended locations, based on configuration data for SASL/OAUTHBEARER connections with brokers. In environments where Kafka Client configurations can be controlled by untrusted parties, this vulnerability could be exploited to access sensitive disk contents, environment variables, or escalate privileges within Apache Kafka Connect from REST API access to filesystem or URL access, which could be problematic in certain environments, including SaaS products.
Users are advised to upgrade to Apache Kafka Client version 3.9.1 or 4.0.0 and set the JVM system property 'org.apache.kafka.sasl.oauthbearer.allowed.urls' to the desired value. In Kafka Connect, add appropriate 'allowlist.pattern' and 'allowed.paths' to restrict the operation of ConfigProviders to appropriate bounds.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jun 10, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| http://www.openwall.com/lists/oss-security/2025/06/09/1 | CVE | Mailing ListThird Party Advisory |
| https://kafka.apache.org/cve-list | [email protected] | Vendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-918 | Server-Side Request Forgery (SSRF) | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| apache kafka | >= 3.1.0, < 3.9.1 |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jul 11, 2025 | Initial Analysis | [email protected] |
| Jun 10, 2025 | CVE Modified | CISA-ADP |
| Jun 10, 2025 | New CVE Received | [email protected] |
| Jun 10, 2025 | CVE Modified | CVE |