CRITICAL9.8
GHSA-6c3f-p5wp-34mh
OS Command Injection in async-git
Quick fix
GHSA-6c3f-p5wp-34mh — async-git: upgrade to the fixed version with the command below.
npm install async-git@1.13.2Details
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. This issue may lead to remote code execution if a client of the library calls the vulnerable method with untrusted input. Ensure to sanitize untrusted user input before passing it to one of the vulnerable functions as a workaround or update async-git to version 1.13.1.
Are you affected?
Enter the version of the package you're using.
Affected packages
References
- https://nvd.nist.gov/vuln/detail/CVE-2021-3190[ADVISORY]
- https://github.com/omrilotan/async-git/pull/13[WEB]
- https://github.com/omrilotan/async-git/pull/13/commits/611823bd97dd41e9e8127c38066868ff9dcfa57a[WEB]
- https://github.com/omrilotan/async-git/pull/13/commits/a5f45f58941006c4cc1699609383b533d9b92c6a[WEB]
- https://github.com/omrilotan/async-git/pull/14[WEB]
- https://advisory.checkmarx.net/advisory/CX-2021-4772[WEB]
- https://github.com/omrilotan/async-git[PACKAGE]
- https://www.npmjs.com/package/async-git[WEB]