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 (updated June 1, 2026)

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/commit/763e40aa4cb57ecced467f48f78f335c87e9bdff
  • github.com/getsentry/sentry-python/pull/3251
  • github.com/getsentry/sentry-python/releases/tag/1.45.1
  • github.com/getsentry/sentry-python/releases/tag/2.8.0
  • github.com/getsentry/sentry-python/security/advisories/GHSA-g92j-qhmh-64v2
  • lists.debian.org/debian-lts-announce/2026/06/msg00001.html
  • 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. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 1.45.1, all versions starting from 2.0.0-a.1 before 2.8.0

Fixed versions

  • 1.45.1
  • 2.8.0

Solution

Upgrade to versions 1.45.1, 2.8.0 or above.

Impact 2.5 LOW

CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:C/C:L/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 Sun, 08 Nov 2026 00:16:47 +0000.