CVE-2016-10541 Potential Command Injection in shell-quote

Critical 9.8 Published Updated

Attackers can execute arbitrary commands via improper escaping of redirection operators in the shell-quote library.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2016-10541?

CVE-2016-10541 is a critical command injection vulnerability in HackerOne shell-quote node module, published on 31 May 2018. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

The npm module "shell-quote" 1.6.0 and earlier cannot correctly escape ">" and "<" operator used for redirection in shell. Applications that depend on shell-quote may also be vulnerable. A malicious user could perform code injection.

Weakness: CWE-94, CWE-78

Which versions are affected by CVE-2016-10541?

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

PackageAffectedFixed in
shell-quote npmAll versions1.6.1
shell-quote npmAll versions1.6.1

Products include Shell-Quote Project Shell-Quote.

How do I fix CVE-2016-10541?

Upgrade shell-quote to 1.6.1 or later.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2016-10541 being exploited?

There is no known exploitation of CVE-2016-10541 in the wild and no public exploit code.

Sources

Also known as CLSA-2026-1773274563, GHSA-qg8p-v9q4-gh34.

Is CVE-2016-10541 in your software?

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

Check your SBOMs for free