Cyber Resilience

CVE-2025-27817

High

Published: 10 June 2025

Published
10 June 2025
Modified
11 July 2025
KEV Added
Patch
CVSS Score v3.1 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS Score 0.2142 95.8th percentile
Risk Priority 28 60% EPSS · 20% KEV · 20% CVSS

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

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

apache
kafka
3.1.0 — 3.9.1

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.

addresses: CWE-918

Penetration testing attempts server-side requests to internal resources, identifying SSRF weaknesses for remediation.

addresses: CWE-918

Outbound connections to external resources can be monitored and limited at the boundary, reducing SSRF impact.

addresses: CWE-918

Validates server-side URLs and resource references to block SSRF attempts.

addresses: CWE-918

Detects server-side request forgery through monitoring of unexpected outbound connections.

References