{"id":"CVE-2024-39887","published":"2024-07-16T09:20:10Z","modified":"2025-02-13T17:53:20Z","title":"Apache Superset: Improper SQL authorisation, parse not checking for specific engine functions","vendor":"Apache","product":"Apache Superset","tier":"tail","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.\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.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.06836,"percentile":0.94784,"provenance":"source"},"cwes":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command"}],"references":[{"url":"https://lists.apache.org/thread/j55vm41jg3l0x6w49zrmvbf3k0ts5fqz","tags":["vendor-advisory"]},{"url":"http://www.openwall.com/lists/oss-security/2024/07/16/5","tags":[]}],"priority":{"score":27.0,"factors":[{"name":"EPSS percentile","points":18.96},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":3.01}]},"exploitSources":{"nuclei":[{"id":"CVE-2024-39887","name":"Apache Superset < 4.0.2 - SQL Injection","severity":"medium","path":"http/cves/2024/CVE-2024-39887.yaml","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2024/CVE-2024-39887.yaml"}],"provenance":"source"},"vendorSlug":"apache","affectedVersions":[{"vendor":"Apache Software Foundation","product":"Apache Superset","versions":["< 4.0.2"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-07-16T17:48:36.154927Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"apache-superset","vulnerableRanges":["<4.0.2"],"patched":["4.0.2"],"from":["GHSA-2q6j-vpvr-6pvj","PYSEC-2026-1155"],"provenance":"source"}],"summary":{"text":"Apache Superset contains an SQL injection flaw in its SQL authorisation layer, where certain PostgreSQL engine-specific functions (version, query_to_xml, inet_server_addr, inet_client_addr) are not checked. An attacker with network access and low-privilege authenticated access can use these functions to bypass Superset's SQL authorisation, with no user interaction required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-21T05:38:37Z"},"euvd":{"id":"EUVD-2024-2226","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-apache-superset-cve-2024-39887","children":[{"from":"CVE-2024-39887","to":"CVE-2024-53947","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["superset/config.py"],"commits":["https://github.com/apache/superset/commit/56f0103b5771d477dd106272abbd8021c9ea7506","https://github.com/apache/superset/commit/0e0028260fc8a2099250701524a489f3c9aa146f"],"basis":"shared function","functions":["CSV_TO_HIVE_UPLOAD_DIRECTORY_FUNC"]},{"kind":"similar","provenance":"machine","score":0.39,"basis":"same product + CWE + description similarity"}]}],"packageHistory":[{"cve":"CVE-2024-27315","published":"2024-02-28","fixed":"3.1.1","kev":false},{"cve":"CVE-2024-28148","published":"2024-05-07","fixed":"3.1.2","kev":false},{"cve":"CVE-2024-34693","published":"2024-06-20","fixed":"4.0.1","kev":false,"link":{"from":"CVE-2024-34693","to":"CVE-2024-39887","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:apache-superset","fromFixed":"4.0.1","toFixed":"4.0.2","daysApart":26}]}},{"cve":"CVE-2024-39887","published":"2024-07-16","fixed":"4.0.2","kev":false},{"cve":"CVE-2024-53947","published":"2024-12-09","fixed":"4.1.0","kev":false},{"cve":"CVE-2024-53948","published":"2024-12-09","fixed":"4.1.0","kev":false},{"cve":"CVE-2024-53949","published":"2024-12-09","fixed":"4.1.0","kev":false}],"package":"PyPI:apache-superset"}}