Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2024-40647— Unintentional exposure of environment variables to subprocesses in sentry-sdk

Quick assessment

Affected
getsentry sentry-python
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

sentry-python是Sentry开源的一个应用程序监控软件的 Python 软件开发工具包。 sentry-python 2.8.0之前版本存在安全漏洞,该漏洞源于环境变量无意暴露在子流程中。

CVSS 5.3 · Medium EPSS 0.20% · P9

Possible ATT&CK Techniques 1 AI

T1059 · Command and Scripting Interpreter

Affected Version Matrix 1

VendorProduct Version RangeStatus
getsentry sentry-python < 2.8.0 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2024-40647

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Unintentional exposure of environment variables to subprocesses in sentry-sdk
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:C/C:H/I:N/A:N
Source: CVE Program / CVE List V5
Vulnerability Type
信息暴露
Source: CVE Program / CVE List V5
Vulnerability Title
sentry-python 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
sentry-python是Sentry开源的一个应用程序监控软件的 Python 软件开发工具包。 sentry-python 2.8.0之前版本存在安全漏洞,该漏洞源于环境变量无意暴露在子流程中。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
getsentry sentry-python < 2.8.0 -

II. Public POCs for CVE-2024-40647

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2024-40647

请登录查看更多情报信息。

Patches & Fixes for CVE-2024-40647 (2)

Vendor Advisories for CVE-2024-40647 (1)

Other References for CVE-2024-40647 (4)

IV. Related Vulnerabilities

V. Comments for CVE-2024-40647

No comments yet


Leave a comment