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
    • 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 SQLi Vulnerability

CVE-2024-39887 is an SQL injection vulnerability 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: January 22, 2026

CVE-2024-39887 Overview

CVE-2024-39887 is a SQL Injection vulnerability in Apache Superset that arises from improper neutralization of special elements used in SQL commands. Specifically, certain engine-specific functions are not checked, which allows attackers to bypass Apache Superset's SQL authorization mechanisms. This vulnerability enables unauthorized access to sensitive data and potential manipulation of backend database systems.

Critical Impact

Unauthenticated remote attackers can bypass SQL authorization controls and execute arbitrary SQL commands against the underlying database, potentially leading to complete data compromise, unauthorized data modification, or denial of service.

Affected Products

  • Apache Superset versions before 4.0.2
  • All Apache Superset deployments using PostgreSQL databases with vulnerable engine-specific functions
  • Self-hosted and cloud-based Apache Superset installations without the DISALLOWED_SQL_FUNCTIONS configuration

Discovery Timeline

  • July 16, 2024 - CVE-2024-39887 published to NVD
  • February 13, 2025 - Last updated in NVD database

Technical Details for CVE-2024-39887

Vulnerability Analysis

This SQL Injection vulnerability exists within Apache Superset's SQL parsing and authorization layer. The core issue lies in the incomplete validation of SQL queries before execution. While Apache Superset implements SQL authorization controls to prevent unauthorized database operations, certain PostgreSQL engine-specific functions were not included in the security checks.

The vulnerable functions that bypass SQL authorization include version, query_to_xml, inet_server_addr, and inet_client_addr. An attacker can craft malicious SQL queries using these functions to extract sensitive information about the database server, including version details, internal network information, and potentially leverage these capabilities for further exploitation.

The network-based attack vector with no authentication required makes this vulnerability particularly dangerous in environments where Apache Superset is exposed to untrusted networks.

Root Cause

The root cause of CVE-2024-39887 is the incomplete implementation of SQL function allowlisting within Apache Superset's SQL authorization framework. The application failed to account for PostgreSQL-specific functions that can be abused to leak sensitive information or bypass intended security controls.

The SQL parser did not properly sanitize or block engine-specific functions, allowing these functions to execute without being subjected to the same authorization checks applied to standard SQL commands. This oversight in the input validation logic created an exploitable gap in the security model.

Attack Vector

The attack vector for this vulnerability is network-based, requiring no authentication or user interaction. An attacker with network access to the Apache Superset instance can exploit this vulnerability by:

  1. Crafting SQL queries that include PostgreSQL-specific functions like version(), query_to_xml(), inet_server_addr(), or inet_client_addr()
  2. Submitting these queries through Superset's SQL Lab or other query interfaces
  3. Bypassing the SQL authorization layer due to the unchecked functions
  4. Extracting sensitive database information or performing unauthorized operations

The vulnerability allows attackers to enumerate database server information, discover internal network topology, and potentially chain this with other attack techniques to achieve broader system compromise.

Detection Methods for CVE-2024-39887

Indicators of Compromise

  • Unusual SQL queries containing PostgreSQL-specific functions such as version(), query_to_xml(), inet_server_addr(), or inet_client_addr() in application logs
  • Unexpected database information disclosure or error messages revealing server metadata
  • Anomalous query patterns originating from the Superset application layer
  • Database audit logs showing execution of system information functions

Detection Strategies

  • Implement database query logging and monitor for the use of known vulnerable functions (version, query_to_xml, inet_server_addr, inet_client_addr)
  • Deploy web application firewall (WAF) rules to detect SQL injection patterns targeting PostgreSQL-specific functions
  • Enable Apache Superset application logging and audit query submissions for suspicious patterns
  • Use SentinelOne Singularity Platform to monitor for exploitation attempts and anomalous database activity

Monitoring Recommendations

  • Configure real-time alerting for SQL queries containing the identified vulnerable PostgreSQL functions
  • Establish baseline query patterns and alert on deviations that may indicate exploitation attempts
  • Monitor network traffic between Superset and database servers for unusual data exfiltration patterns
  • Implement database activity monitoring (DAM) solutions to detect unauthorized function execution

How to Mitigate CVE-2024-39887

Immediate Actions Required

  • Upgrade Apache Superset to version 4.0.2 or later immediately
  • Configure the new DISALLOWED_SQL_FUNCTIONS configuration key to block vulnerable functions
  • Review application and database logs for any historical exploitation attempts
  • Restrict network access to Apache Superset instances to trusted networks only
  • Implement additional input validation and SQL query filtering at the application layer

Patch Information

Apache has released version 4.0.2 which addresses this SQL Injection vulnerability. The patch introduces a new configuration key named DISALLOWED_SQL_FUNCTIONS that blocks the use of vulnerable PostgreSQL functions by default. Users should upgrade to version 4.0.2 or later to receive the fix.

For detailed patch information and security advisories, refer to the Apache Security Thread and the Openwall OSS-Security Discussion.

Workarounds

  • If immediate upgrade is not possible, manually configure the DISALLOWED_SQL_FUNCTIONS setting to block version, query_to_xml, inet_server_addr, and inet_client_addr functions
  • Implement network-level access controls to restrict who can reach the Apache Superset interface
  • Deploy a web application firewall with custom rules to detect and block SQL injection attempts targeting PostgreSQL functions
  • Consider placing Apache Superset behind a reverse proxy with additional query filtering capabilities
bash
# Configuration example for Apache Superset superset_config.py
# Add the following to block vulnerable PostgreSQL functions
DISALLOWED_SQL_FUNCTIONS = {'version', 'query_to_xml', 'inet_server_addr', 'inet_client_addr'}

# Additional functions can be added to this set for enhanced protection
# DISALLOWED_SQL_FUNCTIONS.add('additional_function_name')

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 Probability53.76%

  • 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 Discussion
  • Vendor Resources
  • Apache Thread on Security Issue
  • Related CVEs
  • CVE-2026-23969: Apache Superset SQLi Vulnerability

  • CVE-2026-23980: Apache Superset SQLi Vulnerability

  • CVE-2024-34693: Apache Superset SQLi Vulnerability

  • CVE-2023-49736: Apache Superset SQL Injection 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