Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. sentry-sdk
  4. ›
  5. CVE-2024-40647

CVE-2024-40647: Sentry's Python SDK unintentionally exposes environment variables to subprocesses

July 18, 2024

The bug in Sentry’s Python SDK <2.8.0 results in the unintentional exposure of environment variables to subprocesses despite the env={} setting.

References

  • docs.python.org/3/library/subprocess.html
  • docs.sentry.io/platforms/python/integrations/default-integrations
  • docs.sentry.io/platforms/python/integrations/default-integrations/
  • github.com/advisories/GHSA-g92j-qhmh-64v2
  • github.com/getsentry/sentry-python
  • github.com/getsentry/sentry-python/commit/763e40aa4cb57ecced467f48f78f335c87e9bdff
  • github.com/getsentry/sentry-python/pull/3251
  • github.com/getsentry/sentry-python/releases/tag/2.8.0
  • github.com/getsentry/sentry-python/security/advisories/GHSA-g92j-qhmh-64v2
  • nvd.nist.gov/vuln/detail/CVE-2024-40647

Code Behaviors & Features

Detect and mitigate CVE-2024-40647 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.8.0

Fixed versions

  • 2.8.0

Solution

Upgrade to version 2.8.0 or above.

Impact 5.3 MEDIUM

CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:C/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-200: Exposure of Sensitive Information to an Unauthorized Actor

Source file

pypi/sentry-sdk/CVE-2024-40647.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:41 +0000.