CVE-2024-45606: Sentry Sentry Improperly Authorizes Muting Of Vulnerability

HIGH
Advisory Identifier: GHSA-v345-w9f2-mpm5
CVSS 7.1
CWE-639
Published
Advisory Summary

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

CVE-2024-45606 at a Glance

CVE Identifier CVE-2024-45606
GHSA Identifier GHSA-v345-w9f2-mpm5
Severity HIGH
CVSS v3.1 Base Score 7.1
CWE Classification CWE-639: Authorization Bypass Through User-Controlled Key
Affected Product Sentry
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 7.1

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

How to Fix CVE-2024-45606

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-45606, 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 can mute alert rules from arbitrary organizations and projects given a known given rule ID. The user does not need to be a member of the organization or have permissions on the project. In our review, we have identified no instances where alerts have been muted by unauthorized parties. ### Patches A patch was issued to ensure authorization checks are properly scoped on requests to mute alert rules. Authenticated users who do not have the necessary permissions are no longer able to mute alerts. 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. ### Affected Versions The rule mute feature was generally available as of 23.6.0 but users with early access may have had the feature as of 23.4.0. ### Update As of 2024-10-25 and after additional we've updated the Severity scoring to reduce Privileged Required from Low to None and Integrity from High to Low. Thanks again to @emanuelbeni for the correction on Privileges Required. ### References - [Prevent muting alerts](https://github.com/getsentry/sentry/pull/77016)

CVE-2024-45606 Affected Sentry Versions

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

References

Frequently Asked Questions

What is CVE-2024-45606?
CVE-2024-45606 is a security vulnerability in Sentry involving Sentry improperly authorizes muting of alert rules 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-45606?
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-45606?
CVE-2024-45606 has a CVSS v3.1 base score of 7.1 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:N.
What CWE is associated with CVE-2024-45606?
CVE-2024-45606 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-45606?
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-v345-w9f2-mpm5",
  "modified" : "2024-10-25T16:48:04Z",
  "published" : "2024-09-17T17:55:38Z",
  "aliases" : [ "CVE-2024-45606" ],
  "summary" : "Sentry improperly authorizes muting of alert rules",
  "details" : "### Impact\nAn authenticated user can mute alert rules from arbitrary organizations and projects given a known given rule ID. The user does not need to be a member of the organization or have permissions on the project. \n\nIn our review, we have identified no instances where alerts have been muted by unauthorized parties. \n\n### Patches\nA patch was issued to ensure authorization checks are properly scoped on requests to mute alert rules. Authenticated users who do not have the necessary permissions are no longer able to mute alerts. \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### Affected Versions\nThe rule mute feature was generally available as of 23.6.0 but users with early access may have had the feature as of 23.4.0. \n\n### Update\nAs of 2024-10-25 and after additional we've updated the Severity scoring to reduce Privileged Required from Low to None and Integrity from High to Low. Thanks again to @emanuelbeni for the correction on Privileges Required. \n\n### References\n- [Prevent muting alerts](https://github.com/getsentry/sentry/pull/77016)\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:N"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:H/VA:N/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "sentry"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "23.4.0"
      }, {
        "fixed" : "24.9.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/getsentry/sentry/security/advisories/GHSA-v345-w9f2-mpm5"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-45606"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/getsentry/sentry/pull/77016"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/getsentry/sentry/commit/e8e71708758e1f9f56ce815ace73fe60d9e608dc"
  }, {
    "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:38Z",
    "nvd_published_at" : "2024-09-17T20:15:05Z"
  }
}