GHSA-4mw5-2636-4535 op_panic in the base runtime can force a panic in the runtime's containing thread

Not scored Published

Attackers can crash the host thread and break sandboxing by calling an exposed panic function in the Deno core runtime.

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-4mw5-2636-4535?

GHSA-4mw5-2636-4535 is a denial of service vulnerability in js-sandbox, published on 18 Jul 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Affected versions use deno_core releases that expose Deno.core.ops.op_panic to the JS runtime in the base core

This function when called triggers a manual panic in the thread containing the runtime, breaking sandboxing

It can be fixed by stubbing out the exposed op:

Deno.core.ops.op_panic = (msg) => { throw new Error(msg) };

Which versions are affected by GHSA-4mw5-2636-4535?

3 open source packages ship an affected version, including js-sandbox.

PackageAffectedFixed in
js-sandbox crates.ioAll versions to 0.1.6None
js-sandbox crates.ioAll versions to 0.1.6None
js-sandbox crates.ioFrom 0.0.0-0None

How do I fix GHSA-4mw5-2636-4535?

No fix has been published for GHSA-4mw5-2636-4535 yet. Limit exposure of the affected software until one is available.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is GHSA-4mw5-2636-4535 being exploited?

There is no known exploitation of GHSA-4mw5-2636-4535 in the wild and no public exploit code.

Sources

Also known as RUSTSEC-2024-0403.

Is GHSA-4mw5-2636-4535 in your software?

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

Check your SBOMs for free