GHSA-fwfx-rrv8-crpf op_panic in the base runtime can force a panic in the runtime's containing thread

Not scored Published

An exposed panic operation in the Deno core library allows attackers to crash the host thread, causing a denial of service.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is GHSA-fwfx-rrv8-crpf?

GHSA-fwfx-rrv8-crpf is a denial of service vulnerability in rustyscript, 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.

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-fwfx-rrv8-crpf?

3 open source packages ship an affected version, including rustyscript.

PackageAffectedFixed in
rustyscript crates.ioFrom 0.3.1-00.6.1
rustyscript crates.ioFrom 0.4.00.6.1
rustyscript crates.ioFrom 0.4.00.6.1

How do I fix GHSA-fwfx-rrv8-crpf?

Upgrade rustyscript to 0.6.1 or later.

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-fwfx-rrv8-crpf being exploited?

There is no known exploitation of GHSA-fwfx-rrv8-crpf in the wild and no public exploit code.

Sources

Also known as RUSTSEC-2024-0405.

Is GHSA-fwfx-rrv8-crpf in your software?

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

Check your SBOMs for free