CVE-2025-27817

HIGH EXPLOITED NUCLEI

Apache Kafka Client - Arbitrary File Read

Title source: nuclei

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.

Exploits (2)

nomisec WORKING POC 16 stars
by kk12-30 · infoleak
https://github.com/kk12-30/CVE-2025-27817
nomisec WORKING POC 5 stars
by iSee857 · infoleak
https://github.com/iSee857/CVE-2025-27817

Nuclei Templates (1)

Apache Kafka Client - Arbitrary File Read
HIGHVERIFIEDby 0x_Akoko
Shodan: http.title:"Apache kafka"
FOFA: title="Apache Kafka"

Scores

CVSS v3 7.5
EPSS 0.1993
EPSS Percentile 95.5%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Details

VulnCheck KEV 2026-04-08
CWE
CWE-918
Status published
Products (2)
apache/kafka 3.1.0 - 3.9.1
org.apache.kafka/kafka-clients 3.1.0 - 3.9.1Maven
Published Jun 10, 2025
Tracked Since Feb 18, 2026