A Leader in the 2025 Gartner® Magic Quadrant™ for Endpoint Protection Platforms. Five years running.A Leader in the Gartner® Magic Quadrant™Read the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI Security Portfolio
      Leading the Way in AI-Powered Security Solutions
    • 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
    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
    Identity Security
    • Singularity Identity
      Identity Threat Detection and Response
  • 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
      Digital Forensics, IRR & Breach Readiness
    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
    • 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-2025-27818

CVE-2025-27818: Apache Kafka RCE Vulnerability

CVE-2025-27818 is a remote code execution vulnerability in Apache Kafka affecting clusters since version 2.0.0. Attackers with connector modification privileges can exploit LDAP deserialization to execute code. This article covers technical details, affected versions, impact assessment, and mitigation strategies.

Updated: January 22, 2026

CVE-2025-27818 Overview

A critical insecure deserialization vulnerability has been identified in Apache Kafka that allows authenticated operators to achieve remote code execution through malicious LDAP response deserialization. The vulnerability exists in the SASL JAAS configuration handling of Kafka Connect, where an attacker with access to alterConfig permissions on the cluster resource or Kafka Connect worker can configure connectors to use the com.sun.security.auth.module.LdapLoginModule, redirecting connections to an attacker-controlled LDAP server that responds with malicious serialized Java objects.

Critical Impact

Authenticated attackers can achieve unrestricted deserialization of untrusted data leading to Remote Code Execution (RCE) on Kafka Connect servers when vulnerable gadget chains exist in the classpath.

Affected Products

  • Apache Kafka versions from 2.0.0 through 3.9.0
  • Apache Kafka Connect versions from 2.3.0 through 3.9.0
  • Apache Kafka 4.0.0 releases prior to the security fix

Discovery Timeline

  • 2025-06-10 - CVE CVE-2025-27818 published to NVD
  • 2025-07-11 - Last updated in NVD database

Technical Details for CVE-2025-27818

Vulnerability Analysis

This vulnerability (CWE-502: Deserialization of Untrusted Data) enables remote code execution through a multi-stage attack chain targeting the SASL JAAS configuration mechanism in Apache Kafka. The flaw allows authenticated operators with connector configuration privileges to abuse the sasl.jaas.config property by specifying the LdapLoginModule as the authentication module. When Kafka Connect attempts to authenticate using this configuration, it connects to an attacker-specified LDAP server. The attacker's LDAP server responds with serialized Java objects that, when deserialized by the Kafka Connect process, can trigger arbitrary code execution if exploitable gadget chains exist in the application's classpath.

The vulnerability is particularly dangerous because since Apache Kafka 3.0.0, users are permitted to specify these SASL override properties in connector configurations for Kafka Connect clusters running with default configurations. Prior to version 3.0.0, exploitation required the cluster to be explicitly reconfigured with a connector client override policy that permits these properties.

Root Cause

The root cause lies in the insecure handling of LDAP responses during SASL authentication when using the LdapLoginModule. The Kafka Connect framework allows operators to configure the sasl.jaas.config property through multiple override mechanisms (producer.override.sasl.jaas.config, consumer.override.sasl.jaas.config, or admin.override.sasl.jaas.config). When this property is set to use com.sun.security.auth.module.LdapLoginModule, the application deserializes LDAP responses without proper validation, creating a classic Java deserialization attack surface that can be exploited through gadget chains present in the classpath.

Attack Vector

The attack requires network access and low-privileged authentication to the Kafka cluster or Connect worker. An attacker exploits this vulnerability by:

  1. Gaining authenticated access with permissions to create or modify connector configurations
  2. Creating or modifying a connector configuration to set the sasl.jaas.config property to use LdapLoginModule with an attacker-controlled LDAP server URL
  3. Waiting for the connector to attempt SASL authentication, triggering a connection to the malicious LDAP server
  4. Responding from the malicious LDAP server with a serialized Java object containing a gadget chain
  5. Achieving code execution when Kafka Connect deserializes the malicious response

The vulnerability can be triggered through the Kafka Connect REST API when configuring connectors, or through the AlterConfig command when modifying broker configurations directly.

Detection Methods for CVE-2025-27818

Indicators of Compromise

  • Connector configurations containing sasl.jaas.config properties referencing LdapLoginModule or JndiLoginModule
  • Outbound LDAP connections (port 389/636) from Kafka Connect workers to unexpected external IP addresses
  • Connector configurations with producer.override.sasl.jaas.config, consumer.override.sasl.jaas.config, or admin.override.sasl.jaas.config properties pointing to untrusted LDAP servers
  • Unexpected Java process spawning or unusual network activity from Kafka Connect JVM processes

Detection Strategies

  • Monitor Kafka Connect REST API logs for connector configuration changes involving sasl.jaas.config properties
  • Implement network monitoring to detect and alert on outbound LDAP connections from Kafka infrastructure to non-whitelisted destinations
  • Audit connector configurations periodically for suspicious JAAS login module references
  • Deploy runtime application security monitoring to detect deserialization attacks and unusual class loading patterns

Monitoring Recommendations

  • Enable detailed audit logging for Kafka Connect configuration changes through the REST API
  • Implement egress filtering and monitoring for Kafka Connect workers to detect unauthorized LDAP connections
  • Set up alerts for connector modifications that include SASL-related override properties
  • Monitor for Java deserialization attack patterns in endpoint detection solutions

How to Mitigate CVE-2025-27818

Immediate Actions Required

  • Upgrade Apache Kafka to version 3.9.1 or 4.0.0 or later, which includes default blocking of problematic login modules
  • Validate all existing connector configurations and remove any untrusted LDAP configurations from sasl.jaas.config properties
  • Examine connector dependencies for vulnerable versions and upgrade or remove affected connectors
  • Implement network segmentation to restrict outbound LDAP connections from Kafka Connect workers

Patch Information

Apache has released security patches in Apache Kafka versions 3.9.1 and 4.0.0 that disable the problematic login modules by default. The fix introduces a system property (-Dorg.apache.kafka.disallowed.login.modules) that can be used to disable vulnerable login modules in SASL JAAS configurations. By default, com.sun.security.auth.module.JndiLoginModule and com.sun.security.auth.module.LdapLoginModule are now disabled in Apache Kafka Connect 3.9.1/4.0.0. For detailed patch information, refer to the Apache Kafka CVE List.

Workarounds

  • Enable the disallowed login modules system property by adding -Dorg.apache.kafka.disallowed.login.modules=com.sun.security.auth.module.JndiLoginModule,com.sun.security.auth.module.LdapLoginModule to Kafka Connect startup parameters
  • Implement a custom connector client config override policy to restrict which Kafka client properties can be overridden in connector configurations
  • Restrict network egress from Kafka Connect workers to only allow connections to known, trusted Kafka brokers and schema registries
  • Review and limit user permissions to only allow trusted operators to create or modify connector configurations
bash
# Configuration example - Add to Kafka Connect startup script
export KAFKA_OPTS="-Dorg.apache.kafka.disallowed.login.modules=com.sun.security.auth.module.JndiLoginModule,com.sun.security.auth.module.LdapLoginModule"

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 Probability0.34%

  • 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
  • OpenWall OSS Security Post
  • Vendor Resources
  • Apache Kafka CVE List
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
  • English
  • 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