
CVE catalog
CVE-2024-40647
sentry-python: CVE-2024-40647
- Severity
- Medium
- Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.20% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | sentry-python | sid | 2.64.0-1 | fixed |
| Debian | sentry-python | forky | 2.64.0-1 | fixed |
| Debian | sentry-python | trixie | 2.18.0-1 | fixed |
| Debian | sentry-python | bookworm | 1.9.10-2+deb12u1 | fixed |
| Opensuse | python-sentry-sdk | tumbleweed | 2.66.1-1.1 | fixed |
| Opensuse | python-sentry-sdk | tumbleweed | 2.10.0-1.1 | fixed |
| Suse | python-sentry-sdk | package hub 15 sp5 | 0.14.4-bp155.3.3.1 | fixed |
| Opensuse | python-sentry-sdk | leap 15.5 | 0.14.4-bp155.3.3.1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | sentry-python | source | sid | 2.16.0-1 | not yet assigned | Not reported | [1083189] |
| Debian | sentry-python | source | forky | 2.16.0-1 | not yet assigned | Not reported | [1083189] |
| Debian | sentry-python | source | trixie | 2.16.0-1 | not yet assigned | Not reported | [1083189] |
| Debian | sentry-python | source | bookworm | 1.9.10-2+deb12u1 | not yet assigned | Not reported | [1083189] |
| Opensuse | python-sentry-sdk | rpm | tumbleweed | 2.66.1-1.1 | Not reported | OPENSUSE-SU-2026:11425-1 | Not reported |
| Opensuse | python-sentry-sdk | rpm | tumbleweed | 2.10.0-1.1 | Not reported | OPENSUSE-SU-2024:14209-1 | Not reported |
| Suse | python-sentry-sdk | rpm | package hub 15 sp5 | 0.14.4-bp155.3.3.1 | Not reported | OPENSUSE-SU-2024:0214-1 | Not reported |
| Opensuse | python-sentry-sdk | rpm | leap 15.5 | 0.14.4-bp155.3.3.1 | Not reported | OPENSUSE-SU-2024:0214-1 | Not reported |
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [python3-sentry-sdk]Affected
Source package: [sentry-python]
Details (2)
1.9.10-2+deb12u1· all · bookwormAffected · Fixed:
1.9.10-2+deb12u1dsa · sentry-python · debian · bookworm; dsa · sentry-python · debian · 12
1.9.10-2+deb12u1· all · bookwormAffected · Fixed:
1.9.10-2+deb12u1dsa · sentry-python · debian · bookworm; dsa · sentry-python · debian · 12
- [python-sentry-sdk-doc]Affected
Source package: [sentry-python]
Details (2)
1.9.10-2+deb12u1· all · bookwormAffected · Fixed:
1.9.10-2+deb12u1dsa · sentry-python · debian · bookworm; dsa · sentry-python · debian · 12
1.9.10-2+deb12u1· all · bookwormAffected · Fixed:
1.9.10-2+deb12u1dsa · sentry-python · debian · bookworm; dsa · sentry-python · debian · 12
[openSUSE Tumbleweed]
- [python313-sentry-sdk]Unknown
Source package: [python-sentry-sdk]
Details (1)
2.66.1-1.1· noarch · tumbleweedUnknown · Fixed:
2.10.0-1.1, 2.66.1-1.1Version impact unknown
dsa · python-sentry-sdk · opensuse · tumbleweed
- [python314-sentry-sdk]Unknown
Source package: [python-sentry-sdk]
Details (1)
2.66.1-1.1· noarch · tumbleweedUnknown · Fixed:
2.10.0-1.1, 2.66.1-1.1Version impact unknown
dsa · python-sentry-sdk · opensuse · tumbleweed
[Debian 13 (Trixie)]
- [python3-sentry-sdk]Fixed
Source package: [sentry-python]
Details (2)
2.18.0-1· all · trixieFixed · Fixed:
2.16.0-1dsa · sentry-python · debian · 13
2.18.0-1· all · trixieFixed · Fixed:
2.16.0-1dsa · sentry-python · debian · 13
- [python-sentry-sdk-doc]Fixed
Source package: [sentry-python]
Details (2)
2.18.0-1· all · trixieFixed · Fixed:
2.16.0-1dsa · sentry-python · debian · 13
2.18.0-1· all · trixieFixed · Fixed:
2.16.0-1dsa · sentry-python · debian · 13
Observed:
References
- [https://ftp.suse.com/pub/projects/security/csaf/opensuse-su-2026_11425-1.json]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2024-40647]
- [https://osv.dev/vulnerability/openSUSE-SU-2024:0214-1]
- [https://osv.dev/vulnerability/openSUSE-SU-2024:14209-1]
- [https://osv.dev/vulnerability/openSUSE-SU-2026:11425-1]
- [https://security-tracker.debian.org/tracker/CVE-2024-40647]
[Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [SUSE security advisories and VEX]