CVE-2020-7678 Arbitrary Code Execution

High 8.6 Published Updated

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.

PackageAffectedFixed in
node-import npmAll versions to 0.9.2None
node-import npmAll versions to 0.9.2None

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.

Is CVE-2020-7678 in your software?

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

Check your SBOMs for free