CVE-2022-25962 Command injection in vagrant.js
Attackers can execute arbitrary commands via the boxAdd function in the vagrant.js library due to improper input sanitization.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2022-25962?
CVE-2022-25962 is a high-severity command injection vulnerability in vagrant.js, published on 25 Jan 2023. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
All versions of the package vagrant.js are vulnerable to Command Injection via the boxAdd function due to improper input sanitization.
Which versions are affected by CVE-2022-25962?
2 open source packages ship an affected version, including vagrant.js. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
vagrant.js npm | All versions to 0.0.4 | None |
vagrant.js npm | All versions to 0.0.4 | None |
Products include Vagrant.js Project Vagrant.js.
How do I fix CVE-2022-25962?
No fix has been published for CVE-2022-25962 yet. Limit exposure of the affected software until one is available.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2022-25962 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-25962 exists.
Sources
Also known as GHSA-54jw-jqr9-6cj9.