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

- Priority: **Routine**
- Reason: Not severe (CVSS 4.3, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2024-07-16 · Modified: 2025-02-13
- Aliases: GHSA-2q6j-vpvr-6pvj, BIT-superset-2024-39887, PYSEC-2026-1155
- Record: https://cvemate.com/vulnerability/CVE-2024-39887 · JSON: https://cvemate.com/vulnerability/CVE-2024-39887/json

## Description

```text
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.
```

## Signals

- CVSS: 9.8 critical (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS: 4.656%, percentile 91.991%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- apache software foundation apache superset: \< 4.0.2
- apache superset: \< 4.0.2
- PyPI apache-superset (PyPI): \< 4.0.2

## References

- <https://lists.apache.org/thread/j55vm41jg3l0x6w49zrmvbf3k0ts5fqz>
- <http://www.openwall.com/lists/oss-security/2024/07/16/5>
- <https://nvd.nist.gov/vuln/detail/CVE-2024-39887>
- <https://github.com/apache/superset/commit/56f0103b5771d477dd106272abbd8021c9ea7506>
- <https://github.com/apache/superset>
- <https://pypi.org/project/apache-superset>
- <https://github.com/advisories/GHSA-2q6j-vpvr-6pvj>

---

Data as of 2026-12-05T06:22:11.295Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
