CVE-2020-7785 Command Injection
Attackers can execute arbitrary commands via the node-ps library, requiring developers to upgrade to a patched version.
- 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-2020-7785?
CVE-2020-7785 is a critical command injection vulnerability in node-ps, published on 8 Feb 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 node-ps. The injection point is located in line 72 in lib/index.js.
Weakness: CWE-78
Which versions are affected by CVE-2020-7785?
2 open source packages ship an affected version, including node-ps. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
node-ps npm | All versions to 0.0.2 | None |
node-ps npm | All versions to 0.0.2 | None |
Products include Node-Ps Project Node-Ps.
How do I fix CVE-2020-7785?
No fix has been published for CVE-2020-7785 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-2020-7785 being exploited?
There is no known exploitation of CVE-2020-7785 in the wild and no public exploit code.
Sources
Also known as GHSA-4rv9-5vc4-88cg.