GHSA-c3hq-7mxh-mqxf Sandbox Breakout / Arbitrary Code Execution in lighter-vm

Not scored Published

Attackers can execute arbitrary code by bypassing the sandbox in lighter-vm via constructor access, requiring immediate replacement of the library.

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-c3hq-7mxh-mqxf?

GHSA-c3hq-7mxh-mqxf is a code injection vulnerability in lighter-vm, 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 lighter-vm 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-c3hq-7mxh-mqxf?

2 open source packages ship an affected version, including lighter-vm.

PackageAffectedFixed in
lighter-vm npmFrom 0.0.0None
lighter-vm npmFrom 0.0.0None

How do I fix GHSA-c3hq-7mxh-mqxf?

No fix has been published for GHSA-c3hq-7mxh-mqxf 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-c3hq-7mxh-mqxf being exploited?

There is no known exploitation of GHSA-c3hq-7mxh-mqxf in the wild and no public exploit code.

Sources

Is GHSA-c3hq-7mxh-mqxf in your software?

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

Check your SBOMs for free