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
    • Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • 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-2021-26919

CVE-2021-26919: Apache Druid JDBC RCE Vulnerability

CVE-2021-26919 is a remote code execution vulnerability in Apache Druid's JDBC functionality that allows attackers to execute arbitrary code via malicious MySQL servers. This article covers technical details, affected versions, and patches.

Published: February 25, 2026

CVE-2021-26919 Overview

Apache Druid allows users to read data from other database systems using JDBC. This functionality is intended to allow trusted users with the proper permissions to set up lookups or submit ingestion tasks. However, the MySQL JDBC driver supports certain properties which, if left unmitigated, can allow an attacker to execute arbitrary code from a hacker-controlled malicious MySQL server within Druid server processes. This vulnerability represents a significant risk for organizations running affected versions of Apache Druid, as it could allow authenticated attackers to fully compromise the underlying server infrastructure.

Critical Impact

Authenticated attackers can leverage malicious MySQL JDBC properties to achieve remote code execution on Apache Druid servers, potentially leading to complete system compromise.

Affected Products

  • Apache Druid versions prior to 0.20.2
  • Systems using MySQL JDBC driver with Apache Druid
  • Apache Druid installations configured with JDBC database lookups

Discovery Timeline

  • March 30, 2021 - CVE-2021-26919 published to NVD
  • November 21, 2024 - Last updated in NVD database

Technical Details for CVE-2021-26919

Vulnerability Analysis

This vulnerability exploits the MySQL JDBC connector's ability to process specific driver properties that can be abused for malicious purposes. When Apache Druid establishes JDBC connections to MySQL databases for lookups or ingestion tasks, an attacker with authenticated access can manipulate the connection parameters to point to a malicious MySQL server under their control.

The MySQL JDBC driver has been known to support properties such as autoDeserialize and queryInterceptors that, when combined with a rogue MySQL server, can trigger deserialization of malicious Java objects. This attack technique, sometimes referred to as a "MySQL JDBC deserialization attack," allows the attacker to inject arbitrary serialized payloads that get deserialized within the context of the Druid server process.

The impact of successful exploitation includes complete compromise of the Druid server, unauthorized access to sensitive data stored or processed by Druid, lateral movement within the network, and potential establishment of persistent backdoors.

Root Cause

The root cause of this vulnerability lies in insufficient validation and sanitization of JDBC connection properties passed to the MySQL driver. Apache Druid did not implement adequate allowlisting or blocklisting of dangerous MySQL JDBC properties before version 0.20.2. This allowed users with lookup or ingestion task permissions to specify arbitrary connection properties that could be exploited for remote code execution.

The MySQL Connector/J driver supports several dangerous properties including autoDeserialize, which when set to true, allows automatic deserialization of objects returned from server-side prepared statements. Combined with queryInterceptors or other properties, an attacker could craft a malicious MySQL server that returns serialized Java objects containing exploit payloads.

Attack Vector

The attack follows a network-based vector where an authenticated user with permissions to configure JDBC lookups or submit ingestion tasks can exploit this vulnerability. The attack requires the following conditions:

  1. The attacker must have valid authentication credentials to Apache Druid
  2. The attacker must have permissions to configure lookups or submit ingestion tasks
  3. The attacker must be able to host a malicious MySQL server that is network-accessible from the Druid server

The attacker configures a JDBC connection pointing to their malicious MySQL server with dangerous properties enabled. When Druid establishes the connection, the malicious server responds with specially crafted payloads that trigger code execution within the Druid JVM process. This exploitation technique leverages the trust relationship between the JDBC driver and the MySQL server, bypassing standard application-level security controls.

Detection Methods for CVE-2021-26919

Indicators of Compromise

  • Unexpected outbound connections from Druid servers to unknown MySQL server addresses
  • JDBC connection strings containing suspicious properties such as autoDeserialize=true or unusual queryInterceptors
  • Unusual process spawning from Java processes running Apache Druid
  • Modifications to lookup configurations or ingestion tasks by unauthorized users
  • Network traffic patterns indicating communication with rogue database servers

Detection Strategies

  • Monitor Druid audit logs for changes to JDBC lookup configurations and ingestion task submissions
  • Implement network monitoring to detect connections to unauthorized MySQL servers from Druid infrastructure
  • Deploy SentinelOne Singularity endpoint protection to detect and block malicious code execution attempts
  • Review JDBC connection strings in Druid configurations for dangerous MySQL driver properties
  • Implement Java deserialization monitoring to detect exploitation attempts

Monitoring Recommendations

  • Enable comprehensive logging for all Druid lookup and ingestion configuration changes
  • Configure network segmentation to restrict outbound database connections from Druid servers to approved destinations only
  • Deploy application-layer firewalls to inspect and filter JDBC traffic for malicious patterns
  • Establish baseline network behavior for Druid servers and alert on anomalous connection attempts

How to Mitigate CVE-2021-26919

Immediate Actions Required

  • Upgrade Apache Druid to version 0.20.2 or later immediately
  • Audit all existing JDBC lookup configurations and ingestion tasks for suspicious connection parameters
  • Review user permissions and restrict access to lookup and ingestion task configuration to only necessary personnel
  • Implement network-level controls to limit outbound database connections from Druid servers
  • Review recent configuration changes and authentication logs for signs of exploitation

Patch Information

Apache addressed this vulnerability in Apache Druid version 0.20.2. The fix implements proper validation and sanitization of MySQL JDBC connection properties, blocking dangerous parameters that could enable remote code execution. Organizations should upgrade to version 0.20.2 or the latest available version as soon as possible.

For detailed information about the security fix and upgrade instructions, refer to the Apache Druid Development Discussion and related Apache Druid Commit Updates.

Workarounds

  • Restrict network access from Druid servers to only approved and trusted MySQL database servers using firewall rules
  • Remove or disable JDBC lookup and ingestion functionality if not required for business operations
  • Implement strict role-based access control to limit which users can configure lookups or submit ingestion tasks
  • Deploy web application firewall rules to detect and block JDBC connection strings containing dangerous properties
  • Consider running Druid in an isolated network segment with strict egress filtering
bash
# Configuration example - Network restriction for Druid servers
# Add iptables rules to restrict outbound MySQL connections to approved servers only
iptables -A OUTPUT -p tcp --dport 3306 -d <approved_mysql_ip> -j ACCEPT
iptables -A OUTPUT -p tcp --dport 3306 -j DROP

# Enable audit logging for Druid configuration changes
# In druid runtime.properties:
# druid.audit.manager.type=log
# druid.audit.manager.auditEnabled=true

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechApache Druid

  • SeverityHIGH

  • CVSS Score8.8

  • EPSS Probability79.31%

  • 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
  • NVD-CWE-noinfo
  • Technical References
  • Apache Druid Development Discussion

  • Apache Druid Development Discussion

  • Apache Druid Commit Update

  • Apache Druid Commit Update

  • Apache Druid Development Discussion

  • Apache Druid Commit Update

  • Apache Druid Development Discussion

  • Apache Druid Development Discussion
  • Vendor Resources
  • Apache Druid Development Discussion
  • Related CVEs
  • CVE-2026-23906: Apache Druid Auth Bypass Vulnerability

  • CVE-2025-59390: Apache Druid Auth Bypass Vulnerability

  • CVE-2021-36749: Apache Druid Auth Bypass Vulnerability
Default Legacy - Prefooter | 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