CVE-2020-7615: OS Command Injection in fsa
7.8
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.64023%
CWE
Published
12/9/2021
Updated
2/1/2023
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
fsa | npm | <= 0.5.1 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability report explicitly identifies execGitCommand()
in lib/rep.js#63
as the vulnerable function. Analysis of the source code shows it passes user-controlled input directly to exec()
without sanitization. The function constructs a git command string using untrusted input, enabling attackers to inject arbitrary commands via shell operators (e.g., ';', '&&', '|'). This matches the CWE-78 OS Command Injection pattern where user input flows unsafely into system commands.