CVE-2018-16460
ps Enables OS Command Injection
9.8
CRITICAL
CVSS 3.1
EPSS 3.5%
描述
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.
如何修補 CVE-2018-16460
要修補 CVE-2018-16460,請將受影響套件升級到下列已修補版本。
- —升級至 1.0.0 或更新版本
CVE-2018-16460 正在被利用嗎?
低 — EPSS 為 3.5%,目前沒有觀察到大規模利用活動。
受影響套件(1)
- from 0, < 1.0.0
CVSS 分數
| 來源 | 版本 | 嚴重程度 | 向量 |
|---|---|---|---|
| osv | CVSS 3.1 | CRITICAL9.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |