CVE-2024-45606: Sentry Sentry Improperly Authorizes Muting Of Vulnerability
HIGHCVE-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
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).
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.
pip install sentry>=24.9.0
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
CVE-2024-45606 Affected Sentry Versions
1 component(s)| 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?
Which Sentry versions are affected?
What version fixes CVE-2024-45606?
Is sentry affected?
What is the CVSS score of CVE-2024-45606?
What CWE is associated with CVE-2024-45606?
How can I check PyPI dependencies for CVE-2024-45606?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}