GHSA-876r-hj45-fw7g Sandbox Breakout / Arbitrary Code Execution in safer-eval
Attackers can escape the sandbox and execute arbitrary code by forcing recursive exceptions in evaluated input, affecting applications using safer-eval.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is GHSA-876r-hj45-fw7g?
GHSA-876r-hj45-fw7g is a code injection vulnerability in safer-eval, published on 3 Sep 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
All versions of safer-eval are vulnerable to Sandbox Escape leading to Remote Code Execution. It is possible to escape the sandbox by forcing exceptions recursively in the evaluated code. This may allow attacker to execute arbitrary code in the system.
Recommendation
The package is not suited to receive arbitrary user input. Consider using an alternative package.
Which versions are affected by GHSA-876r-hj45-fw7g?
2 open source packages ship an affected version, including safer-eval.
| Package | Affected | Fixed in |
|---|---|---|
safer-eval npm | From 0.0.0 | None |
safer-eval npm | From 0.0.0 | None |
How do I fix GHSA-876r-hj45-fw7g?
No fix has been published for GHSA-876r-hj45-fw7g 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 GHSA-876r-hj45-fw7g being exploited?
There is no known exploitation of GHSA-876r-hj45-fw7g in the wild and no public exploit code.