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 not rated by SUSE as it is not affecting the SUSE Enterprise products.

SUSE Bugzilla entry: 1228128 [NEW]

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


SUSE Timeline for this CVE

CVE page created: Thu Jul 18 20:00:19 2024
CVE page last modified: Wed Jul 24 00:48:31 2024