Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2024-40647

published medium CVSS 3.1 · 5.3

Unintentional exposure of environment variables to subprocesses in sentry-sdk

Published
18 Jul 2024, 16:51:23 UTC
Updated
01 Jun 2026, 05:37:14 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
getsentry — sentry-python< 2.8.0 Affected Not stated GitHub_M
Debian bullseye sentry-python Advisory build 0.13.2-1+deb11u1 DLA-4612-1
SUSE / openSUSE openSUSE-Leap-15.5 python3-sentry-sdknoarch Advisory build 0.14.4-bp155.3.3.1 OPENSUSE-SU-2024:0214-1
SUSE / openSUSE openSUSE-Tumbleweed python310-sentry-sdkaarch64 Advisory build 2.10.0-1.1 OPENSUSE-SU-2024:14209-1
SUSE / openSUSE openSUSE-Tumbleweed python310-sentry-sdkppc64le Advisory build 2.10.0-1.1 OPENSUSE-SU-2024:14209-1
SUSE / openSUSE openSUSE-Tumbleweed python310-sentry-sdks390x Advisory build 2.10.0-1.1 OPENSUSE-SU-2024:14209-1
SUSE / openSUSE openSUSE-Tumbleweed python310-sentry-sdkx86_64 Advisory build 2.10.0-1.1 OPENSUSE-SU-2024:14209-1
SUSE / openSUSE openSUSE-Tumbleweed python311-sentry-sdkaarch64 Advisory build 2.10.0-1.1 OPENSUSE-SU-2024:14209-1
Show 15 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
SUSE / openSUSE openSUSE-Tumbleweed python311-sentry-sdkppc64le Advisory build 2.10.0-1.1 OPENSUSE-SU-2024:14209-1
SUSE / openSUSE openSUSE-Tumbleweed python311-sentry-sdks390x Advisory build 2.10.0-1.1 OPENSUSE-SU-2024:14209-1
SUSE / openSUSE openSUSE-Tumbleweed python311-sentry-sdkx86_64 Advisory build 2.10.0-1.1 OPENSUSE-SU-2024:14209-1
SUSE / openSUSE openSUSE-Tumbleweed python312-sentry-sdkaarch64 Advisory build 2.10.0-1.1 OPENSUSE-SU-2024:14209-1
SUSE / openSUSE openSUSE-Tumbleweed python312-sentry-sdkppc64le Advisory build 2.10.0-1.1 OPENSUSE-SU-2024:14209-1
SUSE / openSUSE openSUSE-Tumbleweed python312-sentry-sdks390x Advisory build 2.10.0-1.1 OPENSUSE-SU-2024:14209-1
SUSE / openSUSE openSUSE-Tumbleweed python312-sentry-sdkx86_64 Advisory build 2.10.0-1.1 OPENSUSE-SU-2024:14209-1
SUSE / openSUSE openSUSE-Tumbleweed python313-sentry-sdkaarch64 Advisory build 2.66.1-1.1 OPENSUSE-SU-2026:11425-1
SUSE / openSUSE openSUSE-Tumbleweed python313-sentry-sdkppc64le Advisory build 2.66.1-1.1 OPENSUSE-SU-2026:11425-1
SUSE / openSUSE openSUSE-Tumbleweed python313-sentry-sdks390x Advisory build 2.66.1-1.1 OPENSUSE-SU-2026:11425-1
SUSE / openSUSE openSUSE-Tumbleweed python313-sentry-sdkx86_64 Advisory build 2.66.1-1.1 OPENSUSE-SU-2026:11425-1
SUSE / openSUSE openSUSE-Tumbleweed python314-sentry-sdkaarch64 Advisory build 2.66.1-1.1 OPENSUSE-SU-2026:11425-1
SUSE / openSUSE openSUSE-Tumbleweed python314-sentry-sdkppc64le Advisory build 2.66.1-1.1 OPENSUSE-SU-2026:11425-1
SUSE / openSUSE openSUSE-Tumbleweed python314-sentry-sdks390x Advisory build 2.66.1-1.1 OPENSUSE-SU-2026:11425-1
SUSE / openSUSE openSUSE-Tumbleweed python314-sentry-sdkx86_64 Advisory build 2.66.1-1.1 OPENSUSE-SU-2026:11425-1

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.

en · GitHub_M · cna

Vendor advisories explicitly linked to this CVE.

4

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
5.3 / 10
Severity
medium
Provider
GitHub_M · cna
Vector string
CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:C/C:H/I:N/A:N

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
getsentry sentry-python < 2.8.0 (affected) GitHub_M · cna

Weaknesses

1
  • CWE-200 CWE-200: Exposure of Sensitive Information to an Unauthorized Actor (GitHub_M · cna)

References

8

Provider assertions

3

GitHub_M · cna

Unintentional exposure of environment variables to subprocesses in sentry-sdk

CISA-ADP · adp

CISA ADP Vulnrichment

CVE · adp

CVE Program Container

Provenance

Schema
5.2
Searchable
yes
Content hash
dcb2fefebfb5aaf7cdd2828f6a279e3d64aed5f0b691b882ed942aa27345e45c
Ingested
23 Sep 2026, 08:26:02 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected