Katalog CVE

CVE-2025-30370

Wysokie
Opublikowano: Przetłumaczono: NVD NIST

Streszczenie

Podatność w rozszerzeniu jupyterlab-git pozwala na wykonanie polecenia w powłoce użytkownika bez jego zgody, gdy użytkownik otworzy repozytorium Git o nazwie zawierającej ciąg substytucji polecenia. Problem występuje w systemach macOS oraz większości dystrybucji Linuksa.

Ocena ryzyka

Atakujący może wykorzystać tę podatność do wykonania dowolnych poleceń w kontekście użytkownika, co może prowadzić do poważnych naruszeń bezpieczeństwa i utraty danych.

Rekomendacja

Zaleca się aktualizację rozszerzenia jupyterlab-git do wersji 0.51.1, aby usunąć tę podatność oraz monitorowanie użycia repozytoriów Git w celu wykrycia potencjalnych zagrożeń.

Powiązane podatności

Oryginalny opis (angielski, źródło NVD)

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.

Dane podatności pochodzą z NVD (NIST) · CISA KEV · EPSS