CVE-2024-45605: Sentry Sentry Improperly Authorizes Deletion Of Vulnerability

HIGH
Advisory Identifier: GHSA-54m3-95j9-v89j
CVSS 6.5
CWE-639
Published
Advisory Summary

CVE-2024-45605 is a HIGH (CVSS 6.5) sentry improperly authorizes deletion of vulnerability (CWE-639: Authorization Bypass Through User-Controlled Key) affecting Sentry libraries in the PyPI ecosystem. The issue involves sentry improperly authorizes deletion of user issue alert notifications. Remediation is available by upgrading affected packages to version 24.9.0.

CVE-2024-45605 at a Glance

CVE Identifier CVE-2024-45605
GHSA Identifier GHSA-54m3-95j9-v89j
Severity HIGH
CVSS v3.1 Base Score 6.5
CWE Classification CWE-639: Authorization Bypass Through User-Controlled Key
Affected Product Sentry
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 6.5

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:N/I:H/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 None (C:N)
Integrity High (I:H)
Availability None (A:N)

How to Fix CVE-2024-45605

To remediate this vulnerability, upgrade all affected Sentry dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

sentry fixed: 24.9.0
pip install sentry>=24.9.0
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 sentry

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2024-45605, inspect your installed packages using pip:

pip show sentry

Analyze the terminal output to locate any version of Sentry in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 24.9.0), your application is affected.

Note: The pip show sentry command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-639: Authorization Bypass Through User-Controlled Key, where the system's authorization functionality does not prevent one user from gaining access to another user's data or record by modifying the key value identifying the data. In Sentry, 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

### Impact An authenticated user may delete user issue alert notifications for arbitrary users given a known alert ID. ### Patches A patch was issued to ensure authorization checks are properly scoped on requests to delete user alert notifications. Sentry SaaS users do not need to take any action. [Self-Hosted Sentry](https://github.com/getsentry/self-hosted) users should upgrade to version **24.9.0** or higher. ### References - [Prevent muting user alerts](https://github.com/getsentry/sentry/pull/77093/)

CVE-2024-45605 Affected Sentry Versions

1 component(s)
Fixed Versions:
24.9.0
Product / Package Ecosystem Affected Versions Fixed Version
sentry
PyPI
≥ 23.9.0
< 24.9.0
24.9.0

References

Frequently Asked Questions

What is CVE-2024-45605?
CVE-2024-45605 is a security vulnerability in Sentry involving Sentry improperly authorizes deletion of user issue alert notifications under CWE-639: Authorization Bypass Through User-Controlled Key.
Which Sentry versions are affected?
Affected versions include releases prior to 24.9.0 across affected packages: sentry.
What version fixes CVE-2024-45605?
Upgrading to 24.9.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is sentry affected?
Yes, sentry is affected in releases prior to 24.9.0. Upgrade your dependency to 24.9.0 or later.
What is the CVSS score of CVE-2024-45605?
CVE-2024-45605 has a CVSS v3.1 base score of 6.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N.
What CWE is associated with CVE-2024-45605?
CVE-2024-45605 is classified under CWE-639: Authorization Bypass Through User-Controlled Key (The system's authorization functionality does not prevent one user from gaining access to another user's data or record by modifying the key value identifying the data.).
How can I check PyPI dependencies for CVE-2024-45605?
Run the dependency tree command: 'pip show sentry'. 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-54m3-95j9-v89j",
  "modified" : "2024-11-18T16:27:13Z",
  "published" : "2024-09-17T17:55:29Z",
  "aliases" : [ "CVE-2024-45605" ],
  "summary" : "Sentry improperly authorizes deletion of user issue alert notifications",
  "details" : "### Impact\nAn authenticated user may delete user issue alert notifications for arbitrary users given a known alert ID. \n\n### Patches\nA patch was issued to ensure authorization checks are properly scoped on requests to delete user alert notifications.\n\nSentry SaaS users do not need to take any action. [Self-Hosted Sentry](https://github.com/getsentry/self-hosted) users should upgrade to version **24.9.0** or higher.\n\n### References\n- [Prevent muting user alerts](https://github.com/getsentry/sentry/pull/77093/)\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "sentry"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "23.9.0"
      }, {
        "fixed" : "24.9.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/getsentry/sentry/security/advisories/GHSA-54m3-95j9-v89j"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-45605"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/getsentry/sentry/pull/77093"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/getsentry/sentry/commit/590258255bcb3a5fa4c56f21297b6c99131cfb9d"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/getsentry/self-hosted"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/getsentry/sentry"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-639" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-09-17T17:55:29Z",
    "nvd_published_at" : "2024-09-17T20:15:05Z"
  }
}