# CVE-2024-39887: Apache Superset: Improper SQL authorisation, parse not checking for specific engine functions

- Severity: Medium 4.3 (CVSS:3.1, scored by apache) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 4.66%, higher than 91% of CVEs (2026-12-01)
- Published: 2024-07-16T09:20:10.688Z
- Modified: 2026-09-08T08:48:19.724Z
- Also known as: GHSA-2q6j-vpvr-6pvj, BIT-SUPERSET-2024-39887, PYSEC-2026-1155
- Weaknesses: CWE-89
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: apache

## 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.

(As written by CVE List.)

## Affected

- Apache Software Foundation Apache Superset: before 4.0.2
- apache-superset (PyPI): before 4.0.2
- apache superset: before 4.0.2
- superset (Bitnami): before 4.1.1

## Every score

- apache: CVSS:3.1 4.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N`
- GitHub: CVSS:3.1 4.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N`
- GitHub: CVSS:4.0 Medium `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: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:3.1 4.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N`
- PyPA Advisory Database: 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: rating Critical

## 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

- CVE List: [CVE-2024-39887](https://www.cve.org/CVERecord?id=CVE-2024-39887), CVE Terms of Use, modified 2025-02-13
- GitHub Advisory Database: [GHSA-2q6j-vpvr-6pvj](https://github.com/advisories/GHSA-2q6j-vpvr-6pvj), CC-BY-4.0, modified 2026-07-07
- NVD: [CVE-2024-39887](https://nvd.nist.gov/vuln/detail/CVE-2024-39887), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-1155](https://osv.dev/vulnerability/PYSEC-2026-1155), CC-BY-4.0, modified 2026-07-07
- Bitnami Vulnerability Database: [BIT-SUPERSET-2024-39887](https://osv.dev/vulnerability/BIT-SUPERSET-2024-39887), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2024-39887 · Whole record: https://cve.day/CVE-2024-39887.json · Rebuilt by cve.day 2026-11-25T22:58:42.952Z
