S4E just found a high-severity finding from top 10 tcp port service scan
PlatformPlansPartners
Resources
ToolsBlogDocs
Sign Up →
high·Product Based Web Vulnerabilities·Updated Jan 28, 2026

CVE-2025-27817 Scanner

This scanner targets the 'sasl.oauthbearer.token.endpoint.url' configuration in Apache Kafka clients, allowing an attacker to read arbitrary files from the server.

Est. Time~1 minutes
Scan TypeSingle Scan
Targetsdomain, subdomain, ipv4
CostFree
3.5k
Times Used
continuous scan runs
5.8k
Continuously Checked
assets under CS
0
Vulnerabilities Found
confirmed findings
References
CVECVE-2025-27817
7.5
CVSShigh
Exploitable remotely over the internet · no authentication required.

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.

Attack Vector
Network
Privileges Req.
None
User Interaction
None
Affected
Apache Kafka Clientby Apache Software Foundation
3.1.0
Updated Sep 9, 2026View on NVD →
Detail

Apache Kafka is a distributed event streaming platform used by thousands of companies for high-performance data pipelines, streaming analytics, and mission-critical applications. It is utilized in various industries, including finance, retail, and healthcare, to unify data across distributed systems. With its robust architecture and scalability, Kafka is essential for enterprises handling large-scale real-time data streaming, supporting both publish-subscribe and message queue models.

CVE-2025-27817 is an arbitrary file read vulnerability in Apache Kafka's OAuth 2.0 authentication mechanism. It arises when the 'sasl.oauthbearer.token.endpoint.url' configuration is set to an untrusted URL, allowing the client to fetch tokens from a malicious endpoint that returns a crafted response containing file paths. The vulnerability stems from insufficient validation of the token endpoint URL, enabling an attacker to trick the client into reading arbitrary files from the server's filesystem.

Specifically, the vulnerability affects the Kafka client's OAuthBearer token retrieval process. When a client is configured with a malicious 'sasl.oauthbearer.token.endpoint.url', the client will make HTTP requests to that endpoint. If the endpoint returns a response that includes a file path (e.g., via a redirect or a crafted token), the client may read and expose the contents of that file. This can be exploited by an attacker who controls the token endpoint or can perform a man-in-the-middle attack.

If exploited, an attacker could read sensitive files such as configuration files, credentials, or private keys from the Kafka server or client machine. This could lead to further compromise of the Kafka cluster, data breaches, or lateral movement within the network. Given the critical role of Kafka in data pipelines, such an attack could have severe consequences for data integrity and confidentiality.

Solution Advice
  • Update Apache Kafka to version 4.0.0 or later, which includes a fix for CVE-2025-27817.
  • Set up an allowed URL policy using the '-Dorg.apache.kafka.sasl.oauthbearer.allowed.urls' system property to restrict which token endpoints can be used.
  • Regularly review and audit Kafka configurations to ensure no untrusted URLs are set for 'sasl.oauthbearer.token.endpoint.url'.
  • Implement robust access control mechanisms to safeguard sensitive configuration files and directories.
  • Use network segmentation and firewalls to restrict outbound connections from Kafka clients to only trusted endpoints.
  • Monitor Kafka logs for unusual HTTP requests or file access patterns that may indicate exploitation attempts.
  • Apply the principle of least privilege to Kafka client configurations, limiting the ability to modify OAuth settings.
  • Conduct regular security scans using tools like S4E to detect and remediate vulnerabilities in your Kafka deployment.

Get AI-powered remediation steps tailored to your asset.

Try AI Solutions →

Check your infrastructure.
Right now.

11,000+ scanners. Free to start. No credit card required.