9.8critical
OS Command Injection in async-git
- Severity
- 9.8critical CVSS:3.1 by NVD
- Exploit likelihood
- 5.39% (higher than 93% of CVEs)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- GHSA-6c3f-p5wp-34mh
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| async-git (npm) | before 1.13.2 | GitHub Advisory Database |
| async-git_project async-git | before 1.13.2 | NVD |
All scores
| GitHub | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 7.5high CVSS:2.0 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Classification
What each source says
CVE List
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.
GitHub Advisory Database
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.
NVD (es)
El paquete async-git versiones anteriores a 1.13.2 para Node.js, permite una Inyección de Comandos del Sistema Operativo por medio de metacaracteres de shell, como es demostrado por git.reset y git.tag
References
| https://github.com/omrilotan/async-git/pull/13 | third-party-advisory, web | |
| https://github.com/omrilotan/async-git/pull/13/commits/a5f45f58941006c4cc1699609383b533d9b92c6a | patch, third-party-advisory, web | |
| https://github.com/omrilotan/async-git/pull/13/commits/611823bd97dd41e9e8127c38066868ff9dcfa57a | patch, third-party-advisory, web | |
| https://github.com/omrilotan/async-git/pull/14 | patch, third-party-advisory, web | |
| https://advisory.checkmarx.net/advisory/CX-2021-4772 | exploit, third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2021-3190 | advisory | |
| https://github.com/omrilotan/async-git | package | |
| https://www.npmjs.com/package/async-git | web | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-3190 changed 2024-08-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-6c3f-p5wp-34mh changed 2023-11-08 | CC-BY-4.0 |
| NVD | CVE-2021-3190 changed 2026-06-17 | Public domain |