CVE-2025-48912: Apache Superset SQL Injection Vulnerability
HIGHCVE-2025-48912 is a HIGH sql injection vulnerability (CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')) affecting Apache Superset libraries in the PyPI ecosystem. The issue involves improper authorization bypass on row level security via sql injection. Remediation is available by upgrading affected packages to version 4.1.2.
CVE-2025-48912 at a Glance
How to Fix CVE-2025-48912
To remediate this vulnerability, upgrade all affected Apache Superset dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install apache-superset>=4.1.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show apache-superset
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2025-48912, inspect your installed packages using pip:
pip show apache-superset
Analyze the terminal output to locate any version of Apache Superset in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.1.2), your application is affected.
Note: The pip show apache-superset command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection'), where the product constructs all or part of an sql command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended sql command when it is sent to a downstream component. without sufficient removal or quoting of sql syntax in user-controllable inputs, the generated sql query can cause those inputs to be interpreted as sql instead of ordinary user data. In Apache Superset, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-48912 Affected Apache Superset Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
apache-superset
|
PyPI |
< 4.1.2
|
4.1.2
|
References
Frequently Asked Questions
What is CVE-2025-48912?
Which Apache Superset versions are affected?
What version fixes CVE-2025-48912?
Is apache-superset affected?
What CWE is associated with CVE-2025-48912?
How can I check PyPI dependencies for CVE-2025-48912?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-8w7f-8pr9-xgwj",
"modified" : "2025-06-03T01:10:36Z",
"published" : "2025-05-30T09:30:27Z",
"aliases" : [ "CVE-2025-48912" ],
"summary" : "Apache Superset: Improper authorization bypass on row level security via SQL Injection",
"details" : "An authenticated malicious actor using specially crafted requests could bypass row level security configuration by injecting SQL into 'sqlExpression' fields. This allowed the execution of sub-queries to evade parsing defenses ultimately granting unauthorized access to data.\n\nThis issue affects Apache Superset: before 4.1.2.\n\nUsers are recommended to upgrade to version 4.1.2, which fixes the issue.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "apache-superset"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "4.1.2"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-48912"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/apache/superset"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread/ms2t2oq218hb7l628trsogo4fj7h1135"
}, {
"type" : "WEB",
"url" : "http://www.openwall.com/lists/oss-security/2025/05/30/3"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-89" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2025-05-30T15:25:31Z",
"nvd_published_at" : "2025-05-30T09:15:25Z"
}
}