Apache Superset vulnerable to improper SQL authorization
An SQL Injection vulnerability in Apache Superset exists due to improper neutralization of special elements used in SQL commands. Specifically, certain engine-specific functions are not checked, which allows attackers to bypass Apache Superset's SQL authorization. To mitigate this, a new configuration key named DISALLOWED_SQL_FUNCTIONS has been introduced. This key disallows the use of the following PostgreSQL functions: version, query_to_xml, inet_server_addr, and inet_client_addr. Additional functions can be added to this list for increased protection.
This issue affects Apache Superset: before 4.0.2.
Users are recommended to upgrade to version 4.0.2, which fixes the issue.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Python (PyPI) | apache-superset | < 4.0.2 | 4.0.2 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-39887
- https://github.com/apache/superset/commit/56f0103b5771d477dd106272abbd8021c9ea7506
- https://github.com/apache/superset
- https://lists.apache.org/thread/j55vm41jg3l0x6w49zrmvbf3k0ts5fqz
- http://www.openwall.com/lists/oss-security/2024/07/16/5
- https://pypi.org/project/apache-superset
- https://github.com/advisories/GHSA-2q6j-vpvr-6pvj
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N- Weakness (CWE)
CWE-89- Platform
- Python (PyPI)
- Package
apache-superset- Disclosed
- 16.07.2024
- Updated
- 11.10.2026 13:19
Sources and licenses
OSV / GitHub Advisory Database - GHSA-2q6j-vpvr-6pvj - CC BY 4.0
OSV / GitHub Advisory Database - PYSEC-2026-1155 - PyPA Advisory Database; CC BY 4.0
Vulnerability history: apache-superset
All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 66
- First → latest
- 12.2019 02.2026
- Without a fix
- 1
- Exploited in attacks
- 1
Severity breakdown
- Critical 3
- High 14
- Medium 48
- Low 1
Disclosures per year
- 2019: 2
- 2020: 3
- 2021: 6
- 2022: 3
- 2023: 28
- 2024: 13
- 2025: 6
- 2026: 5
-
Apache Superset vulnerable to improper SQL authorization this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.