CVE-2019-10778 OS Command Injection in devcert-sanscache
Remote attackers can execute arbitrary code via command injection in the devcert-sanscache library due to unsanitized user input in the exec function.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2019-10778?
CVE-2019-10778 is a critical command injection vulnerability in devcert-sanscache, published on 8 Jan 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
devcert-sanscache before 0.4.7 allows remote attackers to execute arbitrary code or cause a Command Injection via the exec function. The variable `commonName` controlled by user input is used as part of the `exec` function without any sanitization.
Weakness: CWE-78
Which versions are affected by CVE-2019-10778?
2 open source packages ship an affected version, including devcert-sanscache. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
devcert-sanscache npm | All versions | 0.4.7 |
devcert-sanscache npm | All versions | 0.4.7 |
Products include Devcert-Sanscache Project Devcert-Sanscache.
How do I fix CVE-2019-10778?
Upgrade devcert-sanscache to 0.4.7 or later.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2019-10778 being exploited?
There is no known exploitation of CVE-2019-10778 in the wild and no public exploit code.
Sources
Also known as GHSA-4gp3-p7ph-x2jr.