CVE-2018-3786 Command Injection in egg-scripts
Attackers can execute arbitrary shell commands via malicious arguments in the egg-scripts library, requiring an upgrade to mitigate.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2018-3786?
CVE-2018-3786 is a critical command injection vulnerability in egg-scripts, published on 24 Aug 2018. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
A command injection vulnerability in egg-scripts <v2.8.1 allows arbitrary shell command execution through a maliciously crafted command line argument.
Which versions are affected by CVE-2018-3786?
2 open source packages ship an affected version, including egg-scripts. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
egg-scripts npm | All versions | 2.8.1 |
egg-scripts npm | All versions | 2.8.1 |
Products include Eggjs Egg-Scripts.
How do I fix CVE-2018-3786?
Upgrade egg-scripts to 2.8.1 or later.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2018-3786 being exploited?
There is no known exploitation of CVE-2018-3786 in the wild and no public exploit code.
Public exploit code: 1 proofs of concept on GitHub.
Sources
Also known as GHSA-c9j3-wqph-5xx9.