{"id":"CVE-2024-39887","aliases":["CVE-2024-39887","GHSA-2q6j-vpvr-6pvj","BIT-SUPERSET-2024-39887","PYSEC-2026-1155"],"related":[],"kind":"vulnerability","state":"published","title":"Apache Superset: Improper SQL authorisation, parse not checking for specific engine functions","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"Existe una vulnerabilidad de inyección SQL en Apache Superset debido a una neutralización inadecuada de elementos especiales utilizados en los comandos SQL. Específicamente, ciertas funciones específicas del motor no están marcadas, lo que permite a los atacantes eludir la autorización SQL de Apache Superset. Para mitigar esto, se introdujo una nueva clave de configuración denominada DISALLOWED_SQL_FUNCTIONS. Esta clave no permite el uso de las siguientes funciones de PostgreSQL: versión, query_to_xml, inet_server_addr e inet_client_addr. Se pueden agregar funciones adicionales a esta lista para una mayor protección. Este problema afecta a Apache Superset: antes de 4.0.2. Se recomienda a los usuarios actualizar a la versión 4.0.2, que soluciona el problema.","source":"nvd"}],"published":"2024-07-16T09:20:10.688Z","modified":"2026-09-08T08:48:19.724Z","severity":{"scorer":"apache","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","score":4.3,"rating":"MEDIUM"},"severities":[{"scorer":"apache","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","score":4.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","score":4.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","score":4.3,"rating":"MEDIUM"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:4.0","vector":"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"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"CRITICAL"}],"cwes":["CWE-89"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"4.0.2","status":"affected"}],"vendor":"Apache Software Foundation","product":"Apache Superset","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"4.0.2"}],"ecosystem":"PyPI","package":"apache-superset","purl":"pkg:pypi/apache-superset","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"4.0.2"}],"vendor":"apache","product":"superset","cpe":"cpe:2.3:a:apache:superset:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"4.0.2"}],"ecosystem":"PyPI","package":"apache-superset","purl":"pkg:pypi/apache-superset","source":"pysec"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"4.1.1"}],"ecosystem":"Bitnami","package":"superset","purl":"pkg:bitnami/superset","source":"bitnami"}],"references":[{"url":"https://lists.apache.org/thread/j55vm41jg3l0x6w49zrmvbf3k0ts5fqz","tags":["advisory","mailing-list","vendor-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec","bitnami"]},{"url":"http://www.openwall.com/lists/oss-security/2024/07/16/5","tags":["advisory","mailing-list","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-39887","tags":["advisory","web"],"sources":["ghsa","pysec","bitnami"]},{"url":"https://github.com/apache/superset/commit/56f0103b5771d477dd106272abbd8021c9ea7506","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/apache/superset","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/apache-superset","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-2q6j-vpvr-6pvj","tags":["advisory"],"sources":["pysec"]}],"credits":["Mike Yushkovskiy","Daniel Vaz Gaspar"],"assigner":"apache","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-07-16T17:48:36.154Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-39887","url":"https://www.cve.org/CVERecord?id=CVE-2024-39887","licence":"CVE Terms of Use","modified":"2025-02-13T17:53:20.299Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-2q6j-vpvr-6pvj","url":"https://github.com/advisories/GHSA-2q6j-vpvr-6pvj","licence":"CC-BY-4.0","modified":"2026-07-07T17:57:26.607Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-39887","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-39887","licence":"Public domain","modified":"2026-06-17T07:42:58.257Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-1155","url":"https://osv.dev/vulnerability/PYSEC-2026-1155","licence":"CC-BY-4.0","modified":"2026-07-07T17:57:26.607Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-SUPERSET-2024-39887","url":"https://osv.dev/vulnerability/BIT-SUPERSET-2024-39887","licence":"Apache-2.0","modified":"2026-09-08T08:48:19.724Z"}],"updatedAt":"2026-11-25T22:58:42.952Z","epss":{"score":0.04656,"percentile":0.91942,"date":"2026-12-01T12:00:22.000Z"}}