CVE-2024-40647
Last modified
CVE-2024-40647 is a medium-severity vulnerability rated 5.3/10 on the CVSS scale. 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. EPSS estimates a 0.20% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:C/C:H/I:N/A:N
Weakness Enumeration
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2024-40647?
How severe is CVE-2024-40647?
How do I fix CVE-2024-40647?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2024
- CVE-2024-40641Nuclei is a fast and customizable vulnerability scanner base…7.4
- CVE-2024-40642The netty incubator codec.bhttp is a java language binary ht…8.1
- CVE-2024-40643Joplin is a free, open source note taking and to-do applicat…9.6
- CVE-2024-40644gitoxide An idiomatic, lean, fast & safe pure Rust implement…6.8
- CVE-2024-40645FOG is a cloning/imaging/rescue suite/inventory management s…8.8
- CVE-2024-40646Vertex is a management tool for PT (Private Tracker) users t…8.6
- CVE-2024-40648matrix-rust-sdk is an implementation of a Matrix client-serv…5.4
- CVE-2024-40649In TBD of TBD, there is a possible use-after-free due to a l…8.4
- CVE-2024-4065A vulnerability was found in Tenda AC8 16.03.34.09. It has b…8.8
- CVE-2024-40650In wifi_item_edit_content of styles.xml , there is a possibl…7.8
- CVE-2024-40651In TBD of TBD, there is a possible use-after-free due to a l…8.4
- CVE-2024-40652In onCreate of SettingsHomepageActivity.java, there is a pos…7.8
Are you affected by CVE-2024-40647?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
