Exposure of Sensitive Information to an Unauthorized Actor
CVE-2024-40647
Summary
The package sentry-sdk is the official Python SDK for Sentry.io. A bug in Sentry's Python SDK 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 the `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. 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. This issue affects versions 0.10.0 through 1.45.0, and 2.0.0a1 through 2.7.1.
- HIGH
- LOCAL
- NONE
- CHANGED
- NONE
- HIGH
- HIGH
- NONE
CWE-200 - Information Exposure
An information exposure vulnerability is categorized as an information flow (IF) weakness, which can potentially allow unauthorized access to otherwise classified information in the application, such as confidential personal information (demographics, financials, health records, etc.), business secrets, and the application's internal environment.
References
Advisory Timeline
- Published