CVE-2025-27817
Published: 10 June 2025
Summary
CVE-2025-27817 is a high-severity SSRF (CWE-918) vulnerability in Apache Kafka. Its CVSS base score is 7.5 (High).
Operationally, ranked in the top 4.2% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog.
Deeper analysis
A possible arbitrary file read and SSRF vulnerability exists in Apache Kafka Clients. The issue stems from the client's acceptance of unvalidated configuration values for SASL/OAUTHBEARER connections, specifically the "sasl.oauthbearer.token.endpoint.url" and "sasl.oauthbearer.jwks.endpoint.url" properties. When these values are supplied by an untrusted party, the client can be directed to read arbitrary local files (including environment variables) or issue requests to unintended network locations, with the retrieved content surfaced in error logs. The flaw is particularly relevant to Apache Kafka Connect deployments where configuration can be supplied through the REST API.
An attacker with the ability to influence Kafka client configuration—such as through a compromised or multi-tenant Connect deployment—can leverage the properties to obtain filesystem contents or perform SSRF. This grants access to sensitive data on disk or environment variables and may allow requests to internal services that would otherwise be unreachable. The CVSS 7.5 score reflects network-exploitable confidentiality impact without authentication or user interaction.
Advisories from the Apache Kafka project and the oss-security mailing list describe the addition of the system property "-Dorg.apache.kafka.sasl.oauthbearer.allowed.urls" starting in versions 3.9.1 and 4.0.0. Version 3.9.1 retains permissive defaults for backward compatibility, while 4.0.0 and later default to an empty allow list, requiring explicit configuration of permitted endpoints.
The EPSS score rose from lower values after disclosure to a peak of 0.2509 on 2026-05-05 before receding to the current 0.2142, indicating measurable post-publication exploitation interest.
EU & UK References
- 🇪🇺 ENISA EUVD: EUVD-2025-17640
Vulnerability details
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…
more
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.
- CWE(s)
Related Threats
No named actor attribution yet. ATT&CK technique mapping in progress for this CVE.
Affected Assets
Mitigating Controls
Likely Mitigating Controls AI
Per-CVE control mapping for this CVE has not run yet; the list below is derived from the weakness types (CWEs) cited in the NVD entry.
Penetration testing attempts server-side requests to internal resources, identifying SSRF weaknesses for remediation.
Outbound connections to external resources can be monitored and limited at the boundary, reducing SSRF impact.
Validates server-side URLs and resource references to block SSRF attempts.
Detects server-side request forgery through monitoring of unexpected outbound connections.