CVE-2021-23348 Arbitrary Command Injection

Medium 6.3 Published Updated

Attackers can execute arbitrary commands via unsanitized input in the killProcess function of the portprocesses library.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2021-23348?

CVE-2021-23348 is a medium-severity command injection vulnerability in portprocesses, published on 31 Mar 2021. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

This affects the package portprocesses before 1.0.5. If (attacker-controlled) user input is given to the killProcess function, 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-23348?

2 open source packages ship an affected version, including portprocesses. It affects 1 product.

PackageAffectedFixed in
portprocesses npmAll versions1.0.5
portprocesses npmAll versions1.0.5

Products include Portprocesses Project Portprocesses.

How do I fix CVE-2021-23348?

Upgrade portprocesses to 1.0.5 or later.

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

Is CVE-2021-23348 being exploited?

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

Sources

Also known as GHSA-vm67-7vmg-66vm, SNYK-JS-PORTPROCESSES-1078536.

Is CVE-2021-23348 in your software?

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

Check your SBOMs for free