getsentry sentry-python up to 2.7.x environment information disclosure
| CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
|---|---|---|
| 3.6 | $0-$5k | 0.00 |
Summary
A vulnerability was found in getsentry sentry-python up to 2.7.x. It has been declared as problematic. This affects an unknown part. Executing a manipulation of the argument environment can lead to information disclosure. This vulnerability is registered as CVE-2024-40647. The attack needs to be launched locally. No exploit is available. It is recommended to upgrade the affected component.
Details
A vulnerability classified as problematic was found in getsentry sentry-python up to 2.7.x. This vulnerability affects some unknown processing. The manipulation of the argument environment with an unknown input leads to a information disclosure vulnerability. The CWE definition for the vulnerability is CWE-200. The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information. As an impact it is known to affect confidentiality. CVE summarizes:
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.
The advisory is shared for download at github.com. This vulnerability was named CVE-2024-40647 since 07/08/2024. The exploitation appears to be difficult. The attack needs to be approached locally. The exploitation requires an enhanced level of successful authentication. There are known technical details, but no exploit is available. The MITRE ATT&CK project declares the attack technique as T1592.
The vulnerability scanner Nessus provides a plugin with the ID 319493 (Debian dla-4612 : python3-sentry-sdk - security update), which helps to determine the existence of the flaw in a target environment.
Upgrading to version 2.8.0 eliminates this vulnerability. The upgrade is hosted for download at github.com. Applying the patch 763e40aa4cb57ecced467f48f78f335c87e9bdff is able to eliminate this problem. The bugfix is ready for download at github.com. The best possible mitigation is suggested to be upgrading to the latest version.
The vulnerability is also documented in the databases at Tenable (319493) and EUVD (EUVD-2024-2345). Once again VulDB remains the best source for vulnerability data.
Product
Type
Vendor
Name
Version
License
Website
CPE 2.3
CPE 2.2
CVSSv4
VulDB Vector: 🔍VulDB Reliability: 🔍
CVSSv3
VulDB Meta Base Score: 3.6VulDB Meta Temp Score: 3.6
VulDB Base Score: 1.9
VulDB Temp Score: 1.9
VulDB Vector: 🔍
VulDB Reliability: 🔍
CNA Base Score: 5.3
CNA Vector (GitHub_M): 🔍
CVSSv2
| AV | AC | Au | C | I | A |
|---|---|---|---|---|---|
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| Vector | Complexity | Authentication | Confidentiality | Integrity | Availability |
|---|---|---|---|---|---|
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍
Exploiting
Class: Information disclosureCWE: CWE-200 / CWE-284 / CWE-266
CAPEC: 🔍
ATT&CK: 🔍
Physical: Partially
Local: Yes
Remote: No
Availability: 🔍
Status: Not defined
EPSS Score: 🔍
EPSS Percentile: 🔍
Price Prediction: 🔍
Current Price Estimation: 🔍
| 0-Day | Unlock | Unlock | Unlock | Unlock |
|---|---|---|---|---|
| Today | Unlock | Unlock | Unlock | Unlock |
Nessus ID: 319493
Nessus Name: Debian dla-4612 : python3-sentry-sdk - security update
Threat Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: UpgradeStatus: 🔍
0-Day Time: 🔍
Upgrade: sentry-python 2.8.0
Patch: 763e40aa4cb57ecced467f48f78f335c87e9bdff
Timeline
07/08/2024 🔍07/18/2024 🔍
07/18/2024 🔍
06/07/2026 🔍
Sources
Product: github.comAdvisory: GHSA-g92j-qhmh-64v2
Status: Confirmed
CVE: CVE-2024-40647 (🔍)
GCVE (CVE): GCVE-0-2024-40647
GCVE (VulDB): GCVE-100-271900
EUVD: 🔍
Entry
Created: 07/18/2024 22:04Updated: 06/07/2026 03:05
Changes: 07/18/2024 22:04 (69), 07/19/2024 11:44 (1), 06/07/2025 04:46 (2), 06/07/2026 03:05 (2)
Complete: 🔍
Cache ID: 216::103
Once again VulDB remains the best source for vulnerability data.
No comments yet. Languages: en.
Please log in to comment.