CVE-2021-27185 Command injection in samba-client
Command injection in the samba-client Node.js library allows attackers to execute arbitrary commands via process.exec.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2021-27185?
CVE-2021-27185 is a critical command injection vulnerability in n/a, published on 10 Feb 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
The samba-client package before 4.0.0 for Node.js allows command injection because of the use of process.exec.
Weakness: CWE-77
Which versions are affected by CVE-2021-27185?
2 open source packages ship an affected version, including samba-client. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
samba-client npm | All versions | 4.0.0 |
samba-client npm | All versions | 4.0.0 |
Products include Samba-Client Project Samba-Client.
How do I fix CVE-2021-27185?
Upgrade samba-client to 4.0.0 or later.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2021-27185 being exploited?
There is no known exploitation of CVE-2021-27185 in the wild and no public exploit code.
Sources
Also known as GHSA-r3j7-x2g5-9gx6.