---
id: CVE-2024-24772
aliases:
  - GHSA-m6jm-3v38-76j4
  - BIT-superset-2024-24772
  - PYSEC-2026-1185
title: 'Apache Superset: Improper Neutralization of custom SQL on embedded context'
summary: 'Apache Superset: Improper Neutralization of custom SQL on embedded context'
severity: medium
cvss: 4.3
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N'
vendor: apache-superset
product: apache-superset
ecosystem: pip
affected:
  - apache-superset < 3.0.4
  - 'apache-superset >= 3.1.0, < 3.1.1'
patched:
  - apache-superset 3.0.4
  - apache-superset 3.1.1
published: '2024-02-28'
updated: '2026-07-07'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-m6jm-3v38-76j4'
references:
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2024-24772'
  - url: 'https://github.com/apache/superset'
  - url: 'https://lists.apache.org/thread/gfl3ckwy6y9tpz9jmpv62orh2q346sn5'
  - url: 'http://www.openwall.com/lists/oss-security/2024/02/28/5'
tags:
  - osv
  - pip
epss: 0.00953
epssPercentile: 0.59648
ingestedAt: '2026-07-08T18:25:51.149Z'
---

## Overview

A guest user could exploit a chart data REST API and send arbitrary SQL statements that on error could leak information from the underlying analytics database.This issue affects Apache Superset: before 3.0.4, from 3.1.0 before 3.1.1.

Users are recommended to upgrade to version 3.1.1 or 3.0.4, which fixes the issue.

## Affected packages

- `apache-superset < 3.0.4`
- `apache-superset >= 3.1.0, < 3.1.1`

## Remediation

Upgrade to a patched release:

- `apache-superset 3.0.4`
- `apache-superset 3.1.1`
