CVE-2021-23356 Arbitrary Command Injection

Medium 5.6 Published Updated

Attackers can execute arbitrary commands via unsanitized input in the kill-process-by-name npm package.

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

What is CVE-2021-23356?

CVE-2021-23356 is a medium-severity command injection vulnerability in kill-process-by-name, published on 15 Mar 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

This affects all versions of package kill-process-by-name. If (attacker-controlled) user input is given, it is possible for an attacker to execute arbitrary commands. This is due to use of the child_process exec function without input sanitization in the index.js file.

Weakness: CWE-78

Which versions are affected by CVE-2021-23356?

2 open source packages ship an affected version, including kill-process-by-name. It affects 1 product.

PackageAffectedFixed in
kill-process-by-name npmAll versions to 1.0.5None
kill-process-by-name npmAll versions to 1.0.5None

Products include Kill-Process-by-Name Project Kill-Process-by-Name.

How do I fix CVE-2021-23356?

No fix has been published for CVE-2021-23356 yet. Limit exposure of the affected software until one is available.

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

Is CVE-2021-23356 being exploited?

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

Sources

Also known as GHSA-qc65-cgvr-93p6.

Is CVE-2021-23356 in your software?

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

Check your SBOMs for free