CVE-2020-13948 Apache Superset OS Command Injection
Authenticated users can inject Python code via templated fields to execute arbitrary commands and access system resources in Apache Superset.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2020-13948?
CVE-2020-13948 is a high-severity code injection vulnerability in Apache Superset, published on 17 Sep 2020. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
While investigating a bug report on Apache Superset, it was determined that an authenticated user could craft requests via a number of templated text fields in the product that would allow arbitrary access to Python’s `os` package in the web application process in versions < 0.37.1. It was thus possible for an authenticated user to list and access files, environment variables, and process information. Additionally it was possible to set environment variables for the current process, create and update files in folders writable by the web process, and execute arbitrary programs accessible by the web process. All other operations available to the `os` package in Python were also available, even if not explicitly enumerated in this CVE.
Which versions are affected by CVE-2020-13948?
4 open source packages ship an affected version, including apache-superset and superset. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
apache-superset PyPI | All versions | 0.37.1 |
apache-superset PyPI | All versions | 0.37.1 |
apache-superset PyPI | All versions | 0.37.1 |
superset Bitnami | All versions | 0.37.1 |
Products include Apache Superset.
How do I fix CVE-2020-13948?
Upgrade apache-superset to 0.37.1 or later.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2020-13948 being exploited?
There is no known exploitation of CVE-2020-13948 in the wild and no public exploit code.
Other vulnerabilities in Apache Superset
- CVE-2023-27524 Apache Superset Insecure Default Initialization of Resource
- CVE-2022-27479 SQL injection vulnerability in chart data API
- CVE-2018-8021 Deserialization of Untrusted Data in superset
- CVE-2023-49657 Apache Superset: Stored XSS in Dashboard Title and Chart Title
- CVE-2022-43719 Apache Superset: Cross Site Request Forgery (CSRF) on accept, request access API
Sources
Also known as BIT-superset-2020-13948, GHSA-cj7g-h7rf-h8j9, PYSEC-2020-222.