CVE-2020-8186 Injection and Command Injection in devcert
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.
Which versions are affected by CVE-2020-8186?
2 open source packages ship an affected version, including devcert. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
devcert npm | All versions | 1.1.2 |
devcert npm | All versions | 1.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.
Other vulnerabilities in devcert
Sources
Also known as GHSA-4228-7qvx-f4rq.