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-2023-49736

CVE-2023-49736: Apache Superset SQLi Vulnerability

CVE-2023-49736 is a SQL injection flaw in Apache Superset's where_in JINJA macro that enables attackers to execute malicious SQL queries. This article covers technical details, affected versions, and mitigation strategies.

Updated: May 15, 2026

CVE-2023-49736 Overview

CVE-2023-49736 is a SQL injection vulnerability in Apache Superset stemming from the where_in JINJA macro. The macro permits users to specify a quote character that, when combined with a carefully crafted statement, breaks out of the intended query context. Authenticated attackers can execute arbitrary SQL against connected databases.

The flaw affects Apache Superset versions before 2.1.2 and versions 3.0.0 through 3.0.1. Apache addresses the issue in version 3.0.2. The vulnerability maps to [CWE-89] (Improper Neutralization of Special Elements used in an SQL Command).

Critical Impact

Authenticated users can leverage the where_in JINJA macro to inject arbitrary SQL, compromising confidentiality, integrity, and availability of data sources connected to Superset.

Affected Products

  • Apache Superset versions prior to 2.1.2
  • Apache Superset versions 3.0.0 through 3.0.1
  • Deployments using JINJA templating in SQL Lab or dataset definitions

Discovery Timeline

  • 2023-12-19 - CVE-2023-49736 published to NVD
  • 2025-02-13 - Last updated in NVD database

Technical Details for CVE-2023-49736

Vulnerability Analysis

Apache Superset supports JINJA macros inside SQL queries to allow templated expressions. The where_in macro generates an IN clause from a user-supplied list and accepts an optional quote character parameter. The implementation does not validate or sanitize the quote argument before embedding it in the generated SQL string.

An authenticated user with query privileges can supply a quote value that closes the generated string literal and appends attacker-controlled SQL. The injected SQL executes with the privileges of the database connection configured in Superset. Connections frequently hold broad read access across analytical warehouses, expanding the blast radius.

The vulnerability requires network access to the Superset web interface and low-privilege authenticated access. No user interaction is required to exploit the flaw once an attacker has a valid session.

Root Cause

The root cause is missing input validation on the quote argument of the where_in JINJA macro. The macro concatenates the quote character directly into the rendered SQL template without escaping or restricting the allowed character set. This violates the principle of separating code from data in SQL statement construction.

Attack Vector

An attacker authenticates to Superset and crafts a query that invokes the where_in macro with a malicious quote parameter. When Superset renders the JINJA template, the attacker-controlled value breaks out of the intended literal and introduces additional SQL clauses or statements. The query executes against the connected backend database using Superset's stored credentials.

The vulnerability mechanism centers on JINJA template rendering occurring before SQL parameterization. See the Apache Mailing List Thread for the official advisory and the Openwall OSS Security Discussion for additional context.

Detection Methods for CVE-2023-49736

Indicators of Compromise

  • Superset query history containing where_in macro invocations with non-standard quote arguments such as backslashes, multiple characters, or SQL syntax fragments
  • Unexpected UNION SELECT, -- comment terminators, or stacked statements in rendered SQL captured by database audit logs
  • Database queries originating from the Superset service account that target system tables or schemas outside normal dashboard scope
  • Spikes in failed SQL parse errors in Superset logs referencing JINJA-rendered statements

Detection Strategies

  • Inventory all Superset deployments and identify instances running versions below 2.1.2 or 3.0.0 to 3.0.1
  • Parse Superset query logs for where_in( macro usage and flag invocations supplying a quote parameter
  • Correlate Superset user activity with backend database audit trails to identify anomalous SELECT patterns against information_schema or metadata tables

Monitoring Recommendations

  • Forward Superset application logs and connected database audit logs to a centralized SIEM for correlation
  • Alert on Superset users executing queries that reference sensitive tables outside their normal dashboard scope
  • Monitor the Superset query table for SQL containing JINJA macro syntax combined with quote escaping patterns

How to Mitigate CVE-2023-49736

Immediate Actions Required

  • Upgrade Apache Superset to version 3.0.2 or later, which removes the unsafe quote parameter handling
  • Audit existing user accounts and revoke query privileges from accounts that do not require SQL Lab access
  • Restrict database connection accounts in Superset to least-privilege roles with read-only access to required schemas
  • Review the Superset query history for suspicious where_in macro usage since deployment

Patch Information

Apache released Apache Superset 3.0.2 to fix CVE-2023-49736. Operators running the 2.x branch should upgrade to 2.1.2 or migrate to the 3.x branch at version 3.0.2 or later. Patch details are published in the Apache Mailing List Thread.

Workarounds

  • Disable JINJA templating in SQL Lab by setting ENABLE_TEMPLATE_PROCESSING = False in superset_config.py if upgrading immediately is not feasible
  • Restrict access to SQL Lab using role-based access control and remove the can sql_json permission from non-administrative roles
  • Place Superset behind a web application firewall configured to inspect request bodies for JINJA macro patterns combined with SQL metacharacters
bash
# Configuration example: disable JINJA template processing in superset_config.py
FEATURE_FLAGS = {
    "ENABLE_TEMPLATE_PROCESSING": False,
}

# Upgrade via pip
pip install --upgrade apache-superset==3.0.2
superset db upgrade
superset init

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

  • SeverityHIGH

  • CVSS Score8.8

  • EPSS Probability0.50%

  • 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-89
  • Technical References
  • Openwall OSS Security Discussion
  • Vendor Resources
  • Apache Mailing List Thread
  • 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-39887: Apache Superset SQL Injection 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