4.3medium
Apache Superset: Improper SQL authorisation, parse not checking for specific engine functions
- Severity
- 4.3medium CVSS:3.1 by apache
- Exploit likelihood
- 4.66% (higher than 91% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- apache
- Also known as
- GHSA-2q6j-vpvr-6pvjBIT-SUPERSET-2024-39887PYSEC-2026-1155
Description
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
| Product or package | Versions | Reported by |
|---|---|---|
| Apache Software Foundation Apache Superset | before 4.0.2 | CVE List |
| apache-superset (PyPI) | before 4.0.2 | GitHub Advisory Database, PyPA Advisory Database |
| apache superset | before 4.0.2 | NVD |
| superset (Bitnami) | before 4.1.1 | Bitnami Vulnerability Database |
All scores
| apache | 4.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N |
| GitHub | 4.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N |
| GitHub | medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N |
| NVD | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| PyPA Advisory Database | 4.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N |
| PyPA Advisory Database | Not scored CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N |
| Bitnami Vulnerability Database | critical rating |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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.
NVD (es)
Existe una vulnerabilidad de inyección SQL en Apache Superset debido a una neutralización inadecuada de elementos especiales utilizados en los comandos SQL. Específicamente, ciertas funciones específicas del motor no están marcadas, lo que permite a los atacantes eludir la autorización SQL de Apache Superset. Para mitigar esto, se introdujo una nueva clave de configuración denominada DISALLOWED_SQL_FUNCTIONS. Esta clave no permite el uso de las siguientes funciones de PostgreSQL: versión, query_to_xml, inet_server_addr e inet_client_addr. Se pueden agregar funciones adicionales a esta lista para una mayor protección. Este problema afecta a Apache Superset: antes de 4.0.2. Se recomienda a los usuarios actualizar a la versión 4.0.2, que soluciona el problema.
References
| https://lists.apache.org/thread/j55vm41jg3l0x6w49zrmvbf3k0ts5fqz | advisory, mailing-list, vendor-advisory, web | |
| http://www.openwall.com/lists/oss-security/2024/07/16/5 | advisory, mailing-list, third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2024-39887 | advisory, web | |
| https://github.com/apache/superset/commit/56f0103b5771d477dd106272abbd8021c9ea7506 | web | |
| https://github.com/apache/superset | package | |
| https://pypi.org/project/apache-superset | package | |
| https://github.com/advisories/GHSA-2q6j-vpvr-6pvj | advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-39887 changed 2025-02-13 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-2q6j-vpvr-6pvj changed 2026-07-07 | CC-BY-4.0 |
| NVD | CVE-2024-39887 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2026-1155 changed 2026-07-07 | CC-BY-4.0 |
| Bitnami Vulnerability Database | BIT-SUPERSET-2024-39887 changed 2026-09-08 | Apache-2.0 |