{"schemaVersion":3,"id":"CVE-2025-30370","aliases":["GHSA-cj5w-8mjf-r5f8","PYSEC-2026-1483"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2025-04-03T22:00:44.476Z","modified":"2025-04-04T18:54:20.953Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.4,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:L/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":7.4,"severity":"high","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:L/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Pypi","score":7.4,"severity":"high","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:L/I:H/A:H","exploitability":2.1,"impact":10,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.4,"severity":"high","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:L/I:H/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00585,"percentile":0.46977,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.00585},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00585,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00585,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00585,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00585,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00585,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00585,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00585,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00585,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00585,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00585,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00585,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00585,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00585,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00585,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00585,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00585,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00585,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00585,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00585,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00585,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00585,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00585,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00585,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00585,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00585,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00585,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00585,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00585,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00585,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00585,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00585,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00585,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00585,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00585,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00585,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00585,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00585,"percentile":0.46977}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.00585,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00585,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00585,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00585,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00585,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00585,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00585,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00585,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00585,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00585,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00585,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00585,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00585,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00585,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00585,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00585,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00585,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00585,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00585,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00585,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00585,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00585,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00585,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00585,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00585,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00585,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00585,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00585,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00585,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00585,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00585,"percentile":0.46977}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')","description":"The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/78.html"}],"affected":[{"vendor":"jupyterlab","product":"jupyterlab-git","name":"jupyterlab-git","label":"jupyterlab-git","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 0.51.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.51.1","eol":null,"hubHref":"/vendor/jupyterlab/jupyterlab-git"},{"vendor":"PyPI","product":"jupyterlab-git","name":"jupyterlab-git","label":"jupyterlab-git","ecosystem":"PyPI","cpePart":null,"purl":"pkg:pypi/jupyterlab-git","purlType":"pypi","versions":[{"text":"< 0.51.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.51.1","eol":null,"hubHref":null}],"affectedCount":2,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/jupyterlab/jupyterlab-git/security/advisories/GHSA-cj5w-8mjf-r5f8","label":"github.com/jupyterlab/jupyterlab-git/security/advisories/GHSA-cj5w-8mjf-r5f8","hostname":"github.com","tags":["X Refsource CONFIRM","WEB"]},{"url":"https://github.com/jupyterlab/jupyterlab-git/pull/1196","label":"github.com/jupyterlab/jupyterlab-git/pull/1196","hostname":"github.com","tags":["X Refsource MISC","WEB"]},{"url":"https://github.com/jupyterlab/jupyterlab-git/commit/b46482993f76d3a546015c6a94ebed8b77fc2376","label":"github.com/jupyterlab/jupyterlab-git/commit/b46482993f76d3a546015c6a94ebed8b77fc2376","hostname":"github.com","tags":["X Refsource MISC","WEB"]},{"url":"https://github.com/jupyterlab/jupyterlab-git/blob/7eb3b06f0092223bd5494688ec264527bbeb2195/src/commandsAndMenu.tsx#L175-L184","label":"github.com/jupyterlab/…","hostname":"github.com","tags":["X Refsource MISC","WEB"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-30370","label":"nvd.nist.gov/vuln/detail/CVE-2025-30370","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/jupyterlab/jupyterlab-git","label":"github.com/jupyterlab/jupyterlab-git","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://pypi.org/project/jupyterlab-git","label":"pypi.org/project/jupyterlab-git","hostname":"pypi.org","tags":["PACKAGE"]},{"url":"https://github.com/advisories/GHSA-cj5w-8mjf-r5f8","label":"github.com/advisories/GHSA-cj5w-8mjf-r5f8","hostname":"github.com","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2025-04-03T22:00:44.476Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-04-04T18:54:20.953Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":30,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T21:51:17.061Z","stale":false,"partial":false}}