Apache Kafka Client: Arbitrary file read and SSRF vulnerability
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- High · None · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CISA ADP. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-918 and the CVSS impact.
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Apache | Apache Kafka Client | 3.1.0 – 3.9.0 | — | No fix listed | CNA |
| — | org.apache.kafka:kafka-clients (Maven) | 3.1.0 to before 3.9.1 | 3.9.1 | Patch available | GHSA-vgq5-3255-v292 |
- Apache Kafka Client VendorApache Affected 3.1.0 – 3.9.0 Fixed in — No fix listed CNA
- org.apache.kafka:kafka-clients (Maven) Vendor— Affected 3.1.0 to before 3.9.1 Fixed in 3.9.1 Patch available GHSA-vgq5-3255-v292
Remediation
- Fix · GHSA-vgq5-3255-v292 org.apache.kafka:kafka-clients (Maven) Fixed in 3.9.1 Advisory →
Red Hat 2 advisories
- RHSA-2025:23417 Released 2025-12-16 · Red Hat rating ImportantStreams for Apache Kafka 3.1.0 release and security update
- Streams for Apache Kafka 3.1.0
- RHSA-2025:9922 Released 2025-06-30 · Red Hat rating ImportantStreams for Apache Kafka 2.9.1 release and security update
- Streams for Apache Kafka 2.9.1
Vendor assessments
Red Hat
Red Hat rating: Important. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Streams for Apache Kafka 2.9.1 | Fixed | RHSA-2025:9922 |
| Streams for Apache Kafka 3.1.0 | Fixed | RHSA-2025:23417 |
Not affected: 21 products
- A-MQ Clients 2
- Logging Subsystem for Red Hat OpenShift
- OpenShift Serverless
- Red Hat Data Grid 8
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
- Red Hat Fuse 7
- Red Hat Integration Camel K 1
- Red Hat JBoss Enterprise Application Platform 7
- Red Hat JBoss Enterprise Application Platform 8
- Red Hat JBoss Enterprise Application Platform Expansion Pack
- Red Hat Process Automation 7
- Red Hat build of Apache Camel 4 for Quarkus 3
- Red Hat build of Apache Camel for Spring Boot 4
- Red Hat build of Apicurio Registry 2
- Red Hat build of Apicurio Registry 3
- Red Hat build of Debezium 2
- Red Hat build of Debezium 3
- Red Hat build of Quarkus
- streams for Apache Kafka
- streams for Apache Kafka 2
Timeline
- 2026-10-02 Threatist record created from CVE-2025-27817
- 2026-10-03 Alias added: GHSA-vgq5-3255-v292
References
More Apache Kafka vulnerabilities
- TI-2026-25947 Apache Kafka: Missing JWT token validation in OAUTHBEARER authentication CVSS 3.1CRITICAL 9.1
- TI-2018-12295 Improper input validation in Apache Kafka CVSS 3.0HIGH 8.8
- TI-2025-20590 Apache Kafka: Possible RCE attack via SASL JAAS LdapLoginModule configuration CVSS 3.1HIGH 8.8
- TI-2022-15706 Unauthenticated clients may cause OutOfMemoryError on Apache Kafka Brokers CVSS 3.1HIGH 7.5
- TI-2025-20591 Apache Kafka: Possible RCE/Denial of service attack via SASL JAAS JndiLoginModule configuration CVSS 3.1HIGH 7.5
- TI-2019-09246 Cleartext transmission of sensitive information in Apache Kafka CVSS 3.1HIGH 7.5
Sources
- CVE-2025-27817 · CVE Program
- CVE-2025-27817 · NVD
- FIRST EPSS
- GHSA-vgq5-3255-v292 · GitHub Advisory Database · CC BY 4.0
- CVE-2025-27817 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences