CVE-2020-28490: Command Injection in async-git
9.8
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.89543%
CWE
Published
4/12/2021
Updated
9/7/2023
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
async-git | npm | < 1.13.2 | 1.13.2 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from how user-supplied input (like reset destination) was passed directly to git commands via exec without proper sanitization. The commit diff shows the patched version replaced exec with spawn (which avoids shell interpretation) and added check-ref-format validation. The reset function was specifically called out in the vulnerability example and was modified in the patch, making it the clear entry point for injection.