CVE-2020-7672 Code Injection in mosc

High 8.6 Published Updated

Attackers can execute arbitrary code via the properties argument in the mosc npm library due to unsafe eval usage.

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-7672?

CVE-2020-7672 is a high-severity code injection vulnerability in mosc, published on 10 Jun 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

mosc through 1.0.0 is vulnerable to Arbitrary Code Execution. User input provided to `properties` argument is executed by the `eval` function, resulting in code execution.

Weakness: CWE-94

Which versions are affected by CVE-2020-7672?

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

PackageAffectedFixed in
mosc npmAll versions to 1.0.0None
mosc npmAll versions to 1.0.0None

Products include Mosc Project Mosc.

How do I fix CVE-2020-7672?

No fix has been published for CVE-2020-7672 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-7672 being exploited?

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

Sources

Also known as GHSA-j665-rvj7-2jv9.

Is CVE-2020-7672 in your software?

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

Check your SBOMs for free