# CVE-2021-39159: Remote code execution in Binderhub

- Severity: Critical 9.6 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.93%, higher than 80% of CVEs (2026-12-01)
- Published: 2021-08-25T18:20:09.000Z
- Modified: 2026-07-08T06:28:25.928Z
- Also known as: GHSA-9jjr-qqfp-ppwx, PYSEC-2021-371
- Weaknesses: CWE-78, CWE-94
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- jupyterhub binderhub: < 0.2.0-n653
- binderhub (PyPI): before 0.2.0; before 195caac172690456dcdc8cc7a6ca50e05abf8182.patch; before 0.2.0-n653
- jupyter binderhub: before 0.2.0-n653

## Every score

- GitHub_M: CVSS:3.1 9.6 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H`
- GitHub: CVSS:3.1 9.6 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H`
- GitHub: CVSS:4.0 Critical `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`

## References

- <https://github.com/jupyterhub/binderhub/security/advisories/GHSA-9jjr-qqfp-ppwx> (advisory, patch, third-party-advisory, web)
- <https://github.com/jupyterhub/binderhub/commit/195caac172690456dcdc8cc7a6ca50e05abf8182.patch> (fix, mailing-list, patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-39159> (advisory)
- <https://github.com/jupyterhub/binderhub/commit/195caac172690456dcdc8cc7a6ca50e05abf8182> (web)
- <https://github.com/jupyterhub/binderhub> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/binderhub/PYSEC-2021-371.yaml> (web)

## Sources

- CVE List: [CVE-2021-39159](https://www.cve.org/CVERecord?id=CVE-2021-39159), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-9jjr-qqfp-ppwx](https://github.com/advisories/GHSA-9jjr-qqfp-ppwx), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2021-39159](https://nvd.nist.gov/vuln/detail/CVE-2021-39159), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2021-371](https://osv.dev/vulnerability/PYSEC-2021-371), CC-BY-4.0, modified 2026-02-22

---

Page: https://cve.day/CVE-2021-39159 · Whole record: https://cve.day/CVE-2021-39159.json · Rebuilt by cve.day 2026-11-25T22:58:03.500Z
