Skip to content
OpenAdvisories
Critical · 9.8 CVE-2022-24437 EUVD-2022-2257GHSA-3x62-x456-q2vmSNYK-JS-GITPULLORCLONE-2434307

Command Injection

Published May 1, 2022 · Updated Sep 16, 2024 · Assigned by snyk

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.

Affected products

VendorProductAffectedFixed
— git-pull-or-clone unspecified – < 2.0.2 2.0.2

Affected packages

EcosystemPackageAffectedFixedRecord
npm git-pull-or-clone < 2.0.2 2.0.2 GHSA-3x62-x456-q2vm

References