git-pull-or-clone
Affected
- introduced
0, fixed2.0.2(semver)
Fixed versions
2.0.2
Fix
- Fixed version
2.0.2npm install [email protected]
Advisory
Also known as: CVE-2022-24437, SNYK-JS-GITPULLORCLONE-2434307
OS Command Injection in git-pull-or-clone
The package git-pull-or-clone before 2.0.2 is 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.
Credits
Credit @lirantal for discovering this vulnerability.
Critical Basis: The source's own band: CRITICAL
0, fixed 2.0.2 (semver)2.0.2
2.0.2npm install [email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0