CVE-2023-49736 Apache Superset: SQL Injection on where_in JINJA macro

Medium 6.5 Published Updated

Attackers can execute arbitrary SQL commands via the where_in JINJA macro, potentially reading or modifying database contents.

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-2023-49736?

CVE-2023-49736 is a medium-severity SQL injection vulnerability in Apache Superset, published on 19 Dec 2023. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

A where_in JINJA macro allows users to specify a quote, which combined with a carefully crafted statement would allow for SQL injection in Apache Superset.This issue affects Apache Superset: before 2.1.2, from 3.0.0 before 3.0.2.

Users are recommended to upgrade to version 3.0.2, which fixes the issue.

Weakness: CWE-89

Which versions are affected by CVE-2023-49736?

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

PackageAffectedFixed in
apache-superset PyPIAll versions2.1.3, 3.0.2
apache-superset PyPIAll versions2.1.3
apache-superset PyPIAll versions2.1.3
apache-superset PyPIFrom 3.0.03.0.2
apache-superset PyPIFrom 3.0.03.0.2
superset BitnamiAll versions2.1.2, 3.0.2

Products include Apache Superset.

How do I fix CVE-2023-49736?

Upgrade apache-superset to a fixed version for your release line: 2.1.3 or 3.0.2.

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-2023-49736 being exploited?

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

All Apache Superset vulnerabilities

Sources

Also known as BIT-superset-2023-49736, GHSA-jfxj-xf67-x723, PYSEC-2026-1184.

Is CVE-2023-49736 in your software?

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

Check your SBOMs for free