CVE-2024-32474: Sentry Sentry Vulnerable To Leaking Superuser Vulnerability

HIGH
Advisory Identifier: GHSA-6cjm-4pxw-7xp9
CVSS 7.3
CWE-312 CWE-117
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2024-32474
GHSA Identifier GHSA-6cjm-4pxw-7xp9
Severity HIGH
CVSS v3.1 Base Score 7.3
CWE Classification CWE-312: Cleartext Storage of Sensitive Information
Affected Product Sentry
Package Ecosystem PyPI
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability None (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.

sentry fixed: 24.4.1
pip install sentry>=24.4.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 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

### Impact When 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. ### Patches - Self-hosted users on affected versions should upgrade to 24.4.1 or later. - Sentry SaaS users do not need to take any action. This vulnerability is not applicable to SaaS. ### Workarounds Users 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 ### References - Bug introduced in https://github.com/getsentry/sentry/pull/66393 - Security fix in https://github.com/getsentry/sentry/pull/69148

CVE-2024-32474 Affected Sentry Versions

1 component(s)
Fixed Versions:
24.4.1
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?
CVE-2024-32474 is a security vulnerability in Sentry involving Sentry vulnerable to leaking superuser cleartext password in logs under CWE-312: Cleartext Storage of Sensitive Information.
Which Sentry versions are affected?
Affected versions include releases prior to 24.4.1 across affected packages: sentry.
What version fixes CVE-2024-32474?
Upgrading to 24.4.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is sentry affected?
Yes, sentry is affected in releases prior to 24.4.1. Upgrade your dependency to 24.4.1 or later.
What is the CVSS score of CVE-2024-32474?
CVE-2024-32474 has a CVSS v3.1 base score of 7.3 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N.
What CWE is associated with CVE-2024-32474?
CVE-2024-32474 is classified under CWE-312: Cleartext Storage of Sensitive Information (The product stores sensitive information in cleartext within a resource that might be accessible to another control sphere.).
How can I check PyPI dependencies for CVE-2024-32474?
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-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"
  }
}