CVE-2021-41971 Possible SQL Injection when template processing is enabled
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.
| Package | Affected | Fixed in |
|---|---|---|
apache-superset PyPI | All versions | 1.3.1 |
apache-superset PyPI | All versions | 1.3.1 |
apache-superset PyPI | All versions | 1.3.1 |
superset Bitnami | All versions | 1.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.
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-2021-41971, GHSA-pg8m-4p8j-2p56, PYSEC-2021-378.