Advisory

GHSA-3x62-x456-q2vm

Also known as: CVE-2022-24437, SNYK-JS-GITPULLORCLONE-2434307

Summary

OS Command Injection in git-pull-or-clone

Details

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.

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2022-05-03 00:00 UTC
Modified
2026-07-08 06:49 UTC

Affected packages and fixes

git-pull-or-clone

npm · All systems

Affected

  • introduced 0, fixed 2.0.2 (semver)

Fixed versions

2.0.2

Fix

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

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences