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-2020-13948

CVE-2020-13948: Apache Superset RCE Vulnerability

CVE-2020-13948 is a remote code execution flaw in Apache Superset that allows authenticated users to exploit templated text fields to access Python's os package. This article covers technical details, affected versions, and mitigations.

Published: March 4, 2026

CVE-2020-13948 Overview

CVE-2020-13948 is a critical Server-Side Template Injection (SSTI) vulnerability affecting Apache Superset, the popular open-source business intelligence and data visualization platform. This vulnerability allows authenticated users to craft malicious requests through templated text fields that provide arbitrary access to Python's os package within the web application process.

The vulnerability enables a wide range of attacks including file system access, environment variable manipulation, and arbitrary program execution. An authenticated attacker can leverage this flaw to list and access files, read environment variables containing sensitive configuration data, access process information, create or modify files in writable directories, and execute arbitrary programs accessible by the web process.

Critical Impact

Authenticated attackers can achieve full remote code execution on the Apache Superset server, enabling complete system compromise through Python's os module access.

Affected Products

  • Apache Superset versions prior to 0.37.1

Discovery Timeline

  • 2020-09-17 - CVE CVE-2020-13948 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2020-13948

Vulnerability Analysis

This vulnerability represents a Server-Side Template Injection (SSTI) flaw within Apache Superset's templating engine. The application fails to properly sanitize user-supplied input in various templated text fields, allowing authenticated users to inject malicious template directives that execute arbitrary Python code on the server.

The core issue stems from the Jinja2 templating engine's ability to evaluate Python expressions when processing user-controlled template strings. When an attacker injects template syntax that references Python's os module, the server evaluates these expressions within the context of the web application process.

The attack surface is network-accessible and requires low privileges (authenticated user access), with no user interaction needed. A successful exploit results in complete compromise of confidentiality, integrity, and availability of the affected system.

Root Cause

The root cause of CVE-2020-13948 lies in insufficient input validation and sandboxing of the Jinja2 template engine used by Apache Superset. The application allows authenticated users to supply template expressions in multiple text fields without properly restricting access to dangerous Python modules and built-in functions.

Specifically, the templating system fails to implement a secure sandbox that would prevent access to Python's os package and other potentially dangerous namespaces. The template context is not properly isolated, allowing template expressions to traverse object hierarchies and access sensitive modules through Python's object introspection capabilities.

Attack Vector

The attack requires an authenticated user account on the Apache Superset instance. An attacker can exploit this vulnerability through the following mechanism:

  1. The attacker authenticates to Apache Superset with valid credentials
  2. The attacker navigates to any feature utilizing templated text fields (charts, dashboards, SQL Lab, etc.)
  3. Malicious Jinja2 template expressions are injected that reference Python's os module
  4. When the template is processed by the server, the injected code executes with the privileges of the web application process
  5. The attacker gains the ability to read files, execute commands, and fully compromise the server

The exploitation leverages Jinja2's template syntax to access Python built-in classes and traverse to the os module. Common payloads involve accessing __subclasses__ of base objects to reach classes that import the os module, or utilizing Jinja2's namespace features to directly reference dangerous functions.

Detection Methods for CVE-2020-13948

Indicators of Compromise

  • Unusual template expressions containing Python introspection keywords such as __class__, __mro__, __subclasses__, or __globals__ in Superset logs
  • Web application logs showing requests with Jinja2 syntax targeting os module functions like os.system, os.popen, or os.environ
  • Unexpected file creation or modification in directories writable by the web application process
  • New or modified environment variables in the Superset process
  • Unusual process spawning from the Superset web application process

Detection Strategies

  • Implement Web Application Firewall (WAF) rules to detect template injection patterns including {{, {%, __class__, __mro__, and __subclasses__
  • Monitor Superset application logs for template rendering errors or exceptions related to blocked module access
  • Deploy runtime application self-protection (RASP) solutions to detect and block template injection attempts
  • Establish baseline behavior for the Superset process and alert on anomalous child process creation or file system access

Monitoring Recommendations

  • Configure centralized logging for all Apache Superset instances with alerting on suspicious template patterns
  • Implement endpoint detection and response (EDR) monitoring for unexpected command execution from the web server process
  • Monitor network traffic from Superset servers for unusual outbound connections that may indicate command-and-control activity
  • Set up file integrity monitoring on the Superset installation directory and web-accessible paths

How to Mitigate CVE-2020-13948

Immediate Actions Required

  • Upgrade Apache Superset to version 0.37.1 or later immediately
  • Audit user accounts with access to Apache Superset and remove unnecessary privileges
  • Review Superset logs for any indicators of exploitation attempts
  • Temporarily disable templated text field functionality if upgrade is not immediately possible
  • Implement network segmentation to limit the blast radius of potential compromise

Patch Information

Apache has addressed this vulnerability in version 0.37.1 of Apache Superset. Organizations should upgrade to this version or later to fully remediate the vulnerability.

For detailed information about the security fix, refer to the Apache Superset Development Discussion on the Apache mailing list. Additional notification updates are available through the Apache Superset Notification Update 1 and Apache Superset Notification Update 2.

Workarounds

  • Restrict access to Apache Superset to only trusted, vetted users until patching is complete
  • Implement strict input validation at the reverse proxy or WAF level to filter template injection patterns
  • Run Apache Superset in a containerized environment with minimal privileges and filesystem access
  • Disable or limit access to features that utilize templated text fields where possible
  • Deploy application-level controls to sandbox the Jinja2 environment and block access to dangerous Python modules
bash
# Configuration example - Restrict Superset access at nginx reverse proxy level
# Add to nginx server block to block common template injection patterns
location / {
    if ($request_body ~* "(\{\{|\{\%|__class__|__mro__|__subclasses__|__globals__|os\.system|os\.popen)") {
        return 403;
    }
    proxy_pass http://superset_backend;
}

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechApache Superset

  • SeverityHIGH

  • CVSS Score8.8

  • EPSS Probability0.73%

  • 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 Superset Notification Update 1

  • Apache Superset Notification Update 2
  • Vendor Resources
  • Apache Superset Development Discussion
  • Related CVEs
  • CVE-2023-37941: Apache Superset RCE Vulnerability

  • CVE-2026-23969: Apache Superset SQLi Vulnerability

  • CVE-2026-23984: Apache Superset Auth Bypass Vulnerability

  • CVE-2026-23982: Apache Superset 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