CVE-2021-39159: jupyter binderhub Code Injection
Vulnerability summary
CVE-2021-39159 is a critical (CVSS 9.8) Code Injection vulnerability in jupyter binderhub. EPSS estimates a 1.93% chance of exploitation in the next 30 days, higher than 79.6% of scored vulnerabilities.
Timeline
- 25-08-2021PublishedVulnerability first disclosed.
- 04-08-2024Last modifiedVulnerability information updated.
Description
BinderHub is a kubernetes-based cloud service that allows users to share reproducible interactive computing environments from code repositories. In affected versions a remote code execution vulnerability has been identified in BinderHub, where providing BinderHub with maliciously crafted input could execute code in the BinderHub context, with the potential to egress credentials of the BinderHub deployment, including JupyterHub API tokens, kubernetes service accounts, and docker registry credentials. This may provide the ability to manipulate images and other user created pods in the deployment, with the potential to escalate to the host depending on the underlying kubernetes configuration. Users are advised to update to version 0.2.0-n653. If users are unable to update they may disable the git repo provider by specifying the `BinderHub.repo_providers` as a workaround.
CVSS metrics
5 scores · 3 sources · 3 versions- CVE.orgCNA9.6CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:HDiffers
- OSV · PypiEcosystem advisory · calculated9.6CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:HDiffers
EPSS trend
Probability
1.93%
Chance of exploitation in the next 30 days
Percentile
80%
Versus all other CVEs
30-day change
0.00 pp
From 1.93% 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
Jupyter1 product
- binderhub< 0.2.0-n653
Jupyterhub1 product
- binderhub< 0.2.0-n653
PyPI1 product
- binderhub< 0.2.0 | < 195caac172690456dcdc8cc7a6ca50e05abf8182.patch | < 0.2.0-n653
3 vendors · 3 products
References
6 links- github.com/jupyterhub/binderhub/security/advisories/GHSA-9jjr-qqfp-ppwxX Refsource CONFIRMWEBAdvisoryPatchThird Party Advisory
- github.com/jupyterhub/binderhub/commit/195caac172690456dcdc8cc7a6ca50e05abf8182.patchX Refsource MISCWEBFIXMailing ListPatchThird Party Advisory