CVE-2017-16088 Sandbox Breakout in safe-eval

Critical 10.0 Published Updated

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.

PackageAffectedFixed in
safe-eval npmAll versions to 0.3.0None
safe-eval npmAll versions to 0.3.0None

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.

Sources

Also known as GHSA-ww6v-677g-p656.

Is CVE-2017-16088 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free