CVE-2020-7697 Command Injection

Critical 9.8 Published Updated

A malicious user can inject commands via the _data variable in mock2easy, leading to arbitrary code execution.

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

CVE-2020-7697 is a critical command injection vulnerability in mock2easy, published on 29 Jul 2020. 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 mock2easy. a malicious user could inject commands through the _data variable: Affected Area require('../server/getJsonByCurl')(mock2easy, function (error, stdout) { if (error) { return res.json(500, error); } res.json(JSON.parse(stdout)); }, '', _data.interfaceUrl, query, _data.cookie,_data.interfaceType);

Weakness: CWE-77

Which versions are affected by CVE-2020-7697?

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

PackageAffectedFixed in
mock2easy npmAll versions to 0.0.24None
mock2easy npmAll versions to 0.0.24None

Products include Mock2easy Project Mock2easy.

How do I fix CVE-2020-7697?

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

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

Sources

Also known as GHSA-g4xj-wcq6-qwx5.

Is CVE-2020-7697 in your software?

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

Check your SBOMs for free