CVE-2017-16088 Sandbox Breakout in safe-eval
Attackers can execute arbitrary code by accessing object constructors in the safe-eval Node.js module, bypassing its sandbox restrictions.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2017-16088?
CVE-2017-16088 is a critical code injection vulnerability in HackerOne safe-eval node module, published on 7 Jun 2018. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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.
Weakness: CWE-610
Which versions are affected by CVE-2017-16088?
2 open source packages ship an affected version, including safe-eval. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
safe-eval npm | All versions to 0.3.0 | None |
safe-eval npm | All versions to 0.3.0 | None |
Products include Safe-Eval Project Safe-Eval.
How do I fix CVE-2017-16088?
No fix has been published for CVE-2017-16088 yet. Limit exposure of the affected software until one is available.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2017-16088 being exploited?
There is no known exploitation of CVE-2017-16088 in the wild and no public exploit code.
Public exploit code: 1 proofs of concept on GitHub.
Other vulnerabilities in HackerOne safe-eval node module
Sources
Also known as GHSA-ww6v-677g-p656.