CVE-2018-16462 Command Injection in apex-publish-static-files
Attackers can execute arbitrary shell commands via malicious arguments in the apex-publish-static-files npm module.
- 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-16462?
CVE-2018-16462 is a critical command injection vulnerability in apex-publish-static-files, published on 30 Oct 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 the apex-publish-static-files npm module version <2.0.1 which allows arbitrary shell command execution through a maliciously crafted argument.
Which versions are affected by CVE-2018-16462?
2 open source packages ship an affected version, including apex-publish-static-files. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
apex-publish-static-files npm | All versions | 2.0.1 |
apex-publish-static-files npm | All versions | 2.0.1 |
Products include Apex-Publish-Static-Files Project Apex-Publish-Static-Files.
How do I fix CVE-2018-16462?
Upgrade apex-publish-static-files to 2.0.1 or later.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2018-16462 being exploited?
There is no known exploitation of CVE-2018-16462 in the wild and no public exploit code.
Sources
Also known as GHSA-9jm3-5835-537m.