GHSA-54qm-37qr-w5wq Sandbox Breakout / Arbitrary Code Execution in veval

Not scored Published

Attackers can execute arbitrary code by bypassing the sandbox 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-54qm-37qr-w5wq?

GHSA-54qm-37qr-w5wq is a code injection vulnerability in veval, 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 veval 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-54qm-37qr-w5wq?

2 open source packages ship an affected version, including veval.

PackageAffectedFixed in
veval npmFrom 0.0.0None
veval npmFrom 0.0.0None

How do I fix GHSA-54qm-37qr-w5wq?

No fix has been published for GHSA-54qm-37qr-w5wq 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-54qm-37qr-w5wq being exploited?

There is no known exploitation of GHSA-54qm-37qr-w5wq in the wild and no public exploit code.

Sources

Is GHSA-54qm-37qr-w5wq in your software?

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

Check your SBOMs for free