CVE-2022-24437

CRITICAL

git-pull-or-clone <2.0.2 - Command Injection

Title source: llm
STIX 2.1

Description

The package git-pull-or-clone before 2.0.2 are vulnerable to Command Injection due to the use of the --upload-pack feature of git which is also supported for git clone. The source includes the use of the secure child process API spawn(). However, the outpath parameter passed to it may be a command-line argument to the git clone command and result in arbitrary command injection.

References (3)

Core 3
Core References
Exploit, Third Party Advisory x_refsource_misc
https://snyk.io/vuln/SNYK-JS-GITPULLORCLONE-2434307
Exploit, Third Party Advisory x_refsource_misc
https://gist.github.com/lirantal/327e9dd32686991b5a1fa6341aac2e7b

Scores

CVSS v3 9.8
EPSS 0.0392
EPSS Percentile 89.0%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Details

CWE
CWE-88
Status published
Products (2)
git-pull-or-clone_project/git-pull-or-clone < 2.0.2
npm/git-pull-or-clone 0 - 2.0.2npm
Published May 01, 2022
Tracked Since Feb 18, 2026