Information Exposure Affecting sentry-sdk package, versions [,2.8.0)


Severity

Recommended
0.0
low
0
10

CVSS assessment made by Snyk's Security Team

    Threat Intelligence

    EPSS
    0.04% (12th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk ID SNYK-PYTHON-SENTRYSDK-7541801
  • published 19 Jul 2024
  • disclosed 18 Jul 2024
  • credit Kevin Michel

How to fix?

Upgrade sentry-sdk to version 2.8.0 or higher.

Overview

Affected versions of this package are vulnerable to Information Exposure due to all environment variables being passed to the subprocesses when env={} is set. This vulnerability could lead to unintentional exposure of environment variables to subprocesses despite the env={} setting, unless the Sentry SDK's Stdlib integration is disabled.

Note:

The Stdlib integration is enabled by default.

Workaround

  1. Replace env={} with the minimal dict env={"EMPTY_ENV":"1"} or similar.

  2. Disable Stdlib integration.

CVSS Scores

version 4.0
version 3.1
Expand this section

Snyk

Recommended
1.8 low
  • Attack Vector (AV)
    Local
  • Attack Complexity (AC)
    Low
  • Attack Requirements (AT)
    Present
  • Privileges Required (PR)
    High
  • User Interaction (UI)
    None
  • Confidentiality (VC)
    Low
  • Integrity (VI)
    None
  • Availability (VA)
    None
  • Confidentiality (SC)
    Low
  • Integrity (SI)
    None
  • Availability (SA)
    None