CVE-2018-16462 Command Injection in apex-publish-static-files

Critical 10.0 Published Updated

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.

Weakness: CWE-78, CWE-77

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.

PackageAffectedFixed in
apex-publish-static-files npmAll versions2.0.1
apex-publish-static-files npmAll versions2.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.

Is CVE-2018-16462 in your software?

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

Check your SBOMs for free