Advisory

RUSTSEC-2024-0405

Also known as: GHSA-fwfx-rrv8-crpf

Summary

op_panic in the base runtime can force a panic in the runtime's containing thread

Details

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) };

Severity

Not rated by the source.

Dates

Published
2024-07-18 12:00 UTC
Modified
2025-10-28 06:29 UTC

Affected packages and fixes

rustyscript

crates.io · All systems

Affected

  • introduced 0.3.1-0, fixed 0.6.1 (semver)

Fixed versions

0.6.1

Fix

  • Fixed version 0.6.1
    cargo update -p rustyscript --precise 0.6.1

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: RustSec Advisory Database · CC0-1.0

Sources & licences