CVE-2020-7678 Arbitrary Code Execution
Attackers can execute arbitrary code via unsanitized parameters passed to the eval function in the node-import 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-2020-7678?
CVE-2020-7678 is a high-severity code injection vulnerability in node-import, published on 25 Jul 2022. 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-import. The "params" argument of module function can be controlled by users without any sanitization.b. This is then provided to the “eval” function located in line 79 in the index file "index.js".
Which versions are affected by CVE-2020-7678?
2 open source packages ship an affected version, including node-import. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
node-import npm | All versions to 0.9.2 | None |
node-import npm | All versions to 0.9.2 | None |
Products include Node-Import Project Node-Import.
How do I fix CVE-2020-7678?
No fix has been published for CVE-2020-7678 yet. Limit exposure of the affected software until one is available.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2020-7678 being exploited?
There is no known exploitation of CVE-2020-7678 in the wild and no public exploit code.
Sources
Also known as GHSA-pc62-cq5x-3j5g.