CVE-2021-23380 Arbitrary Command Injection

Medium 5.6 Published Updated

Attackers can execute arbitrary commands via unsanitized input in the stat function of the roar-pidusage Node.js library.

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-23380?

CVE-2021-23380 is a medium-severity command injection vulnerability in roar-pidusage, published on 18 Apr 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 roar-pidusage. If attacker-controlled user input is given to the stat function of this package on certain operating systems, it is possible for an attacker to execute arbitrary commands. This is due to use of the child_process exec function without input sanitization.

Weakness: CWE-78

Which versions are affected by CVE-2021-23380?

2 open source packages ship an affected version, including roar-pidusage. It affects 1 product.

PackageAffectedFixed in
roar-pidusage npmAll versions to 1.1.7None
roar-pidusage npmAll versions to 1.1.7None

Products include Roar-Pidusage Project Roar-Pidusage.

How do I fix CVE-2021-23380?

No fix has been published for CVE-2021-23380 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-23380 being exploited?

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

Sources

Also known as GHSA-xfxf-qw26-hr33.

Is CVE-2021-23380 in your software?

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

Check your SBOMs for free