CVE-2018-3786 Command Injection in egg-scripts

Critical 9.8 Published Updated

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.

Weakness: CWE-78, CWE-77

Which versions are affected by CVE-2018-3786?

2 open source packages ship an affected version, including egg-scripts. It affects 1 product.

PackageAffectedFixed in
egg-scripts npmAll versions2.8.1
egg-scripts npmAll versions2.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.

Is CVE-2018-3786 in your software?

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

Check your SBOMs for free