sentry-python: sentry-sdk is the official Python SDK for Sentry.io
CVE-2024-40647 is fixed in sentry-python on 1 platform, first by DEBIAN-CVE-2024-40647, released July 18, 2024. It is not reported as exploited. Patch Radar priority: Routine.
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.
Where it's fixed
| Product | Fixed in | Fix | Released |
|---|---|---|---|
| Linux | |||
| sentry-python · Debian 12.15 (bookworm) | 1.9.10-2+deb12u1 | DEBIAN-CVE-2024-40647 | Jul 18, 2024 |
| sentry-python · Debian 13.5 (trixie) | 2.16.0-1 | DEBIAN-CVE-2024-40647 | Jul 18, 2024 |
| sentry-python · Debian 14 | 2.16.0-1 | DEBIAN-CVE-2024-40647 | Jul 18, 2024 |
Patch Radar data is free to use with attribution. Terms and how to credit it.
Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.