Vulnerability · Published Aug 25, 2021 · Assigned by GitHub_M
CVE-2021-39160Code injection in nbgitpuller
Critical 9.6
In plain English
A critical-severity code injection in nbgitpuller from jupyterhub. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.7% (higher than 78% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| PyPI | nbgitpuller | 0.10.2 | GHSA-mq5p-2mcr-m52j |
| PyPI | nbgitpuller | 0.10.2 | PYSEC-2021-315 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| jupyterhub | nbgitpuller | >= 0.9.0, < 0.10.2 |
Weakness: CWE-94 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
References
- https://github.com/jupyterhub/nbgitpuller/security/advisories/GHSA-mq5p-2mcr-m52j x_refsource_CONFIRM
- https://github.com/jupyterhub/nbgitpuller/commit/07690644f29a566011dd0d7ba14cae3eb0490481 x_refsource_MISC
- https://github.com/jupyterhub/nbgitpuller/blob/main/CHANGELOG.md#0102---2021-08-25 x_refsource_MISC