CVE-2025-30370 jupyterlab-git has a command injection vulnerability in "Open Git Repository in Terminal"
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: partial
Description
jupyterlab-git is a JupyterLab extension for version control using Git. On many platforms, a third party can create a Git repository under a name that includes a shell command substitution string in the syntax $(<command>). These directory names are allowed in macOS and a majority of Linux distributions. If a user starts jupyter-lab in a parent directory of this inappropriately-named Git repository, opens it, and clicks "Git > Open Git Repository in Terminal" from the menu bar, then the injected command <command> is run in the user's shell without the user's permission. This issue is occurring because when that menu entry is clicked, jupyterlab-git opens the terminal and runs cd <git-repo-path> through the shell to set the current directory. Doing so runs any command substitution strings present in the directory name, which leads to the command injection issue described here. A previous patch provided an incomplete fix. This vulnerability is fixed in 0.51.1.
Upgrade path
2 packages: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| pypi jupyterlab-git(PyPI) | < 0.51.1; = 0.1.1; = 0.1.2; = 0.2.0 +73 more | 0.51.1 | Fixed |
| jupyterlab-git | = < 0.51.1 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi jupyterlab-git(PyPI) | < 0.51.1 | 0.51.1 |
| pypi jupyterlab-git(PyPI) | = 0.1.1 | No fix listed |
| pypi jupyterlab-git(PyPI) | = 0.1.2 | No fix listed |
| pypi jupyterlab-git(PyPI) | = 0.10.0 | No fix listed |
| pypi jupyterlab-git(PyPI) | = 0.10.1 | No fix listed |
| pypi jupyterlab-git(PyPI) | = 0.10.1rc0 | No fix listed |
| pypi jupyterlab-git(PyPI) | = 0.11.0 | No fix listed |
| pypi jupyterlab-git(PyPI) | = 0.11.0rc0 | No fix listed |
| pypi jupyterlab-git(PyPI) | = 0.11.0rc1 | No fix listed |
| pypi jupyterlab-git(PyPI) | = 0.2.0 | No fix listed |
| pypi jupyterlab-git(PyPI) | = 0.2.2 | No fix listed |
| pypi jupyterlab-git(PyPI) | = 0.20.0 | No fix listed |
| pypi jupyterlab-git(PyPI) | = 0.20.0rc0 | No fix listed |
| pypi jupyterlab-git(PyPI) | = 0.21.0 | No fix listed |
| pypi jupyterlab-git(PyPI) | = 0.21.0a0 | No fix listed |
| pypi jupyterlab-git(PyPI) | = 0.21.0a1 | No fix listed |
| pypi jupyterlab-git(PyPI) | = 0.21.0rc0 | No fix listed |
| pypi jupyterlab-git(PyPI) | = 0.21.1 | No fix listed |
| pypi jupyterlab-git(PyPI) | = 0.22.0 | No fix listed |
| pypi jupyterlab-git(PyPI) | = 0.22.1 | No fix listed |
| pypi jupyterlab-git(PyPI) | = 0.22.2 | No fix listed |
| pypi jupyterlab-git(PyPI) | = 0.22.3 | No fix listed |
| pypi jupyterlab-git(PyPI) | = 0.23.0 | No fix listed |
| pypi jupyterlab-git(PyPI) | = 0.23.1 | No fix listed |
| pypi jupyterlab-git(PyPI) | = 0.23.2 | No fix listed |
Show 53 more
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi jupyterlab-git(PyPI) | = 0.23.3 | No fix listed |
| pypi jupyterlab-git(PyPI) | = 0.24.0 | No fix listed |
| pypi jupyterlab-git(PyPI) | = 0.3.0 | No fix listed |
| pypi jupyterlab-git(PyPI) | = 0.30.0 | No fix listed |
| pypi jupyterlab-git(PyPI) | = 0.30.0b1 | No fix listed |
| pypi jupyterlab-git(PyPI) | = 0.30.0b2 | No fix listed |
| pypi jupyterlab-git(PyPI) | = 0.30.0b3 | No fix listed |
| pypi jupyterlab-git(PyPI) | = 0.30.1 | No fix listed |
| pypi jupyterlab-git(PyPI) | = 0.31.0 | No fix listed |
| pypi jupyterlab-git(PyPI) | = 0.31.0a0 | No fix listed |
| pypi jupyterlab-git(PyPI) | = 0.32.0 | No fix listed |
| pypi jupyterlab-git(PyPI) | = 0.32.1 | No fix listed |
| pypi jupyterlab-git(PyPI) | = 0.32.2 | No fix listed |
| pypi jupyterlab-git(PyPI) | = 0.32.3 | No fix listed |
| pypi jupyterlab-git(PyPI) | = 0.32.4 | No fix listed |
| pypi jupyterlab-git(PyPI) | = 0.33.0 | No fix listed |
| pypi jupyterlab-git(PyPI) | = 0.34.0 | No fix listed |
| pypi jupyterlab-git(PyPI) | = 0.34.1 | No fix listed |
| pypi jupyterlab-git(PyPI) | = 0.34.2 | No fix listed |
| pypi jupyterlab-git(PyPI) | = 0.35.0 | No fix listed |
| pypi jupyterlab-git(PyPI) | = 0.36.0 | No fix listed |
| pypi jupyterlab-git(PyPI) | = 0.37.0 | No fix listed |
| pypi jupyterlab-git(PyPI) | = 0.37.1 | No fix listed |
| pypi jupyterlab-git(PyPI) | = 0.38.0 | No fix listed |
| pypi jupyterlab-git(PyPI) | = 0.39.0 | No fix listed |
| pypi jupyterlab-git(PyPI) | = 0.39.1 | No fix listed |
| pypi jupyterlab-git(PyPI) | = 0.39.2 | No fix listed |
| pypi jupyterlab-git(PyPI) | = 0.39.3 | No fix listed |
| pypi jupyterlab-git(PyPI) | = 0.4.4 | No fix listed |
| pypi jupyterlab-git(PyPI) | = 0.40.0 | No fix listed |
| pypi jupyterlab-git(PyPI) | = 0.40.1 | No fix listed |
| pypi jupyterlab-git(PyPI) | = 0.41.0 | No fix listed |
| pypi jupyterlab-git(PyPI) | = 0.42.0 | No fix listed |
| pypi jupyterlab-git(PyPI) | = 0.42.0rc0 | No fix listed |
| pypi jupyterlab-git(PyPI) | = 0.43.0 | No fix listed |
| pypi jupyterlab-git(PyPI) | = 0.44.0 | No fix listed |
| pypi jupyterlab-git(PyPI) | = 0.5.0 | No fix listed |
| pypi jupyterlab-git(PyPI) | = 0.50.0 | No fix listed |
| pypi jupyterlab-git(PyPI) | = 0.50.0a0 | No fix listed |
| pypi jupyterlab-git(PyPI) | = 0.50.0a1 | No fix listed |
| pypi jupyterlab-git(PyPI) | = 0.50.0a2 | No fix listed |
| pypi jupyterlab-git(PyPI) | = 0.50.0rc0 | No fix listed |
| pypi jupyterlab-git(PyPI) | = 0.50.1 | No fix listed |
| pypi jupyterlab-git(PyPI) | = 0.50.2 | No fix listed |
| pypi jupyterlab-git(PyPI) | = 0.51.0 | No fix listed |
| pypi jupyterlab-git(PyPI) | = 0.6.0 | No fix listed |
| pypi jupyterlab-git(PyPI) | = 0.6.1 | No fix listed |
| pypi jupyterlab-git(PyPI) | = 0.8.0 | No fix listed |
| pypi jupyterlab-git(PyPI) | = 0.8.1 | No fix listed |
| pypi jupyterlab-git(PyPI) | = 0.9.0 | No fix listed |
| pypi jupyterlab-git(PyPI) | = 0.9.0rc1 | No fix listed |
| pypi jupyterlab-git(PyPI) | = 0.9.1 | No fix listed |
| jupyterlab-git | = < 0.51.1 | No fix listed |
References
- https://github.com/jupyterlab/jupyterlab-git/security/advisories/GHSA-cj5w-8mjf-r5f8 exploit vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/jupyterlab/jupyterlab-git/pull/1196 patch
- https://github.com/jupyterlab/jupyterlab-git/commit/b46482993f76d3a546015c6a94ebed8b77fc2376 patch
- github.com product
- https://github.com/jupyterlab/jupyterlab-git/blob/7eb3b06f0092223bd5494688ec264527bbeb2195/src/commandsAndMenu.tsx#L175-L184
- pypi.org product
- github.com vendor-advisory