cve-2024-40647
Vulnerability from cvelistv5
Published
2024-07-18 16:51
Modified
2024-08-02 04:33
Severity
Summary
Unintentional exposure of environment variables to subprocesses in sentry-sdk
Impacted products
VendorProduct
getsentrysentry-python
Show details on NVD website


{
  "containers": {
    "adp": [
      {
        "metrics": [
          {
            "other": {
              "content": {
                "id": "CVE-2024-40647",
                "options": [
                  {
                    "Exploitation": "none"
                  },
                  {
                    "Automatable": "no"
                  },
                  {
                    "Technical Impact": "partial"
                  }
                ],
                "role": "CISA Coordinator",
                "timestamp": "2024-07-18T17:57:48.623412Z",
                "version": "2.0.3"
              },
              "type": "ssvc"
            }
          }
        ],
        "providerMetadata": {
          "dateUpdated": "2024-07-18T17:57:55.364Z",
          "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
          "shortName": "CISA-ADP"
        },
        "title": "CISA ADP Vulnrichment"
      },
      {
        "providerMetadata": {
          "dateUpdated": "2024-08-02T04:33:11.814Z",
          "orgId": "af854a3a-2127-422b-91ae-364da2661108",
          "shortName": "CVE"
        },
        "references": [
          {
            "name": "https://github.com/getsentry/sentry-python/security/advisories/GHSA-g92j-qhmh-64v2",
            "tags": [
              "x_refsource_CONFIRM",
              "x_transferred"
            ],
            "url": "https://github.com/getsentry/sentry-python/security/advisories/GHSA-g92j-qhmh-64v2"
          },
          {
            "name": "https://github.com/getsentry/sentry-python/pull/3251",
            "tags": [
              "x_refsource_MISC",
              "x_transferred"
            ],
            "url": "https://github.com/getsentry/sentry-python/pull/3251"
          },
          {
            "name": "https://github.com/getsentry/sentry-python/commit/763e40aa4cb57ecced467f48f78f335c87e9bdff",
            "tags": [
              "x_refsource_MISC",
              "x_transferred"
            ],
            "url": "https://github.com/getsentry/sentry-python/commit/763e40aa4cb57ecced467f48f78f335c87e9bdff"
          },
          {
            "name": "https://docs.python.org/3/library/subprocess.html",
            "tags": [
              "x_refsource_MISC",
              "x_transferred"
            ],
            "url": "https://docs.python.org/3/library/subprocess.html"
          },
          {
            "name": "https://docs.sentry.io/platforms/python/integrations/default-integrations",
            "tags": [
              "x_refsource_MISC",
              "x_transferred"
            ],
            "url": "https://docs.sentry.io/platforms/python/integrations/default-integrations"
          },
          {
            "name": "https://docs.sentry.io/platforms/python/integrations/default-integrations/#stdlib",
            "tags": [
              "x_refsource_MISC",
              "x_transferred"
            ],
            "url": "https://docs.sentry.io/platforms/python/integrations/default-integrations/#stdlib"
          },
          {
            "name": "https://github.com/getsentry/sentry-python/releases/tag/2.8.0",
            "tags": [
              "x_refsource_MISC",
              "x_transferred"
            ],
            "url": "https://github.com/getsentry/sentry-python/releases/tag/2.8.0"
          }
        ],
        "title": "CVE Program Container"
      }
    ],
    "cna": {
      "affected": [
        {
          "product": "sentry-python",
          "vendor": "getsentry",
          "versions": [
            {
              "status": "affected",
              "version": "\u003c 2.8.0"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "sentry-sdk is the official Python SDK for Sentry.io. A bug in Sentry\u0027s Python SDK \u003c 2.8.0 allows the environment variables to be passed to subprocesses despite the `env={}` setting. In Python\u0027s `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\u0027s not possible, and if passing environment variables to child processes poses a security risk for you, you can disable all default integrations.\n"
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "attackComplexity": "HIGH",
            "attackVector": "LOCAL",
            "availabilityImpact": "NONE",
            "baseScore": 5.3,
            "baseSeverity": "MEDIUM",
            "confidentialityImpact": "HIGH",
            "integrityImpact": "NONE",
            "privilegesRequired": "HIGH",
            "scope": "CHANGED",
            "userInteraction": "NONE",
            "vectorString": "CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:C/C:H/I:N/A:N",
            "version": "3.1"
          }
        }
      ],
      "problemTypes": [
        {
          "descriptions": [
            {
              "cweId": "CWE-200",
              "description": "CWE-200: Exposure of Sensitive Information to an Unauthorized Actor",
              "lang": "en",
              "type": "CWE"
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2024-07-18T16:51:23.539Z",
        "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
        "shortName": "GitHub_M"
      },
      "references": [
        {
          "name": "https://github.com/getsentry/sentry-python/security/advisories/GHSA-g92j-qhmh-64v2",
          "tags": [
            "x_refsource_CONFIRM"
          ],
          "url": "https://github.com/getsentry/sentry-python/security/advisories/GHSA-g92j-qhmh-64v2"
        },
        {
          "name": "https://github.com/getsentry/sentry-python/pull/3251",
          "tags": [
            "x_refsource_MISC"
          ],
          "url": "https://github.com/getsentry/sentry-python/pull/3251"
        },
        {
          "name": "https://github.com/getsentry/sentry-python/commit/763e40aa4cb57ecced467f48f78f335c87e9bdff",
          "tags": [
            "x_refsource_MISC"
          ],
          "url": "https://github.com/getsentry/sentry-python/commit/763e40aa4cb57ecced467f48f78f335c87e9bdff"
        },
        {
          "name": "https://docs.python.org/3/library/subprocess.html",
          "tags": [
            "x_refsource_MISC"
          ],
          "url": "https://docs.python.org/3/library/subprocess.html"
        },
        {
          "name": "https://docs.sentry.io/platforms/python/integrations/default-integrations",
          "tags": [
            "x_refsource_MISC"
          ],
          "url": "https://docs.sentry.io/platforms/python/integrations/default-integrations"
        },
        {
          "name": "https://docs.sentry.io/platforms/python/integrations/default-integrations/#stdlib",
          "tags": [
            "x_refsource_MISC"
          ],
          "url": "https://docs.sentry.io/platforms/python/integrations/default-integrations/#stdlib"
        },
        {
          "name": "https://github.com/getsentry/sentry-python/releases/tag/2.8.0",
          "tags": [
            "x_refsource_MISC"
          ],
          "url": "https://github.com/getsentry/sentry-python/releases/tag/2.8.0"
        }
      ],
      "source": {
        "advisory": "GHSA-g92j-qhmh-64v2",
        "discovery": "UNKNOWN"
      },
      "title": "Unintentional exposure of environment variables to subprocesses in sentry-sdk"
    }
  },
  "cveMetadata": {
    "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
    "assignerShortName": "GitHub_M",
    "cveId": "CVE-2024-40647",
    "datePublished": "2024-07-18T16:51:23.539Z",
    "dateReserved": "2024-07-08T16:13:15.512Z",
    "dateUpdated": "2024-08-02T04:33:11.814Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.1",
  "meta": {
    "nvd": "{\"cve\":{\"id\":\"CVE-2024-40647\",\"sourceIdentifier\":\"security-advisories@github.com\",\"published\":\"2024-07-18T17:15:05.193\",\"lastModified\":\"2024-07-19T13:01:44.567\",\"vulnStatus\":\"Awaiting Analysis\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"sentry-sdk is the official Python SDK for Sentry.io. A bug in Sentry\u0027s Python SDK \u003c 2.8.0 allows the environment variables to be passed to subprocesses despite the `env={}` setting. In Python\u0027s `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\u0027s not possible, and if passing environment variables to child processes poses a security risk for you, you can disable all default integrations.\\n\"},{\"lang\":\"es\",\"value\":\"sentry-sdk es el SDK oficial de Python para Sentry.io. Un error en el SDK de Python de Sentry \u0026lt; 2.8.0 permite que las variables de entorno se pasen a subprocesos a pesar de la configuraci\u00f3n `env={}`. En las llamadas de `subproceso` de Python, todas las variables de entorno se pasan a subprocesos de forma predeterminada. Sin embargo, si espec\u00edficamente no desea que se pasen a subprocesos, puede usar el argumento `env` en las llamadas de `subproceso`. Debido al error en Sentry SDK, con la integraci\u00f3n Stdlib habilitada (que est\u00e1 habilitada de forma predeterminada), esta expectativa no se cumple y, en su lugar, todas las variables de entorno se pasan a subprocesos. El problema se solucion\u00f3 en la solicitud de extracci\u00f3n n.\u00b0 3251 y se incluye en sentry-sdk==2.8.0. Recomendamos encarecidamente actualizar a la \u00faltima versi\u00f3n del SDK. Sin embargo, si no es posible y si pasar variables de entorno a procesos secundarios representa un riesgo de seguridad para usted, puede desactivar todas las integraciones predeterminadas.\"}],\"metrics\":{\"cvssMetricV31\":[{\"source\":\"security-advisories@github.com\",\"type\":\"Secondary\",\"cvssData\":{\"version\":\"3.1\",\"vectorString\":\"CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:C/C:H/I:N/A:N\",\"attackVector\":\"LOCAL\",\"attackComplexity\":\"HIGH\",\"privilegesRequired\":\"HIGH\",\"userInteraction\":\"NONE\",\"scope\":\"CHANGED\",\"confidentialityImpact\":\"HIGH\",\"integrityImpact\":\"NONE\",\"availabilityImpact\":\"NONE\",\"baseScore\":5.3,\"baseSeverity\":\"MEDIUM\"},\"exploitabilityScore\":0.8,\"impactScore\":4.0}]},\"weaknesses\":[{\"source\":\"security-advisories@github.com\",\"type\":\"Secondary\",\"description\":[{\"lang\":\"en\",\"value\":\"CWE-200\"}]}],\"references\":[{\"url\":\"https://docs.python.org/3/library/subprocess.html\",\"source\":\"security-advisories@github.com\"},{\"url\":\"https://docs.sentry.io/platforms/python/integrations/default-integrations\",\"source\":\"security-advisories@github.com\"},{\"url\":\"https://docs.sentry.io/platforms/python/integrations/default-integrations/#stdlib\",\"source\":\"security-advisories@github.com\"},{\"url\":\"https://github.com/getsentry/sentry-python/commit/763e40aa4cb57ecced467f48f78f335c87e9bdff\",\"source\":\"security-advisories@github.com\"},{\"url\":\"https://github.com/getsentry/sentry-python/pull/3251\",\"source\":\"security-advisories@github.com\"},{\"url\":\"https://github.com/getsentry/sentry-python/releases/tag/2.8.0\",\"source\":\"security-advisories@github.com\"},{\"url\":\"https://github.com/getsentry/sentry-python/security/advisories/GHSA-g92j-qhmh-64v2\",\"source\":\"security-advisories@github.com\"}]}}"
  }
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading...

Loading...