CVE-2024-27315: Apache Superset Improper Error Handling On Alerts Vulnerability

MODERATE
Advisory Identifier: GHSA-h7r6-8qmm-hj5r
CVSS 4.3
CWE-209 CWE-200
Published
Advisory Summary

CVE-2024-27315 is a MODERATE (CVSS 4.3) improper error handling on alerts vulnerability (CWE-209: Generation of Error Message Containing Sensitive Information) affecting Apache Superset libraries in the PyPI ecosystem. The issue involves improper error handling on alerts. Remediation is available by upgrading affected packages to version 3.0.4, 3.1.1.

CVE-2024-27315 at a Glance

CVE Identifier CVE-2024-27315
GHSA Identifier GHSA-h7r6-8qmm-hj5r
Severity MODERATE
CVSS v3.1 Base Score 4.3
CWE Classification CWE-209: Generation of Error Message Containing Sensitive Information
Affected Product Apache Superset
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 4.3

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

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

How to Fix CVE-2024-27315

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-27315, 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-209: Generation of Error Message Containing Sensitive Information, where the product generates an error message that includes sensitive information about its environment, users, or associated 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

An authenticated user with privileges to create Alerts on Alerts & Reports has the capability to generate a specially crafted SQL statement that triggers an error on the database. This error is not properly handled by Apache Superset and may inadvertently surface in the error log of the Alert exposing possibly sensitive data. 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 or 3.0.4, which fixes the issue.

CVE-2024-27315 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-27315?
CVE-2024-27315 is a security vulnerability in Apache Superset involving Improper error handling on alerts under CWE-209: Generation of Error Message Containing Sensitive Information.
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-27315?
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-27315?
CVE-2024-27315 has a CVSS v3.1 base score of 4.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N.
What CWE is associated with CVE-2024-27315?
CVE-2024-27315 is classified under CWE-209: Generation of Error Message Containing Sensitive Information (The product generates an error message that includes sensitive information about its environment, users, or associated data.).
How can I check PyPI dependencies for CVE-2024-27315?
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-h7r6-8qmm-hj5r",
  "modified" : "2024-10-03T18:06:33Z",
  "published" : "2024-02-28T12:30:25Z",
  "aliases" : [ "CVE-2024-27315" ],
  "summary" : "Apache Superset: Improper error handling on alerts",
  "details" : "An authenticated user with privileges to create Alerts on Alerts & Reports has the capability to generate a specially crafted SQL statement that triggers an error on the database. This error is not properly handled by Apache Superset and may inadvertently surface in the error log of the Alert exposing possibly sensitive data.\n\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 or 3.0.4, which fixes the issue.\n\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA: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-27315"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/apache/superset"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread/qcwbx7q2s3ynsd405895bx3wcwq32j7z"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2024/02/28/3"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-200", "CWE-209" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-02-28T18:36:12Z",
    "nvd_published_at" : "2024-02-28T10:15:09Z"
  }
}