← Vulnerability feed

Vulnerability record · CVE-2025-27817 · published 10 June 2025

CVE-2025-27817: Apache Kafka Client arbitrary file read and SSRF via SASL/OAUTHBEARER URLs

Apache · Kafka

Apache Kafka Clients accept SASL/OAUTHBEARER configuration values such as sasl.oauthbearer.token.endpoint.url and sasl.oauthbearer.jwks.endpoint.url, and use them without restricting the target. When an untrusted party can set client configuration, these values can point at local files or arbitrary URLs, causing file contents or environment variables to be returned in error logs or requests to be sent to unintended locations. This matters because Kafka Connect can turn REST API access into filesystem, environment and URL access, which is risky in shared and SaaS environments.

7.5 CVSS 3.1 High EPSS 69% · top 0.7% CWE-918 · Server-side request forgery (SSRF)
7.5CVSS 3.1 base score
69%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
2References
17 Jun 2026Last modified by NVD

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.

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Automated analysis

Generated by VULONE's analysis model from the NVD record, CISA KEV and EPSS data on 19 September 2026. Confidence: high.

high priorityCVSS 7.5 with network reachability, no privileges or interaction, high confidentiality impact, and very high EPSS despite no KEV listing.

What it is

Apache Kafka Clients accept SASL/OAUTHBEARER configuration values such as sasl.oauthbearer.token.endpoint.url and sasl.oauthbearer.jwks.endpoint.url, and use them without restricting the target. When an untrusted party can set client configuration, these values can point at local files or arbitrary URLs, causing file contents or environment variables to be returned in error logs or requests to be sent to unintended locations. This matters because Kafka Connect can turn REST API access into filesystem, environment and URL access, which is risky in shared and SaaS environments.

Impact

An attacker gains read access to arbitrary files and environment variables on the host, and can make the Kafka client issue requests to attacker-chosen or internal locations. In Kafka Connect this can escalate from REST API access to filesystem and environment disclosure.

Attack surface

Reached over the network through Kafka client configuration, including Kafka Connect's REST API, with no authentication or user interaction required per the CVSS vector (AV:N/AC:L/PR:N/UI:N). Exploitation requires that an untrusted party can influence the SASL/OAUTHBEARER endpoint URL settings.

Exploitation

Not listed in CISA KEV, but EPSS is high at 0.688 (99.3rd percentile), indicating elevated likelihood of attempted exploitation. References are vendor advisory and mailing list only, with no public exploit or in-the-wild tag.

What to do

  • Upgrade to Apache Kafka 3.9.1 or 4.0.0 and newer; on 4.0.0+ the allowed URL list defaults to empty and must be set explicitly.
  • Set the system property -Dorg.apache.kafka.sasl.oauthbearer.allowed.urls to the exact trusted OAuth/JWKS endpoints in use.
  • Do not allow untrusted parties to supply Kafka client SASL/OAUTHBEARER configuration, especially via Kafka Connect REST API.
  • Restrict Kafka Connect REST API access to trusted networks and authenticated administrators.
  • Review existing client and connector configurations for unexpected sasl.oauthbearer.token.endpoint.url or sasl.oauthbearer.jwks.endpoint.url values.

Detection

  • Search Kafka client and Connect logs for error entries containing file contents or environment variable values returned from OAuth/JWKS endpoint resolution.
  • Monitor outbound network connections from Kafka clients and Connect workers to unexpected hosts, including internal metadata or loopback addresses.
  • Audit Kafka Connect REST API calls that create or modify connector configurations containing sasl.oauthbearer.* URL settings.
  • Alert on configuration changes that set sasl.oauthbearer.token.endpoint.url or sasl.oauthbearer.jwks.endpoint.url to file:// or non-approved hosts.

This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

LinkTags
https://kafka.apache.org/cve-list Vendor Advisory
http://www.openwall.com/lists/oss-security/2025/06/09/1 Mailing ListThird Party Advisory

Track CVE-2025-27817 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

9.1CVE-2026-33557Apache kafka vulnerabilityA possible security vulnerability has been identified in Apache Kafka. By default, the broker property `sasl.oauthbearer.jwt.validator.class` is set …EPSS 0.93%8.8CVE-2025-27818Apache kafka deserialization of untrusted data vulnerabilityA possible security vulnerability has been identified in Apache Kafka. This requires access to a alterConfig to the cluster resource, or Kafka Connec…EPSS 1.0%8.8CVE-2018-17196Apache kafka vulnerabilityIn Apache Kafka versions between 0.11.0.0 and 2.1.0, it is possible to manually craft a Produce request which bypasses transaction/idempotent ACL val…EPSS 5.5%8.7CVE-2026-35554Apache kafka race condition vulnerabilityA race condition in the Apache Kafka Java producer client’s buffer pool management can cause messages to be silently delivered to incorrect topics. W…EPSS 0.65%7.5CVE-2025-27819Apache kafka deserialization of untrusted data vulnerabilityIn CVE-2023-25194, we announced the RCE/Denial of service attack via SASL JAAS JndiLoginModule configuration in Kafka Connect API. But not only Kafka…EPSS 1.0%7.5CVE-2022-34917Apache kafka allocation without limits vulnerabilityA security vulnerability has been identified in Apache Kafka. It affects all releases since 2.8.0. The vulnerability allows malicious unauthenticated…EPSS 1.5%7.5CVE-2019-12399Apache kafka cleartext transmission vulnerabilityWhen Connect workers in Apache Kafka 2.0.0, 2.0.1, 2.1.0, 2.1.1, 2.2.0, 2.2.1, or 2.3.0 are configured with one or more config providers, and a conne…EPSS 3.9%7.4CVE-2024-27309Apache kafka incorrect authorization vulnerabilityWhile an Apache Kafka cluster is being migrated from ZooKeeper mode to KRaft mode, in some cases ACLs will not be correctly enforced. Two preconditio…EPSS 1.1%

Source: NIST National Vulnerability Database (record CVE-2025-27817), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.