# CVE-2025-27817: Apache Kafka Client: Arbitrary file read and SSRF vulnerability

- Severity: High 7.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 70.1%, higher than 99% of CVEs (2026-12-01)
- Published: 2025-06-10T07:55:14.422Z
- Modified: 2026-09-10T03:50:25.468Z
- Also known as: GHSA-vgq5-3255-v292, BIT-KAFKA-2025-27817
- Weaknesses: CWE-918
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: apache

## 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.

(As written by CVE List.)

## Affected

- Apache Software Foundation Apache Kafka Client: from 3.1.0 up to 3.9.0
- org.apache.kafka:kafka-clients (Maven): from 3.1.0 before 3.9.1
- apache kafka: from 3.1.0 before 3.9.1
- kafka (Bitnami): from 3.1.0 before 3.9.1

## Every score

- CISA-ADP: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.1 7.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N/E:U`
- Bitnami Vulnerability Database: rating High

## References

- <https://kafka.apache.org/cve-list> (advisory, vendor-advisory, web)
- <http://www.openwall.com/lists/oss-security/2025/06/09/1> (advisory, mailing-list, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-27817> (advisory, web)
- <https://github.com/apache/kafka> (package)

## Sources

- CVE List: [CVE-2025-27817](https://www.cve.org/CVERecord?id=CVE-2025-27817), CVE Terms of Use, modified 2025-06-10
- GitHub Advisory Database: [GHSA-vgq5-3255-v292](https://github.com/advisories/GHSA-vgq5-3255-v292), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2025-27817](https://nvd.nist.gov/vuln/detail/CVE-2025-27817), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-KAFKA-2025-27817](https://osv.dev/vulnerability/BIT-KAFKA-2025-27817), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2025-27817 · Whole record: https://cve.day/CVE-2025-27817.json · Rebuilt by cve.day 2026-11-25T22:58:58.995Z
