{"id":"CVE-2024-39887","aliases":["BIT-superset-2024-39887","GHSA-2q6j-vpvr-6pvj","PYSEC-2026-1155"],"url":"https://o3.security/vulnerability/CVE-2024-39887","summary":"Apache Superset: Improper SQL authorisation, parse not checking for specific engine functions","details":"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.\n\nThis issue affects Apache Superset: before 4.0.2.\n\nUsers are recommended to upgrade to version 4.0.2, which fixes the issue.","published":"2024-07-16T09:20:10.688Z","modified":"2026-07-15T01:49:22.214228975Z","cvss":{"score":4.3,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N"},"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"PyPI","name":"apache-superset","fixedVersion":"4.0.2"}],"fix":null,"references":[{"type":"WEB","url":"http://www.openwall.com/lists/oss-security/2024/07/16/5"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/39xxx/CVE-2024-39887.json"},{"type":"ADVISORY","url":"https://lists.apache.org/thread/j55vm41jg3l0x6w49zrmvbf3k0ts5fqz"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-39887"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-07-15T01:49:22.214228975Z"}}