CVE-2024-32474: Sentry Sentry Vulnerable To Leaking Superuser Vulnerability
HIGHCVE-2024-32474 is a HIGH (CVSS 7.3) sentry vulnerable to leaking superuser vulnerability (CWE-312: Cleartext Storage of Sensitive Information) affecting Sentry libraries in the PyPI ecosystem. The issue involves sentry vulnerable to leaking superuser cleartext password in logs. Remediation is available by upgrading affected packages to version 24.4.1.
CVE-2024-32474 at a Glance
Security Impact
CVSS: 7.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:R/S:U/C:H/I:H/A:N).
How to Fix CVE-2024-32474
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.4.1
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-32474, 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.4.1), 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-312: Cleartext Storage of Sensitive Information, where the product stores sensitive information in cleartext within a resource that might be accessible to another control sphere. 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-32474 Affected Sentry Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
sentry
|
PyPI |
≥ 24.3.0
< 24.4.1
|
24.4.1
|
References
Frequently Asked Questions
What is CVE-2024-32474?
Which Sentry versions are affected?
What version fixes CVE-2024-32474?
Is sentry affected?
What is the CVSS score of CVE-2024-32474?
What CWE is associated with CVE-2024-32474?
How can I check PyPI dependencies for CVE-2024-32474?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-6cjm-4pxw-7xp9",
"modified" : "2025-09-15T20:06:42Z",
"published" : "2024-04-18T18:22:42Z",
"aliases" : [ "CVE-2024-32474" ],
"summary" : "Sentry vulnerable to leaking superuser cleartext password in logs",
"details" : "### Impact\nWhen authenticating as a superuser to a self-hosted Sentry instance with a username and password, the password is leaked as cleartext in logs under the _event_: `auth-index.validate_superuser`. An attacker with access to the log data could use these leaked credentials to login to the Sentry system as superuser.\n\n### Patches\n- Self-hosted users on affected versions should upgrade to 24.4.1 or later.\n- Sentry SaaS users do not need to take any action. This vulnerability is not applicable to SaaS.\n\n### Workarounds\nUsers can configure the logging level to exclude logs of the `INFO` level and only generate logs for levels at `WARNING` or higher. For details on configuring self-hosted Sentry's logging level see our documentation at: https://develop.sentry.dev/config/#logging\n\n### References\n- Bug introduced in https://github.com/getsentry/sentry/pull/66393\n- Security fix in https://github.com/getsentry/sentry/pull/69148",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "sentry"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "24.3.0"
}, {
"fixed" : "24.4.1"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/getsentry/sentry/security/advisories/GHSA-6cjm-4pxw-7xp9"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-32474"
}, {
"type" : "WEB",
"url" : "https://github.com/getsentry/sentry/pull/66393"
}, {
"type" : "WEB",
"url" : "https://github.com/getsentry/sentry/pull/69148"
}, {
"type" : "WEB",
"url" : "https://github.com/getsentry/sentry/commit/d5b34568d9f1c41362ccb62141532a0a2169512f"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/getsentry/sentry"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-117", "CWE-312" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2024-04-18T18:22:42Z",
"nvd_published_at" : "2024-04-18T20:15:17Z"
}
}