GitHub Advisoryadvisory · npm

GHSA-qffw-8wg7-h665 Command injection in git-interface

CRITICAL Published 2022-04-23 Modified 2022-04-29 Official page ↗
Aliases
CVE-2022-1440
Ecosystem
npm
Packages
git-interface
Severity
Critical
CVSS vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weaknesses
CWE-78, CWE-88
Reviewed
2022-04-26

Affected packages

• npm git-interface: < 2.1.2 → fixed in 2.1.2

Description

A command injection vulnerability exists in git-interface in the GitHub repository yarkeev/git-interface prior to 2.1.2. If both the git remote and destination directory are provided by user input, then the use of an `--upload-pack` command-line argument feature of git is also supported for `git clone`, which would then allow for any operating system command to be spawned by the attacker.

Related

Alias · CVE (1)

Weakness · CWE (2)

  • CWE-78 Improper Neutralization of Special Elements used in an OS Command weakness
  • CWE-88 Improper Neutralization of Argument Delimiters in a Command weakness

References