CVE-2022-25923 exec-local-bin vulnerable to Command Injection
Attackers can execute arbitrary commands via improper input sanitization in the exec-local-bin npm package.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-25923?
CVE-2022-25923 is a high-severity command injection vulnerability in exec-local-bin, published on 6 Jan 2023. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
Versions of the package exec-local-bin before 1.2.0 are vulnerable to Command Injection via the theProcess() functionality due to improper user-input sanitization.
Which versions are affected by CVE-2022-25923?
2 open source packages ship an affected version, including exec-local-bin. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
exec-local-bin npm | All versions | 1.2.0 |
exec-local-bin npm | All versions | 1.2.0 |
Products include Exec-Local-Bin Project Exec-Local-Bin.
How do I fix CVE-2022-25923?
Upgrade exec-local-bin to 1.2.0 or later.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2022-25923 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-25923 exists.
Sources
Also known as GHSA-f259-h6m8-hm8m.