GHSA-gc25-3vc5-2jf9 Sandbox Breakout / Arbitrary Code Execution in sandbox
Attackers can execute arbitrary code by bypassing the sandbox context via constructor access, leading to full system compromise.
- 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-gc25-3vc5-2jf9?
GHSA-gc25-3vc5-2jf9 is a code injection vulnerability in sandbox, published on 4 Sep 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
All versions of sandbox are vulnerable to Sandbox Escape leading to Remote Code Execution. The package fails to restrict access to the main context through this.constructor.constructor . This may allow attackers to execute arbitrary code in the system. Evaluating the payload this.constructor.constructor('return process.env')() prints the contents of process.env.
Recommendation
No fix is currently available. Consider using an alternative package until a fix is made available.
Which versions are affected by GHSA-gc25-3vc5-2jf9?
2 open source packages ship an affected version, including sandbox.
| Package | Affected | Fixed in |
|---|---|---|
sandbox npm | From 0.0.0 | None |
sandbox npm | From 0.0.0 | None |
How do I fix GHSA-gc25-3vc5-2jf9?
No fix has been published for GHSA-gc25-3vc5-2jf9 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-gc25-3vc5-2jf9 being exploited?
There is no known exploitation of GHSA-gc25-3vc5-2jf9 in the wild and no public exploit code.