Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. git-pull-or-clone
  4. ›
  5. CVE-2022-24437

CVE-2022-24437: Improper Neutralization of Special Elements used in a Command ('Command Injection')

May 1, 2022 (updated August 8, 2023)

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.

References

  • gist.github.com/lirantal/327e9dd32686991b5a1fa6341aac2e7b
  • github.com/advisories/GHSA-3x62-x456-q2vm
  • github.com/feross/git-pull-or-clone/commit/f9ce092be13cc32e685dfa26e7705e9c6e3108a3
  • nvd.nist.gov/vuln/detail/CVE-2022-24437
  • snyk.io/vuln/SNYK-JS-GITPULLORCLONE-2434307

Code Behaviors & Features

Detect and mitigate CVE-2022-24437 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.0.2

Fixed versions

  • 2.0.2

Solution

Upgrade to version 2.0.2 or above.

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-88: Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')

Source file

npm/git-pull-or-clone/CVE-2022-24437.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:08 +0000.