Skip to content
Fencer Vulns
high 7.5

CVE-2025-27817 in the critical feed json

Apache Kafka Client: Arbitrary file read and SSRF vulnerability

published 2025-06-10 16 mo ago modified 2026-09-10 1 mo ago also BIT-kafka-2025-27817 , EUVD-2025-17640 , GHSA-vgq5-3255-v292

cvss
7.5
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
69.8%
EPSS 69.8% chance of exploitation in 30 days, percentile 99.3%
public exploits
0
none known, plus a Nuclei check

Summary

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.

Patch / fix

  • maven org.apache.kafka:kafka-clients 3.9.1
  • bitnami kafka 3.9.1
  • apache kafka 3.9.1

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2025-27817 updated cvss 8.1

org.apache.kafka: Kafka Client Arbitrary File Read SSRF

  • Red Hat Streams for Apache Kafka 2.9.1
    fixed: vendor fix “To mitigate this flaw, explicitly set the allowed urls in SASL JAAS configuration using the system property "-Dorg.apache.kafka.sasl.oauthbearer.allowed.urls".” RHSA-2025:9922
  • Red Hat Streams for Apache Kafka 3.1.0
    fixed: vendor fix “To mitigate this flaw, explicitly set the allowed urls in SASL JAAS configuration using the system property "-Dorg.apache.kafka.sasl.oauthbearer.allowed.urls".” RHSA-2025:23417
  • Red Hat A-MQ Clients 2 kafka-clients Red Hat Logging Subsystem for Red Hat OpenShift kafka_2.11, kafka-clients Red Hat OpenShift Serverless openshift-serverless-1/kn-ekb-receiver-rhel8, openshift-serverless-1/kn-ekb-dispatcher-rhel8, openshift-serverless-1/kn-ekb-post-install-rhel8, openshift-serverless-1/kn-ekb-webhook-kafka-rhel8, openshift-serverless-1/kn-ekb-kafka-controller-rhel8, openshift-serverless-1/kn-eventing-istio-controller-rhel8 Red Hat build of Apache Camel 4 for Quarkus 3 quarkus-cxf-bom, quarkus-camel-bom Red Hat build of Apache Camel for Spring Boot 4 kafka_2.13, kafka-raft, connect-api, connect-file, connect-json, kafka-server, +11 more Red Hat build of Apicurio Registry 2 connect-api, connect-json, kafka-clients, kafka-streams
    +15 more products
    Red Hat build of Apicurio Registry 3 connect-api, connect-json, kafka-clients Red Hat build of Debezium 2 kafka_2.13, kafka-raft, connect-api, connect-file, connect-json, kafka-server, +9 more Red Hat build of Debezium 3 kafka_2.13, kafka-raft, connect-api, connect-file, connect-json, kafka-server, +11 more Red Hat build of Quarkus quarkus-bom Red Hat Data Grid 8 kafka-clients Red Hat Enterprise Linux 8 log4j, log4j-jcl, log4j-web, log4j-slf4j Red Hat Enterprise Linux 9 log4j, log4j-jcl, log4j-slf4j Red Hat Fuse 7 kafka, connect, kafka_2.12, kafka_2.13, kafka-raft, connect-api, +20 more Red Hat Integration Camel K 1 kafka_2.12, connect-api, kafka-tools, connect-file, connect-json, kafka-clients, +4 more Red Hat JBoss Enterprise Application Platform 7 kafka, connect, trogdor, generator, kafka_2.12, kafka_2.13, +39 more Red Hat JBoss Enterprise Application Platform 8 kafka, connect, trogdor, generator, kafka_2.12, kafka_2.13, +50 more Red Hat JBoss Enterprise Application Platform Expansion Pack kafka, connect, trogdor, generator, kafka_2.12, kafka_2.13, +50 more Red Hat Process Automation 7 kafka-clients Red Hat streams for Apache Kafka kafka, connect, trogdor, generator, kafka_2.13, kafka-raft, +45 more Red Hat streams for Apache Kafka 2 kafka, connect, trogdor, generator, kafka_2.13, kafka-raft, +53 more
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
none
Automatable
yes
Technical impact
partial
Assessed
16 mo ago

Exploit prediction

69.84% chance of exploitation in the next 30 days, higher than 99.3% of all scored CVEs (FIRST EPSS, 2026-11-08).

Exploits and checks

  • Nuclei template Apache Kafka Client - Arbitrary File Read nuclei detection template

CVSS scores

assigned by version score vector
CISA ADP 3.1 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
GitHub 3.1 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
CNA 3.1 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
OSV 3.1 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Affected packages

ecosystem package affected fixed in
maven org.apache.kafka:kafka-clients
>=3.1.0, <3.9.1
3.9.1
bitnami kafka
>=3.1.0, <3.9.1
3.9.1

Affected products

  • Apache Software Foundation Apache Kafka Client

Classification

Weakness
  • CWE-918 Server-Side Request Forgery

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.