GitHub Advisoryadvisory · npm

GHSA-6c3f-p5wp-34mh OS Command Injection in async-git

CRITICAL Published 2021-01-29 Modified 2022-05-03 Official page ↗
Aliases
CVE-2021-3190
Ecosystem
npm
Packages
async-git
Severity
Critical
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weaknesses
CWE-78
Reviewed
2021-01-27

Affected packages

• npm async-git: < 1.13.2 → fixed in 1.13.2

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. 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.

Related

Alias · CVE (1)

  • CVE-2021-3190 The async-git package before 1.13.2 for Node.js allows OS Command Injection via shell metacharacters, as demonstrated by git.reset and… vulnerability

Weakness · CWE (1)

  • CWE-78 Improper Neutralization of Special Elements used in an OS Command weakness

References