CVE-2021-3190 OS Command Injection in async-git
An attacker can execute arbitrary OS commands via shell metacharacters in the async-git Node.js library, requiring an upgrade to fix.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2021-3190?
CVE-2021-3190 is a critical command injection vulnerability in n/a, published on 21 Jan 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
The async-git package before 1.13.2 for Node.js allows OS Command Injection via shell metacharacters, as demonstrated by git.reset and git.tag.
Weakness: CWE-78
Which versions are affected by CVE-2021-3190?
2 open source packages ship an affected version, including async-git. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
async-git npm | All versions | 1.13.2 |
async-git npm | All versions | 1.13.2 |
Products include Async-Git Project Async-Git.
How do I fix CVE-2021-3190?
Upgrade async-git to 1.13.2 or later.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2021-3190 being exploited?
There is no known exploitation of CVE-2021-3190 in the wild and no public exploit code.
Other vulnerabilities in n/a
Sources
Also known as GHSA-6c3f-p5wp-34mh.