CVE-2021-39160
JSON

9.6critical

Code injection in nbgitpuller

Severity
9.6critical CVSS:3.1 by GitHub_M
Exploit likelihood
1.73% (higher than 78% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-mq5p-2mcr-m52jPYSEC-2021-315

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

Product or packageVersionsReported by
jupyterhub nbgitpuller>= 0.9.0, < 0.10.2, from 0.9.0 before 0.10.2CVE List, NVD
nbgitpuller (PyPI)from 0.9.0 before 0.10.2, before 07690644f29a566011dd0d7ba14cae3eb0490481GitHub Advisory Database, PyPA Advisory Database

All scores

GitHub_M9.6critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
GitHub8.8high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
GitHubhigh CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
NVD8.8high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
NVD6.8medium CVSS:2.0AV:N/AC:M/Au:N/C:P/I:P/A:P

Classification

What each source says

CVE List

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.

GitHub Advisory Database
Impact

Due to an unsanitized input, visiting maliciously crafted links could result in arbitrary code execution in the user environment.

Patches

0.10.2

Workarounds

None, other than upgrade to 0.10.2 or downgrade to 0.8.x.

For more information

If you have any questions or comments about this advisory:

NVD (es)

nbgitpuller es una extensión del servidor Jupyter para sincronizar un repositorio git de forma unidireccional a una ruta local. Debido a una entrada no saneada, visitar enlaces maliciosamente diseñados podría resultar en una ejecución de código arbitrario en el entorno del usuario. Esto ha sido resuelto en la versión 0.10.2 y se recomienda a todos los usuarios que actualicen. No se presenta ninguna solución para usuarios que no puedan actualizar.

References

Sources

SourceRecordLicence
CVE ListCVE-2021-39160 changed 2024-08-04CVE Terms of Use
GitHub Advisory DatabaseGHSA-mq5p-2mcr-m52j changed 2026-07-08CC-BY-4.0
NVDCVE-2021-39160 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2021-315 changed 2023-11-08CC-BY-4.0