cve.bz

CVE-2025-30370 jupyterlab jupyterlab-git: OS Command Injection

7.4 highEPSS 0.6%Fix available

High (7.4) in jupyterlab jupyterlab-git. EPSS 0.6% estimated probability of exploitation activity in the next 30 days. Fixed in jupyterlab-git 0.51.1.

On this page
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.

Severity

CVSS 3.1

7.4 high
CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:L/I:H/A:H
EPSS
0.6% (unchanged from 0.6% a week ago; 0.6% 30 days ago) estimated probability of exploitation activity in the next 30 days; 49th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: partial, assessed 2025-04-04. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-78 Improper Neutralization of Special Elements used in an OS Command (OS Command Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

  • jupyterlab-git (PyPI): fixed in 0.51.1

Ask an AI about this CVE

Show the promptExplain CVE-2025-30370 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-30370?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-30370?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-30370 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
jupyterlab-git< 0.51.1

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-cj5w-8mjf-r5f8PyPIjupyterlab-git<0.51.10.51.1
PYSEC-2026-1483PyPIjupyterlab-git<0.51.10.51.1

Red Hat

Red Hat rates this Important.

Red Hat's statement

Red Hat Product Security has determined that this vulnerability does not affect any currently supported Red Hat product.

Red Hat's mitigation

It is recommended that users upgrade to the patched versions. However, if a user is unable to upgrade, there are 3 different ways to mitigate this vulnerability without upgrading to a patch.

- Disable terminals on jupyter-server level:

c.ServerApp.terminals_enabled = False

- Disable the terminals server extension:

jupyter server extension disable jupyter_server_terminals

- Disable the lab extension:

jupyter labextension disable @jupyterlab/terminal-extension

ProductPackageStateAdvisory
Red Hat OpenShift AI (RHOAI)rhoai/odh-kf-notebook-controller-rhel8Not affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-notebook-controller-rhel8Not affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-30370.

Attack patterns (CAPEC)

  • CAPEC-6 Argument Injection Likelihood: High · Severity: High
  • CAPEC-15 Command Delimiters Likelihood: High · Severity: High
  • CAPEC-43 Exploiting Multiple Input Interpretation Layers Likelihood: Medium · Severity: High
  • CAPEC-88 OS Command Injection Likelihood: High · Severity: High
  • CAPEC-108 Command Line Execution through SQL Injection Likelihood: Low · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON