CVE-2021-39159 json
Remote code execution in Binderhub
published 2021-08-25 5 y ago modified 2026-07-08 4 mo ago also GHSA-9jjr-qqfp-ppwx , PYSEC-2021-371 , EUVD-2021-0035
- cvss
- 9.6
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.9%
- EPSS 1.9% chance of exploitation in 30 days, percentile 80%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- pypi binderhub 0.2.0, 0.2.0-n653
- jupyter binderhub 0.2.0-n653
Exploit prediction
1.93% chance of exploitation in the next 30 days, higher than 80% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 9.6 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H |
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
| GitHub | 3.1 | 9.6 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | binderhub | <0.2.0 <0.2.0-n653 |
0.2.0 0.2.0-n653 |
Affected products
- jupyterhub binderhub
Classification
References
-
github.com
/jupyterhub/binderhub/commit/195caac172690456dcdc8cc7a6ca50e05abf8182.patch
web, mailing-list, patch, third-party-advisory
-
github.com
/jupyterhub/binderhub/security/advisories/GHSA-9jjr-qqfp-ppwx
web, patch, third-party-advisory, advisory
-
github.com
/jupyterhub/binderhub/commit/195caac172690456dcdc8cc7a6ca50e05abf8182
web
-
nvd.nist.gov
/vuln/detail/CVE-2021-39159
advisory
-
github.com
/jupyterhub/binderhub
package
-
github.com
/pypa/advisory-database/tree/main/vulns/binderhub/PYSEC-2021-371.yaml
web
Sources
- CVE List CVE-2021-39159
- GitHub Advisory GHSA-9jjr-qqfp-ppwx
- NVD CVE-2021-39159
- OSV PYSEC-2021-371
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.