Quick answers
- Is CVE-2024-39887 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2024-39887 being exploited in the wild.
- How severe is CVE-2024-39887?
- Low severity, with a CVSS score of 3.1, published 7 July 2026.
- Which products and versions are affected?
- Apache Superset before 4.0.2; apache-superset (PyPI) ECOSYSTEM:introduced=0,fixed=4.0.2.
- Is there a fix for CVE-2024-39887?
- Yes. apache-superset (PyPI): upgrade to 4.0.2 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
- How is CVE-2024-39887 attacked?
- It is attacked over the network.
- Am I affected by CVE-2024-39887?
- Check whether you run Apache Superset or apache-superset (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
How to fix
- apache-superset (PyPI): upgrade to 4.0.2 or later
pip install "apache-superset>=4.0.2"
Technical details
This vulnerability is an SQL injection/authorization bypass (CWE-89) caused by improper neutralization of special SQL elements. The root cause is insufficient validation of certain database engine-specific functions in SQL queries. An authenticated attacker with SQL execution privileges can bypass Superset's SQL authorization controls by using functions like PostgreSQL's version(), query_to_xml(), inet_server_addr(), and inet_client_addr() to extract unauthorized information. The vulnerability requires prior authentication and network access to the Superset instance. A mitigation was implemented via a new DISALLOWED_SQL_FUNCTIONS configuration key that allows administrators to blacklist dangerous functions per database engine. The fix is available in Superset 4.0.2 and later.
Affected products
- Apache Superset before 4.0.2
Identifiers
- CVE-2024-39887
- GHSA-2q6j-vpvr-6pvj
- PYSEC-2026-1155
Timeline
- 2024-07-16: disclosed
- 2024-07-16: patched: fix available in version 4.0.2