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 package | Versions | Reported by |
|---|---|---|
| jupyterhub nbgitpuller | >= 0.9.0, < 0.10.2, from 0.9.0 before 0.10.2 | CVE List, NVD |
| nbgitpuller (PyPI) | from 0.9.0 before 0.10.2, before 07690644f29a566011dd0d7ba14cae3eb0490481 | GitHub Advisory Database, PyPA Advisory Database |
All scores
| GitHub_M | 9.6critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H |
| GitHub | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| GitHub | high CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N |
| NVD | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | 6.8medium CVSS:2.0 | AV: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:
- Open an issue in nbgitpuller
- Email our security team at security@ipython.org
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
| https://github.com/jupyterhub/nbgitpuller/security/advisories/GHSA-mq5p-2mcr-m52j | advisory, third-party-advisory, web | |
| https://github.com/jupyterhub/nbgitpuller/commit/07690644f29a566011dd0d7ba14cae3eb0490481 | fix, patch, third-party-advisory, web | |
| https://github.com/jupyterhub/nbgitpuller/blob/main/CHANGELOG.md#0102---2021-08-25 | release-notes, third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2021-39160 | advisory | |
| https://github.com/jupyterhub/nbgitpuller | package | |
| https://github.com/pypa/advisory-database/tree/main/vulns/nbgitpuller/PYSEC-2021-315.yaml | web | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-39160 changed 2024-08-04 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-mq5p-2mcr-m52j changed 2026-07-08 | CC-BY-4.0 |
| NVD | CVE-2021-39160 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2021-315 changed 2023-11-08 | CC-BY-4.0 |