GHSA-4x6x-782q-jfc4 Command Injection in node-wifi
Attackers can inject commands via the ssid variable in node-wifi, potentially achieving remote code execution on the host system.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is GHSA-4x6x-782q-jfc4?
GHSA-4x6x-782q-jfc4 is a command injection vulnerability in node-wifi, published on 3 Sep 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Versions of node-wifi prior to 2.0.12 are vulnerable to Command Injection. The package fails to sanitize user input, allowing attackers to inject commands through the ssid variable and possibly achieving Remote Code Execution on the system.
Recommendation
No fix is currently available. Consider using an alternative package until a fix is made available.
Which versions are affected by GHSA-4x6x-782q-jfc4?
2 open source packages ship an affected version, including node-wifi.
| Package | Affected | Fixed in |
|---|---|---|
node-wifi npm | All versions | 2.0.12 |
node-wifi npm | All versions | 2.0.12 |
How do I fix GHSA-4x6x-782q-jfc4?
Upgrade node-wifi to 2.0.12 or later.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is GHSA-4x6x-782q-jfc4 being exploited?
There is no known exploitation of GHSA-4x6x-782q-jfc4 in the wild and no public exploit code.