CVE-2021-39159: Remote code execution in Binderhub
Vulnerability summary
CVE-2021-39159 is a critical (CVSS 9.8) Improper Control of Generation of Code vulnerability in jupyter binderhub. EPSS estimates a 1.93% chance of exploitation in the next 30 days, higher than 80.6% of scored vulnerabilities.
Severe, CVSS 9.6 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 2% (FIRST, 04-12-2026)
Source freshness unavailable
How is this decided?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
81%
Versus all other CVEs
30-day change
No change 0.00 pp
From 1.93% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-94Improper Control of Generation of CodeThe 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 CommandThe 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 before it is sent to a downstream component.
Affected systems
Known conditions: network-reachable, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.
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