CVE-2020-28422 Command Injection
Attackers can execute arbitrary commands via the exports function in the git-archive npm package, requiring an upgrade to mitigate.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2020-28422?
CVE-2020-28422 is a medium-severity command injection vulnerability in git-archive, published on 25 Jul 2022. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
All versions of package git-archive are vulnerable to Command Injection via the exports function.
Weakness: CWE-77
Which versions are affected by CVE-2020-28422?
2 open source packages ship an affected version, including git-archive. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
git-archive npm | All versions to 0.1.4 | None |
git-archive npm | All versions to 0.1.4 | None |
Products include Git-Archive Project Git-Archive.
How do I fix CVE-2020-28422?
No fix has been published for CVE-2020-28422 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-2020-28422 being exploited?
There is no known exploitation of CVE-2020-28422 in the wild and no public exploit code.
Sources
Also known as GHSA-vqgr-mfxm-47f3.