CVE-2017-16088
UNKNOWN
Published 2018-06-07T02:00:00Z
Actions:
Expert Analysis
Professional remediation guidance
Get tailored security recommendations from our analyst team for CVE-2017-16088. We'll provide specific mitigation strategies based on your environment and risk profile.
No CVSS data available
Description
The safe-eval module describes itself as a safer version of eval. By accessing the object constructors, un-sanitized user input can access the entire standard library and effectively break out of the sandbox.
Available Exploits
No exploits available for this CVE.
Related News
No news articles found for this CVE.
Affected Products
Affected Versions:
GitHub Security Advisories
Community-driven vulnerability intelligence from GitHub
Advisory Details
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
Affected Packages
npm
safe-eval
ECOSYSTEM:
≥0
≤0.3.0
CVSS Scoring
CVSS Score
9.0
CVSS Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
References
Advisory provided by GitHub Security Advisory Database. Published: July 18, 2018, Modified: September 11, 2023
References
Published: 2018-06-07T02:00:00Z
Last Modified: 2024-09-16T16:13:38.445Z
Copied to clipboard!