Upstream information

CVE-2024-40647 at MITRE

Description

sentry-sdk is the official Python SDK for Sentry.io. A bug in Sentry's Python SDK < 2.8.0 allows the environment variables to be passed to subprocesses despite the `env={}` setting. In Python's `subprocess` calls, all environment variables are passed to subprocesses by default. However, if you specifically do not want them to be passed to subprocesses, you may use `env` argument in `subprocess` calls. Due to the bug in Sentry SDK, with the Stdlib integration enabled (which is enabled by default), this expectation is not fulfilled, and all environment variables are being passed to subprocesses instead. The issue has been patched in pull request #3251 and is included in sentry-sdk==2.8.0. We strongly recommend upgrading to the latest SDK version. However, if it's not possible, and if passing environment variables to child processes poses a security risk for you, you can disable all default integrations.

SUSE information

Overall state of this security issue: Resolved

This issue is currently rated as having moderate severity.

CVSS v3 Scores
CVSS detail CNA (GitHub)
Base Score 5.3
Vector CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:C/C:H/I:N/A:N
Attack Vector Local
Attack Complexity High
Privileges Required High
User Interaction None
Scope Changed
Confidentiality Impact High
Integrity Impact None
Availability Impact None
CVSSv3 Version 3.1
SUSE Bugzilla entry: 1228128 [IN_PROGRESS]

SUSE Security Advisories:

List of released packages

Product(s) Fixed package version(s) References
SUSE Package Hub 15 SP5
  • python3-sentry-sdk >= 0.14.4-bp155.3.3.1
Patchnames:
openSUSE-2024-214
SUSE Package Hub 15 SP6
  • python3-sentry-sdk >= 0.14.4-bp156.4.3.1
Patchnames:
openSUSE-2024-215
openSUSE Leap 15.5
  • python3-sentry-sdk >= 0.14.4-bp155.3.3.1
Patchnames:
openSUSE-2024-214
openSUSE Leap 15.6
  • python3-sentry-sdk >= 0.14.4-bp156.4.3.1
Patchnames:
openSUSE-2024-215
openSUSE Tumbleweed
  • python310-sentry-sdk >= 2.10.0-1.1
  • python311-sentry-sdk >= 2.10.0-1.1
  • python312-sentry-sdk >= 2.10.0-1.1
Patchnames:
openSUSE-Tumbleweed-2024-14209


Status of this issue by product and package

Please note that this evaluation state might be work in progress, incomplete or outdated. Also information for service packs in the LTSS phase is only included for issues meeting the LTSS criteria. If in doubt, feel free to contact us for clarification. The updates are grouped by state of their lifecycle. SUSE product lifecycles are documented on the lifecycle page.

Product(s) Source package State
Products past their end of life and not receiving proactive updates anymore.
SUSE Package Hub 15 SP5 python-sentry-sdk Released
SUSE Package Hub 15 SP6 python-sentry-sdk Released


SUSE Timeline for this CVE

CVE page created: Thu Jul 18 20:00:19 2024
CVE page last modified: Mon Jun 1 13:21:17 2026