{"id":"CVE-2021-39160","published":"2021-08-25T18:10:11Z","modified":"2024-08-04T01:58:18Z","title":"Code injection in nbgitpuller","vendor":"jupyterhub","product":"nbgitpuller","tier":"tail","description":{"text":"nbgitpuller is a Jupyter server extension to sync a git repository one-way to a local path. Due to unsanitized input, visiting maliciously crafted links could result in arbitrary code execution in the user environment. This has been resolved in version 0.10.2 and all users are advised to upgrade. No work around exist for users who can not upgrade.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.6,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0173,"percentile":0.7817,"provenance":"source"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"references":[{"url":"https://github.com/jupyterhub/nbgitpuller/security/advisories/GHSA-mq5p-2mcr-m52j","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/jupyterhub/nbgitpuller/commit/07690644f29a566011dd0d7ba14cae3eb0490481","tags":["x_refsource_MISC"]},{"url":"https://github.com/jupyterhub/nbgitpuller/blob/main/CHANGELOG.md#0102---2021-08-25","tags":["x_refsource_MISC"]}],"priority":{"score":22.4,"factors":[{"name":"EPSS percentile","points":15.63},{"name":"CVSS severity","points":6.72}]},"vendorSlug":"jupyterhub","affectedVersions":[{"vendor":"jupyterhub","product":"nbgitpuller","versions":[">= 0.9.0, < 0.10.2"]}],"affected":[{"ecosystem":"PyPI","package":"nbgitpuller","vulnerableRanges":[">=0.9.0, <0.10.2"],"patched":["0.10.2"],"from":["GHSA-mq5p-2mcr-m52j","PYSEC-2021-315"],"provenance":"source"}],"summary":{"text":"The nbgitpuller Jupyter server extension, which syncs a git repository one-way to a local path, contains a code injection flaw caused by unsanitized input. An attacker who can get a user to visit a maliciously crafted link, with no authentication required over the network, can execute arbitrary code in that user's environment.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:40:49Z"},"euvd":{"id":"EUVD-2021-0141","exploited":false,"provenance":"source"}}