CVE-2020-13948 Apache Superset OS Command Injection

High 8.8 Published Updated

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.

PackageAffectedFixed in
apache-superset PyPIAll versions0.37.1
apache-superset PyPIAll versions0.37.1
apache-superset PyPIAll versions0.37.1
superset BitnamiAll versions0.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.

All Apache Superset vulnerabilities

Sources

Also known as BIT-superset-2020-13948, GHSA-cj7g-h7rf-h8j9, PYSEC-2020-222.

Is CVE-2020-13948 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free