CVE-2020-8186 Injection and Command Injection in devcert

Critical 9.8 Published Updated

Attackers can execute arbitrary commands if untrusted input is passed to the certificateFor function in the devcert library.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2020-8186?

CVE-2020-8186 is a critical command injection vulnerability in devcert, published on 10 Jul 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

A command injection vulnerability in the `devcert` module may lead to remote code execution when users of the module pass untrusted input to the `certificateFor` function.

Weakness: CWE-78, CWE-77

Which versions are affected by CVE-2020-8186?

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

PackageAffectedFixed in
devcert npmAll versions1.1.2
devcert npmAll versions1.1.2

Products include Devcert Project Devcert.

How do I fix CVE-2020-8186?

Upgrade devcert to 1.1.2 or later.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2020-8186 being exploited?

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

Sources

Also known as GHSA-4228-7qvx-f4rq.

Is CVE-2020-8186 in your software?

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

Check your SBOMs for free