CVE-2017-16088
CRITICAL10.0EPSS 2.1%Sandbox Breakout in safe-eval
發布日:2018/7/18修改日:2023/11/8
描述
Affected versions of `safe-eval` are vulnerable to a sandbox escape. By accessing object constructors, un-sanitized user input can access the entire standard library and effectively break out of the sandbox. ## Proof of Concept: This code accesses the process object and calls `.exit()` ```js var safeEval = require('safe-eval'); safeEval("this.constructor.constructor('return process')().exit()"); ``` ## Recommendation Update to version 0.4.0 or later
受影響套件(1)
- npm/safe-evalfrom 0, <= 0.3.0
CVSS 分數
| 來源 | 版本 | 嚴重程度 | 向量 |
|---|---|---|---|
| osv | CVSS 3.1 | CRITICAL10.0 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H |
參考連結(6)
- ADVISORYhttps://github.com/advisories/GHSA-ww6v-677g-p656
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2017-16088
- WEBhttps://github.com/hacksparrow/safe-eval/issues/5
- WEBhttps://github.com/hacksparrow/safe-eval/pull/13
- WEBhttps://github.com/patriksimek/vm2/issues/59
- WEBhttps://www.npmjs.com/advisories/337