CVE-2022-24437 Command Injection

Critical 9.8 Published Updated

Attackers can execute arbitrary commands via the outpath parameter in the git-pull-or-clone Node.js library.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2022-24437?

CVE-2022-24437 is a critical command injection vulnerability in git-pull-or-clone, published on 1 May 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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.

Weakness: CWE-88

Which versions are affected by CVE-2022-24437?

2 open source packages ship an affected version, including git-pull-or-clone. It affects 1 product.

PackageAffectedFixed in
git-pull-or-clone npmAll versions2.0.2
git-pull-or-clone npmAll versions2.0.2

Products include Git-Pull-or-Clone Project Git-Pull-or-Clone.

How do I fix CVE-2022-24437?

Upgrade git-pull-or-clone to 2.0.2 or later.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2022-24437 being exploited?

There is no known exploitation of CVE-2022-24437 in the wild and no public exploit code.

Sources

Also known as GHSA-3x62-x456-q2vm, SNYK-JS-GITPULLORCLONE-2434307.

Is CVE-2022-24437 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free