Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. binderhub
  4. ›
  5. CVE-2021-39159

CVE-2021-39159: remote code execution via git repo provider

August 30, 2021 (updated September 13, 2024)

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.

References

  • github.com/advisories/GHSA-9jjr-qqfp-ppwx
  • github.com/jupyterhub/binderhub
  • github.com/jupyterhub/binderhub/commit/195caac172690456dcdc8cc7a6ca50e05abf8182
  • github.com/jupyterhub/binderhub/commit/195caac172690456dcdc8cc7a6ca50e05abf8182.patch
  • github.com/jupyterhub/binderhub/security/advisories/GHSA-9jjr-qqfp-ppwx
  • github.com/pypa/advisory-database/tree/main/vulns/binderhub/PYSEC-2021-371.yaml
  • nvd.nist.gov/vuln/detail/CVE-2021-39159

Code Behaviors & Features

Detect and mitigate CVE-2021-39159 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.2.0

Fixed versions

  • 0.2.0

Solution

Upgrade to version 0.2.0 or above.

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
  • CWE-94: Improper Control of Generation of Code ('Code Injection')

Source file

pypi/binderhub/CVE-2021-39159.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:16:15 +0000.