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-27819

CVE-2025-27819: Apache Kafka RCE Vulnerability

CVE-2025-27819 is a remote code execution vulnerability in Apache Kafka brokers via SASL JAAS JndiLoginModule configuration. Attackers with AlterConfigs permission can exploit this flaw. This article covers technical details, affected versions, impact, and mitigation strategies.

Updated: January 22, 2026

CVE-2025-27819 Overview

CVE-2025-27819 is an Insecure Deserialization vulnerability affecting Apache Kafka brokers that enables Remote Code Execution (RCE) or Denial of Service (DoS) attacks through SASL JAAS JndiLoginModule configuration. This vulnerability is related to the previously disclosed CVE-2023-25194, which affected Kafka Connect API. However, CVE-2025-27819 reveals that Apache Kafka brokers themselves are also vulnerable to this attack vector. Exploitation requires the attacker to connect to the Kafka cluster and possess AlterConfigs permission on the cluster resource.

Critical Impact

Attackers with cluster access and AlterConfigs permission can achieve remote code execution or cause denial of service on Apache Kafka brokers through malicious SASL JAAS configuration.

Affected Products

  • Apache Kafka (versions prior to 3.4.0 without mitigation)
  • Apache Kafka (versions 3.4.0 to 3.9.0 with partial mitigation)
  • Apache Kafka (versions prior to 3.9.1/4.0.0 with incomplete default protections)

Discovery Timeline

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

Technical Details for CVE-2025-27819

Vulnerability Analysis

This vulnerability stems from the improper handling of SASL JAAS (Java Authentication and Authorization Service) configuration in Apache Kafka brokers. The JndiLoginModule and LdapLoginModule classes can be abused to perform JNDI (Java Naming and Directory Interface) injection attacks, a well-known exploitation technique in Java applications.

When an attacker with sufficient permissions (AlterConfigs on the cluster resource) modifies the SASL JAAS configuration, they can inject a malicious JNDI URL that points to an attacker-controlled server. Upon processing this configuration, the Kafka broker attempts to resolve the JNDI lookup, which can result in loading and executing arbitrary code from a remote location or exhausting system resources, leading to denial of service.

The vulnerability is classified under CWE-502 (Deserialization of Untrusted Data), as the core issue involves the unsafe deserialization of objects through JNDI lookups. This attack pattern has been observed in numerous Java vulnerabilities, including the infamous Log4Shell (CVE-2021-44228).

Root Cause

The root cause of this vulnerability lies in the default availability of dangerous login modules (com.sun.security.auth.module.JndiLoginModule and com.sun.security.auth.module.LdapLoginModule) within the SASL JAAS configuration mechanism. These modules support JNDI lookups that can be weaponized to load malicious objects from remote servers. Prior to Apache Kafka 3.4.0, there was no mechanism to disable these problematic login modules, leaving Kafka brokers exposed to JNDI injection attacks when an authenticated user with configuration privileges submits a malicious configuration.

Attack Vector

The attack requires network access to the Kafka cluster and authenticated access with AlterConfigs permission. An attacker exploits this vulnerability by submitting a specially crafted SASL JAAS configuration that references a malicious JNDI endpoint. When the broker processes this configuration, it performs a JNDI lookup to the attacker-controlled server, which can respond with a serialized Java object containing malicious code. Upon deserialization, this code executes within the context of the Kafka broker process, potentially allowing full system compromise or service disruption.

The attack flow involves: (1) authenticating to the Kafka cluster with appropriate permissions, (2) crafting a malicious SASL JAAS configuration with JndiLoginModule referencing an attacker-controlled LDAP/RMI server, (3) using the AlterConfigs API to apply this configuration, and (4) the Kafka broker processing the configuration and executing the JNDI lookup, leading to RCE or DoS.

Detection Methods for CVE-2025-27819

Indicators of Compromise

  • Unexpected outbound LDAP or RMI connections from Kafka broker hosts to external IP addresses
  • Configuration changes to SASL JAAS settings containing JndiLoginModule or LdapLoginModule references
  • Unusual AlterConfigs API calls targeting authentication-related cluster configurations
  • Anomalous process spawning or file system modifications on Kafka broker systems

Detection Strategies

  • Monitor Kafka audit logs for AlterConfigs operations that modify SASL or JAAS-related settings
  • Implement network monitoring to detect outbound JNDI-related traffic (LDAP on port 389/636, RMI on port 1099)
  • Deploy application-level firewalls or security controls to inspect Kafka Admin API requests for suspicious configuration patterns
  • Use SentinelOne Singularity platform to detect and block JNDI injection attempts and anomalous Java process behavior

Monitoring Recommendations

  • Enable comprehensive Kafka audit logging and forward logs to a SIEM for analysis
  • Establish baselines for legitimate configuration change patterns and alert on deviations
  • Monitor Java process behavior on Kafka broker hosts for indicators of code execution post-exploitation
  • Implement real-time alerting for any modifications to SASL JAAS configuration parameters

How to Mitigate CVE-2025-27819

Immediate Actions Required

  • Upgrade Apache Kafka to version 3.9.1 or 4.0.0 where both JndiLoginModule and LdapLoginModule are disabled by default
  • For Kafka versions 3.4.0 through 3.9.0, verify that the -Dorg.apache.kafka.disallowed.login.modules system property is properly configured
  • Review and restrict AlterConfigs permissions to only trusted administrators
  • Audit existing SASL JAAS configurations for any suspicious or unauthorized login module references

Patch Information

Apache Kafka has addressed this vulnerability through progressive security improvements. In Apache Kafka 3.4.0, a system property (-Dorg.apache.kafka.disallowed.login.modules) was introduced to disable problematic login modules, with com.sun.security.auth.module.JndiLoginModule disabled by default. In Apache Kafka 3.9.1 and 4.0.0, both com.sun.security.auth.module.JndiLoginModule and com.sun.security.auth.module.LdapLoginModule are disabled by default. Organizations should upgrade to the latest patched version and consult the Apache Kafka CVE List for detailed guidance.

Workarounds

  • For versions prior to 3.4.0, implement network-level controls to prevent outbound JNDI connections from Kafka brokers
  • Strictly limit AlterConfigs ACL permissions to a minimal set of trusted principals
  • Deploy a Java Security Manager policy to restrict JNDI lookups (note: Security Manager is deprecated in newer Java versions)
  • Implement application-layer filtering to block configuration changes containing dangerous login module references
bash
# Configuration example: Disable problematic login modules in Kafka broker startup
# Add this to your Kafka broker JVM options (kafka-server-start.sh or systemd unit file)
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 Score7.5

  • EPSS Probability0.97%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-502
  • 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