Skip to main content
← All vulnerabilities
CVE-2022-24437GHSA-3X62-X456-Q2VMSNYK-JS-GITPULLORCLONE-2434307

Command Injection

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 2.0.2
None on Exploit-DB, Metasploit or GitHub

Summary

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.

Timeline

  1. CVE published
  2. Record last updated

Affected versions

  • n/a git-pull-or-clone

    fixed in 2.0.2

  • git-pull-or-clonenpm

    fixed in 2.0.2

References 3

snyk.io

gist.github.com

GitHub · feross/git-pull-or-clone