← 返回列表

Command injection vulnerability via unsanitized CLI arguments in touxing/fast-git-clone

单站 Node.js Security 发布 Sat, 22 Nov 2025 00:00:00 GMT 入库 2026-11-17T04:09:36

\~ 1 min read

Command injection vulnerability via unsanitized CLI arguments in touxing/fast-git-clone

A command injection vulnerability exists for this command line tool that is available on the npmjs registry.

The following report is a disclosure of a command injection vulnerability discovered in the fast-git-clone command line tool, which is used to clone git repositories quickly. Unfortunately, the maintainer did not respond to multiple attempts to contact them regarding this security issue.

Resources:

Vulnerability Details

The fast-git-clone CLI accepts a URL as a command line argument for a remote repository to clone, such as:

fgc clone <repo>
The code in src/index.js on line 62 at the current tip of the branch makes use of command and command arguments concatenation from user input, which allows users to escape the git program and run any other arbitrary commands.

Exploitation

  1. Run fgc clone ";touch /tmp/clonepwn #"
  2. Observe the file /tmp/clonepwn created on the system.

Impact

This vulnerability is capable of allowing arbitrary commands on a system, even if users are only allowed to use fgc.

原文链接:https://www.nodejs-security.com/blog/command-injection-vulnerability-via-unsanitized-cli-arguments-in-touxing-fast-git-clone/