CVE-2021-23326 Command Injection
Attackers can execute arbitrary commands via the git-loader package, requiring developers to upgrade to a patched version.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2021-23326?
CVE-2021-23326 is a medium-severity command injection vulnerability in @graphql-tools/git-loader, published on 20 Jan 2021. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
This affects the package @graphql-tools/git-loader before 6.2.6. The use of exec and execSync in packages/loaders/git/src/load-git.ts allows arbitrary command injection.
Weakness: CWE-78
Which versions are affected by CVE-2021-23326?
2 open source packages ship an affected version, including @graphql-tools/git-loader. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
@graphql-tools/git-loader npm | All versions | 6.2.6 |
@graphql-tools/git-loader npm | All versions | 6.2.6 |
Products include The-Guild Graphql-Tools.
How do I fix CVE-2021-23326?
Upgrade @graphql-tools/git-loader to 6.2.6 or later.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2021-23326 being exploited?
There is no known exploitation of CVE-2021-23326 in the wild and no public exploit code.
Sources
Also known as GHSA-vhhw-xjvf-wprr, SNYK-JS-GRAPHQLTOOLSGITLOADER-1062543.