CVE-2024-24773: Apache Superset Improper Validation Of SQL Statements Vulnerability

MODERATE
Advisory Identifier: GHSA-5474-f7g5-273q
CVSS 4.9
CWE-863
Published
Advisory Summary

CVE-2024-24773 is a MODERATE (CVSS 4.9) improper validation of sql statements vulnerability (CWE-863: Incorrect Authorization) affecting Apache Superset libraries in the PyPI ecosystem. The issue involves improper validation of sql statements allows for unauthorized access to data. Remediation is available by upgrading affected packages to version 3.0.4, 3.1.1.

CVE-2024-24773 at a Glance

CVE Identifier CVE-2024-24773
GHSA Identifier GHSA-5474-f7g5-273q
Severity MODERATE
CVSS v3.1 Base Score 4.9
CWE Classification CWE-863: Incorrect Authorization
Affected Product Apache Superset
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 4.9

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required High (PR:H)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2024-24773

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.

apache-superset fixed: 3.0.4
pip install apache-superset>=3.0.4
apache-superset fixed: 3.1.1
pip install apache-superset>=3.1.1
Verify Direct and Transitive Dependencies

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-2024-24773, 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 3.0.4), 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-863: Incorrect Authorization, where the product performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly perform the check. 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

Improper parsing of nested SQL statements on SQLLab would allow authenticated users to surpass their data authorization scope. This issue affects Apache Superset: before 3.0.4, from 3.1.0 before 3.1.1. Users are recommended to upgrade to version 3.1.1, which fixes the issue.

CVE-2024-24773 Affected Apache Superset Versions

2 component(s)
Fixed Versions:
3.0.43.1.1
Product / Package Ecosystem Affected Versions Fixed Version
apache-superset
PyPI
< 3.0.4
3.0.4
apache-superset
PyPI
≥ 3.1.0
< 3.1.1
3.1.1

References

Frequently Asked Questions

What is CVE-2024-24773?
CVE-2024-24773 is a security vulnerability in Apache Superset involving Improper validation of SQL statements allows for unauthorized access to data under CWE-863: Incorrect Authorization.
Which Apache Superset versions are affected?
Affected versions include releases prior to 3.0.4, 3.1.1 across affected packages: apache-superset.
What version fixes CVE-2024-24773?
Upgrading to 3.0.4, 3.1.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is apache-superset affected?
Yes, apache-superset is affected in releases prior to 3.0.4, 3.1.1. Upgrade your dependency to 3.0.4, 3.1.1 or later.
What is the CVSS score of CVE-2024-24773?
CVE-2024-24773 has a CVSS v3.1 base score of 4.9 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N.
What CWE is associated with CVE-2024-24773?
CVE-2024-24773 is classified under CWE-863: Incorrect Authorization (The product performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly perform the check.).
How can I check PyPI dependencies for CVE-2024-24773?
Run the dependency tree command: 'pip show apache-superset'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-5474-f7g5-273q",
  "modified" : "2025-02-13T19:10:06Z",
  "published" : "2024-02-28T12:30:26Z",
  "aliases" : [ "CVE-2024-24773" ],
  "summary" : "Apache Superset: Improper validation of SQL statements allows for unauthorized access to data",
  "details" : "Improper parsing of nested SQL statements on SQLLab would allow authenticated users to surpass their data authorization scope.\nThis issue affects Apache Superset: before 3.0.4, from 3.1.0 before 3.1.1.\n\nUsers are recommended to upgrade to version 3.1.1, which fixes the issue.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "apache-superset"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "3.0.4"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 3.0.3"
    }
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "apache-superset"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.1.0"
      }, {
        "fixed" : "3.1.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-24773"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/apache/superset"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread/h66fy6nj41cfx07zh7l552w6dmtjh501"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2024/02/28/4"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-863" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-02-28T18:36:21Z",
    "nvd_published_at" : "2024-02-28T12:15:47Z"
  }
}