CVE-2020-7630 OS Command Injection in git-add-remote
Attackers can execute arbitrary commands via the name argument in the git-add-remote npm library, requiring an upgrade to mitigate.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2020-7630?
CVE-2020-7630 is a critical command injection vulnerability in git-add-remote, published on 2 Apr 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
git-add-remote through 1.0.0 is vulnerable to Command Injection. It allows execution of arbitrary commands via the name argument.
Weakness: CWE-78
Which versions are affected by CVE-2020-7630?
2 open source packages ship an affected version, including git-add-remote. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
git-add-remote npm | All versions to 1.0.0 | None |
git-add-remote npm | All versions to 1.0.0 | None |
Products include Git-Add-Remote Project Git-Add-Remote.
How do I fix CVE-2020-7630?
No fix has been published for CVE-2020-7630 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-7630 being exploited?
There is no known exploitation of CVE-2020-7630 in the wild and no public exploit code.
Sources
Also known as GHSA-h9v8-rm3m-5h5f, SNYK-JS-GITADDREMOTE-564269.