A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
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
    • AI 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-2024-39887

CVE-2024-39887: Apache Superset SQL Injection Vulnerability

CVE-2024-39887 is an SQL injection flaw in Apache Superset that allows attackers to bypass SQL authorization through unchecked engine-specific functions. This article covers technical details, affected versions, and mitigation.

Updated: May 15, 2026

CVE-2024-39887 Overview

CVE-2024-39887 is a SQL Injection vulnerability in Apache Superset caused by improper neutralization of special elements used in SQL commands [CWE-89]. The flaw resides in how Superset validates engine-specific SQL functions before query execution. Certain PostgreSQL functions are not checked, which allows authenticated attackers to bypass Apache Superset's SQL authorization controls and access restricted data. The vulnerability affects all versions of Apache Superset prior to 4.0.2. Apache addressed the issue by introducing a DISALLOWED_SQL_FUNCTIONS configuration key that blocks risky functions such as version, query_to_xml, inet_server_addr, and inet_client_addr.

Critical Impact

Attackers can bypass SQL authorization in Apache Superset to disclose database server information and execute restricted queries against connected PostgreSQL data sources.

Affected Products

  • Apache Superset versions before 4.0.2
  • Deployments connecting Superset to PostgreSQL backends
  • Self-hosted and containerized Superset installations

Discovery Timeline

  • 2024-07-16 - CVE-2024-39887 published to NVD
  • 2025-02-13 - Last updated in NVD database

Technical Details for CVE-2024-39887

Vulnerability Analysis

Apache Superset enforces SQL authorization by inspecting submitted queries before execution. The authorization layer fails to account for engine-specific functions exposed by underlying database drivers. Attackers craft queries that invoke PostgreSQL functions like query_to_xml to extract data from tables the user is not authorized to read. The function executes server-side with the privileges of the database connection rather than the Superset user, breaking the trust boundary Superset enforces in its SQL Lab and chart query paths.

Root Cause

The root cause is incomplete input validation in Superset's SQL parsing and authorization logic. The query inspector does not enumerate engine-specific function calls when evaluating whether a query touches restricted objects. Functions such as query_to_xml('SELECT * FROM restricted_table') accept a SQL string as an argument, which the parser treats as opaque data rather than a nested query subject to authorization checks.

Attack Vector

The vulnerability is exploitable over the network by an authenticated Superset user with permission to run queries through SQL Lab or chart creation. The attacker submits a query that calls a permitted top-level function while embedding a restricted query inside one of the engine-specific functions. The Superset authorization layer approves the outer query, the database executes the inner statement, and the results return to the attacker. The vulnerability mechanism is documented in the Apache Thread Discussion and the Openwall OSS-Security Announcement.

Detection Methods for CVE-2024-39887

Indicators of Compromise

  • Superset query logs containing calls to query_to_xml, version, inet_server_addr, or inet_client_addr from non-administrative users
  • PostgreSQL server logs showing unexpected XML serialization of tables outside the user's normal data scope
  • SQL Lab activity referencing system tables or metadata functions outside business hours

Detection Strategies

  • Audit the query table in the Superset metadata database for historical use of disallowed PostgreSQL functions
  • Enable PostgreSQL log_statement = 'all' on connected databases and correlate executed queries against Superset's authorization decisions
  • Alert on any query string containing engine-specific reflection functions issued by accounts without administrator privileges

Monitoring Recommendations

  • Forward Superset application logs and PostgreSQL query logs to a centralized SIEM for correlation
  • Track query patterns per user and flag deviations that include reflection or introspection functions
  • Review role and permission assignments quarterly to confirm SQL Lab access is restricted to users who require it

How to Mitigate CVE-2024-39887

Immediate Actions Required

  • Upgrade Apache Superset to version 4.0.2 or later, which contains the fix and the new DISALLOWED_SQL_FUNCTIONS configuration
  • Inventory all Superset deployments and confirm the running version against the affected range
  • Revoke SQL Lab access from any account that does not have a documented business need
  • Rotate PostgreSQL credentials used by Superset connections if abuse is suspected

Patch Information

Apache Superset 4.0.2 introduces the DISALLOWED_SQL_FUNCTIONS configuration key. By default, the patch blocks the PostgreSQL functions version, query_to_xml, inet_server_addr, and inet_client_addr. Administrators can extend the list with additional functions specific to their database engines. Patch details are available in the Apache Thread Discussion.

Workarounds

  • Restrict the database role used by Superset connections so that engine-specific reflection functions are denied at the database layer
  • Place Superset behind authenticated reverse proxies and limit SQL Lab access through role-based access control
  • Disable direct SQL Lab usage for non-analyst roles until the patched version is deployed
bash
# Configuration example - superset_config.py after upgrading to 4.0.2
DISALLOWED_SQL_FUNCTIONS = {
    'postgresql': {
        'version',
        'query_to_xml',
        'inet_server_addr',
        'inet_client_addr',
    }
}

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

  • Vulnerability Details
  • TypeSQLI

  • Vendor/TechApache Superset

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability55.72%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-89
  • Technical References
  • Openwall OSS-Security Announcement
  • Vendor Resources
  • Apache Thread Discussion
  • Related CVEs
  • CVE-2026-23969: Apache Superset SQLi Vulnerability

  • CVE-2026-23980: Apache Superset SQLi Vulnerability

  • CVE-2024-53947: Apache Superset SQL Injection Vulnerability

  • CVE-2024-34693: Apache Superset SQLi Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today 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