CVE-2021-39160: jupyterhub nbgitpuller Code Injection
Vulnerability summary
CVE-2021-39160 is a critical (CVSS 9.6) Code Injection vulnerability in jupyterhub nbgitpuller. EPSS estimates a 1.73% chance of exploitation in the next 30 days, higher than 77.2% of scored vulnerabilities.
Timeline
- 25-08-2021PublishedVulnerability first disclosed.
- 04-08-2024Last modifiedVulnerability information updated.
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.
CVSS metrics
5 scores · 3 sources · 3 versions- OSV · PypiEcosystem advisory · calculated8.8HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:HDiffers
- NVDNIST8.8HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:HDiffers
EPSS trend
Probability
1.73%
Chance of exploitation in the next 30 days
Percentile
77%
Versus all other CVEs
30-day change
0.00 pp
From 1.73% on 20-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-94Improper Control of Generation of Code ('Code Injection')The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.
- CWE-78Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
Affected systems
Jupyterhub1 product
- nbgitpuller≥ 0.9.0, < 0.10.2
PyPI1 product
- nbgitpuller< 07690644f29a566011dd0d7ba14cae3eb0490481 | ≥ 0.9.0, < 0.10.2
2 vendors · 2 products
References
6 links- github.com/jupyterhub/nbgitpuller/security/advisories/GHSA-mq5p-2mcr-m52jX Refsource CONFIRMWEBAdvisoryThird Party Advisory
- github.com/jupyterhub/nbgitpuller/commit/07690644f29a566011dd0d7ba14cae3eb0490481X Refsource MISCWEBFIXPatchThird Party Advisory
- github.com/jupyterhub/nbgitpuller/blob/main/CHANGELOG.mdX Refsource MISCWEBRelease NotesThird Party Advisory