CVE-2020-7794 Command Injection
Command injection in the buns npm package allows attackers to execute arbitrary commands via the install function.
- 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-7794?
CVE-2020-7794 is a critical command injection vulnerability in buns, published on 8 Jan 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 buns. The injection point is located in line 678 in index file lib/index.js in the exported function install(requestedModule).
Weakness: CWE-78
Which versions are affected by CVE-2020-7794?
2 open source packages ship an affected version, including buns. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
buns npm | All versions to 1.1.6 | None |
buns npm | All versions to 1.1.6 | None |
Products include Buns Project Buns.
How do I fix CVE-2020-7794?
No fix has been published for CVE-2020-7794 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-7794 being exploited?
There is no known exploitation of CVE-2020-7794 in the wild and no public exploit code.
Sources
Also known as GHSA-487w-pqcm-63hq.