CVE-2021-41971 Possible SQL Injection when template processing is enabled

High 8.8 Published Updated

A malicious authenticated user can execute arbitrary SQL queries in Apache Superset when template processing is enabled, potentially accessing or modifying data.

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-2021-41971?

CVE-2021-41971 is a high-severity SQL injection vulnerability in Apache Superset, published on 18 Oct 2021. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

Apache Superset up to and including 1.3.0 when configured with ENABLE_TEMPLATE_PROCESSING on (disabled by default) allowed SQL injection when a malicious authenticated user sends an http request with a custom URL.

Weakness: CWE-89

Which versions are affected by CVE-2021-41971?

4 open source packages ship an affected version, including apache-superset and superset. It affects 1 product.

PackageAffectedFixed in
apache-superset PyPIAll versions1.3.1
apache-superset PyPIAll versions1.3.1
apache-superset PyPIAll versions1.3.1
superset BitnamiAll versions1.3.1

Products include Apache Superset.

How do I fix CVE-2021-41971?

Upgrade apache-superset to 1.3.1 or later.

Use parameterised queries everywhere and never build SQL by joining strings. Upgrade affected software first; a web application firewall only buys time. More about SQL injection.

Is CVE-2021-41971 being exploited?

There is no known exploitation of CVE-2021-41971 in the wild and no public exploit code.

All Apache Superset vulnerabilities

Sources

Also known as BIT-superset-2021-41971, GHSA-pg8m-4p8j-2p56, PYSEC-2021-378.

Is CVE-2021-41971 in your software?

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

Check your SBOMs for free