CVE-2022-21186 Arbitrary Command Injection
Attackers can execute arbitrary commands via unsanitized input in the fetchRepo API of the @acrontum/filesystem-template npm package.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-21186?
CVE-2022-21186 is a critical command injection vulnerability in @acrontum/filesystem-template, published on 5 Aug 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
The package @acrontum/filesystem-template before 0.0.2 are vulnerable to Arbitrary Command Injection due to the fetchRepo API missing sanitization of the href field of external input.
Which versions are affected by CVE-2022-21186?
2 open source packages ship an affected version, including @acrontum/filesystem-template. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
@acrontum/filesystem-template npm | All versions | 0.0.2 |
@acrontum/filesystem-template npm | All versions | 0.0.2 |
Products include Acrontum Filesystem-Template.
How do I fix CVE-2022-21186?
Upgrade @acrontum/filesystem-template to 0.0.2 or later.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2022-21186 being exploited?
There is no known exploitation of CVE-2022-21186 in the wild and no public exploit code.
Sources
Also known as GHSA-m2fc-9h5m-29cm.