CVE catalog

CVE-2024-40647

sentry-python: CVE-2024-40647

[CVE catalog]

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.

DistributionPackageReleaseVersionStatus
Debiansentry-pythonsid2.64.0-1fixed
Debiansentry-pythonforky2.64.0-1fixed
Debiansentry-pythontrixie2.18.0-1fixed
Debiansentry-pythonbookworm1.9.10-2+deb12u1fixed
Opensusepython-sentry-sdktumbleweed2.66.1-1.1fixed
Opensusepython-sentry-sdktumbleweed2.10.0-1.1fixed
Susepython-sentry-sdkpackage hub 15 sp50.14.4-bp155.3.3.1fixed
Opensusepython-sentry-sdkleap 15.50.14.4-bp155.3.3.1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debiansentry-pythonsourcesid2.16.0-1not yet assignedNot reported[1083189]
Debiansentry-pythonsourceforky2.16.0-1not yet assignedNot reported[1083189]
Debiansentry-pythonsourcetrixie2.16.0-1not yet assignedNot reported[1083189]
Debiansentry-pythonsourcebookworm1.9.10-2+deb12u1not yet assignedNot reported[1083189]
Opensusepython-sentry-sdkrpmtumbleweed2.66.1-1.1Not reportedOPENSUSE-SU-2026:11425-1Not reported
Opensusepython-sentry-sdkrpmtumbleweed2.10.0-1.1Not reportedOPENSUSE-SU-2024:14209-1Not reported
Susepython-sentry-sdkrpmpackage hub 15 sp50.14.4-bp155.3.3.1Not reportedOPENSUSE-SU-2024:0214-1Not reported
Opensusepython-sentry-sdkrpmleap 15.50.14.4-bp155.3.3.1Not reportedOPENSUSE-SU-2024:0214-1Not reported

[Debian bug #1083189]

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • Source package: [sentry-python]

    Details (2)
    • 1.9.10-2+deb12u1 · all · bookworm

      Affected · Fixed: 1.9.10-2+deb12u1

      dsa · sentry-python · debian · bookworm; dsa · sentry-python · debian · 12

    • 1.9.10-2+deb12u1 · all · bookworm

      Affected · Fixed: 1.9.10-2+deb12u1

      dsa · sentry-python · debian · bookworm; dsa · sentry-python · debian · 12

  • Source package: [sentry-python]

    Details (2)
    • 1.9.10-2+deb12u1 · all · bookworm

      Affected · Fixed: 1.9.10-2+deb12u1

      dsa · sentry-python · debian · bookworm; dsa · sentry-python · debian · 12

    • 1.9.10-2+deb12u1 · all · bookworm

      Affected · Fixed: 1.9.10-2+deb12u1

      dsa · sentry-python · debian · bookworm; dsa · sentry-python · debian · 12

[openSUSE Tumbleweed]

  • Source package: [python-sentry-sdk]

    Details (1)
    • 2.66.1-1.1 · noarch · tumbleweed

      Unknown · Fixed: 2.10.0-1.1, 2.66.1-1.1

      Version impact unknown

      dsa · python-sentry-sdk · opensuse · tumbleweed

  • Source package: [python-sentry-sdk]

    Details (1)
    • 2.66.1-1.1 · noarch · tumbleweed

      Unknown · Fixed: 2.10.0-1.1, 2.66.1-1.1

      Version impact unknown

      dsa · python-sentry-sdk · opensuse · tumbleweed

[Debian 13 (Trixie)]

  • Source package: [sentry-python]

    Details (2)
    • 2.18.0-1 · all · trixie

      Fixed · Fixed: 2.16.0-1

      dsa · sentry-python · debian · 13

    • 2.18.0-1 · all · trixie

      Fixed · Fixed: 2.16.0-1

      dsa · sentry-python · debian · 13

  • Source package: [sentry-python]

    Details (2)
    • 2.18.0-1 · all · trixie

      Fixed · Fixed: 2.16.0-1

      dsa · sentry-python · debian · 13

    • 2.18.0-1 · all · trixie

      Fixed · Fixed: 2.16.0-1

      dsa · sentry-python · debian · 13

Observed:

References