CVE-2025-30370 in Jupyter products
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 s...
Affects 0 products from 2 vendors. Facts below cite their sources.
Requires local access, high complexity, low privileges required, requires user interaction, can impact systems beyond the vulnerable component, full integrity impact, full availability impact.
Affected products and versions
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official 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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2025-30370 |
|---|---|
| BreachSpider ID | BS-2025-GLOBAL-041118-H |
| CVSS vector | CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:L/I:H/A:H |
| Published | 2025-04-03 |
| Last modified | 2026-04-15 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-78: OS Command Injection
Attacker injects OS commands through application inputs passed to system() or equivalent calls, leading to arbitrary command execution.
Related attack patterns (CAPEC)
CAPEC-43 Exploiting Multiple Input Interpretation Layers via CWE-78
CAPEC-108 Command Line Execution through SQL Injection via CWE-78
CAPEC-6 Argument Injection via CWE-78
CAPEC-15 Command Delimiters via CWE-78
CAPEC-88 OS Command Injection via CWE-78
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
A vulnerability in jupyterlab-git allows a third party to create a Git repository with a maliciously crafted name that can execute arbitrary commands when a user starts JupyterLab in a parent directory of this repository.
The attack vector involves creating a Git repository with a name that includes shell command substitution syntax $(<command>). When JupyterLab is started in a parent directory of this repository, the malicious command is executed, potentially leading to unauthorized access or other malicious actions.
Questions
What is CVE-2025-30370?
A vulnerability in jupyterlab-git allows a third party to create a Git repository with a maliciously crafted name that can execute arbitrary commands when a user starts JupyterLab in a parent directory of this repository.
What is the CVSS score for CVE-2025-30370?
CVE-2025-30370 has CVSS 7.4 (High). Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:L/I:H/A:H. EPSS: 1.0%.
Is CVE-2025-30370 actively exploited?
No confirmed active exploitation of CVE-2025-30370 as of 2026-05-30.
How do I remediate CVE-2025-30370?
Priority: HIGH.
What systems are affected by CVE-2025-30370?
CVE-2025-30370 affects Jupyter; Linux.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Jupyter","product":"EDS-518A","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-04-15.