The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2023-25194

CVE-2023-25194: Apache Kafka Connect RCE Vulnerability

CVE-2023-25194 is a remote code execution flaw in Apache Kafka Connect that exploits JNDI injection via SASL JAAS configuration. This article covers the technical details, affected versions, impact, and mitigation.

Published: February 11, 2026

CVE-2023-25194 Overview

A critical security vulnerability has been identified in Apache Kafka Connect API that allows authenticated attackers to achieve remote code execution through JNDI injection. The vulnerability exists in the handling of SASL JAAS configurations, where an authenticated operator with access to a Kafka Connect worker can manipulate connector configurations to trigger malicious LDAP lookups and subsequent Java deserialization attacks.

When configuring connectors via the Kafka Connect REST API, an authenticated operator can set the sasl.jaas.config property to use com.sun.security.auth.module.JndiLoginModule. This can be accomplished through the producer.override.sasl.jaas.config, consumer.override.sasl.jaas.config, or admin.override.sasl.jaas.config properties. By exploiting this misconfiguration, an attacker can force the server to connect to a malicious LDAP server and deserialize untrusted LDAP responses, potentially leading to unrestricted deserialization of untrusted data or full remote code execution when compatible gadget chains are present in the classpath.

Critical Impact

Authenticated attackers can achieve remote code execution on Kafka Connect servers through JNDI injection and Java deserialization attacks, potentially compromising entire data streaming infrastructure.

Affected Products

  • Apache Kafka Connect versions 2.3.0 through 3.3.x (default vulnerable configuration since 3.0.0)
  • Apache Kafka Connect versions prior to 3.0.0 (vulnerable with non-default connector client override policies)
  • Systems with vulnerable deserialization gadget chains in the classpath

Discovery Timeline

  • 2023-02-07 - CVE CVE-2023-25194 published to NVD
  • 2025-03-25 - Last updated in NVD database

Technical Details for CVE-2023-25194

Vulnerability Analysis

This vulnerability is classified as Insecure Deserialization (CWE-502) and represents a severe threat to organizations running Apache Kafka Connect clusters. The attack chain combines JNDI injection with Java deserialization vulnerabilities, a well-known attack pattern that has been leveraged in numerous high-profile security incidents including Log4Shell.

The core issue stems from insufficient restrictions on the SASL JAAS configuration parameters that can be specified through the Kafka Connect REST API. Since Apache Kafka 3.0.0, users are allowed to specify these properties in connector configurations by default. Prior to version 3.0.0, this was only possible if administrators explicitly configured a permissive connector client override policy.

Root Cause

The root cause is the unrestricted ability for authenticated operators to configure the JndiLoginModule as part of the SASL authentication mechanism for Kafka connectors. The com.sun.security.auth.module.JndiLoginModule performs JNDI lookups that can be redirected to attacker-controlled LDAP servers. When the Kafka Connect server processes the malicious LDAP response, it deserializes the returned object without proper validation, enabling exploitation of any deserialization gadget chains present in the application's classpath.

Attack Vector

The attack requires network access and low-privilege authentication to the Kafka Connect REST API. An attacker must be able to create or modify connector configurations on a Kafka Connect worker. The exploitation flow involves:

  1. The attacker authenticates to the Kafka Connect REST API with valid credentials
  2. A connector configuration is created or modified with a malicious sasl.jaas.config value pointing to the attacker's LDAP server
  3. When the connector attempts to authenticate, it contacts the attacker's LDAP server
  4. The LDAP server responds with a serialized Java object containing a malicious gadget chain
  5. The Kafka Connect server deserializes the object, executing the attacker's payload

The specific configuration parameters that can be abused include:

  • producer.override.sasl.jaas.config
  • consumer.override.sasl.jaas.config
  • admin.override.sasl.jaas.config

Detection Methods for CVE-2023-25194

Indicators of Compromise

  • Unexpected outbound LDAP connections (port 389/636) from Kafka Connect servers to unknown external hosts
  • Connector configurations containing references to JndiLoginModule or com.sun.security.auth.module.JndiLoginModule
  • Suspicious REST API calls to Kafka Connect endpoints modifying sasl.jaas.config properties
  • Unusual process execution or network activity originating from Kafka Connect worker processes

Detection Strategies

  • Monitor Kafka Connect REST API logs for connector configuration changes involving SASL JAAS properties
  • Implement network segmentation rules that alert on outbound LDAP traffic from Kafka Connect infrastructure
  • Deploy endpoint detection rules to identify deserialization attack patterns and suspicious Java process behavior
  • Audit connector configurations periodically for unauthorized or suspicious JNDI-related settings

Monitoring Recommendations

  • Enable detailed logging for Kafka Connect REST API authentication and configuration changes
  • Configure alerts for any modifications to connector client override properties
  • Monitor for new or modified connectors that specify custom SASL configurations
  • Implement real-time monitoring of outbound network connections from Kafka Connect workers

How to Mitigate CVE-2023-25194

Immediate Actions Required

  • Upgrade to Apache Kafka 3.4.0 or later where JndiLoginModule is disabled by default
  • For versions prior to 3.4.0, add the JVM system property -Dorg.apache.kafka.disallowed.login.modules=com.sun.security.auth.module.JndiLoginModule to disable the problematic login module
  • Audit all existing connector configurations for suspicious SASL JAAS settings
  • Restrict network egress from Kafka Connect workers to prevent connections to unauthorized LDAP servers

Patch Information

Apache has addressed this vulnerability in Kafka 3.4.0 by disabling the com.sun.security.auth.module.JndiLoginModule by default. The fix introduces a system property (-Dorg.apache.kafka.disallowed.login.modules) that administrators can use to explicitly disable problematic login modules. Organizations should upgrade to version 3.4.0 or later to benefit from this protection. For detailed patch information, refer to the Apache Kafka CVE List and the Apache Mailing List Discussion.

Workarounds

  • Implement a custom connector client config override policy to restrict which Kafka client properties can be overridden in connector configurations
  • Validate all connector configurations before deployment and reject any containing JNDI-related configurations
  • Review and remove unnecessary deserialization gadget libraries from the Kafka Connect classpath where possible
  • Implement strict network controls to block outbound LDAP traffic from Kafka Connect infrastructure
bash
# Configuration example - Disable JndiLoginModule in Kafka Connect
# Add to your Kafka Connect startup script or environment
export KAFKA_OPTS="-Dorg.apache.kafka.disallowed.login.modules=com.sun.security.auth.module.JndiLoginModule"

# Or add to connect-distributed.sh / connect-standalone.sh
# KAFKA_OPTS="-Dorg.apache.kafka.disallowed.login.modules=com.sun.security.auth.module.JndiLoginModule"

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechApache Kafka

  • SeverityHIGH

  • CVSS Score8.8

  • EPSS Probability94.06%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-502
  • Technical References
  • Packet Storm RCE Exploit
  • Vendor Resources
  • Apache Kafka CVE List

  • Apache Mailing List Discussion
  • Related CVEs
  • CVE-2025-27818: Apache Kafka RCE Vulnerability

  • CVE-2025-27819: Apache Kafka RCE Vulnerability

  • CVE-2024-31141: Apache Kafka Privilege Escalation Flaw

  • CVE-2025-27817: Apache Kafka Client SSRF Vulnerability
Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English