GHSA-fwfx-rrv8-crpf: Rustyscript Remote Code Execution Vulnerability

MODERATE
Published
Advisory Summary

GHSA-fwfx-rrv8-crpf is a MODERATE remote code execution vulnerability (General Security Weakness) affecting Rustyscript libraries in the crates.io ecosystem. The issue involves op_panic in the base runtime can force a panic in the runtime's containing thread. Remediation is available by upgrading affected packages to version 0.6.1.

GHSA-fwfx-rrv8-crpf at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-fwfx-rrv8-crpf
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product Rustyscript
Package Ecosystem crates.io
Published Date
Last Updated

How to Fix GHSA-fwfx-rrv8-crpf

To remediate this vulnerability, upgrade all affected Rustyscript dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

rustyscript fixed: 0.6.1
Upgrade rustyscript to 0.6.1
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for rustyscript

How to Check if You Are Affected

To determine whether your application is affected by GHSA-fwfx-rrv8-crpf, inspect your project dependencies for Rustyscript:

inspect dependencies for rustyscript

Analyze the terminal output to locate any version of Rustyscript in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.6.1), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under General Security Weakness. In Rustyscript, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

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: ```javascript Deno.core.ops.op_panic = (msg) => { throw new Error(msg) }; ```

GHSA-fwfx-rrv8-crpf Affected Rustyscript Versions

1 component(s)
Fixed Versions:
0.6.1
Product / Package Ecosystem Affected Versions Fixed Version
rustyscript
crates.io
≥ 0.4.0
< 0.6.1
0.6.1

References

Frequently Asked Questions

What is GHSA-fwfx-rrv8-crpf?
GHSA-fwfx-rrv8-crpf is a security vulnerability in Rustyscript involving op_panic in the base runtime can force a panic in the runtime's containing thread under General Security Weakness.
Which Rustyscript versions are affected?
Affected versions include releases prior to 0.6.1 across affected packages: rustyscript.
What version fixes GHSA-fwfx-rrv8-crpf?
Upgrading to 0.6.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is rustyscript affected?
Yes, rustyscript is affected in releases prior to 0.6.1. Upgrade your dependency to 0.6.1 or later.
What CWE is associated with GHSA-fwfx-rrv8-crpf?
GHSA-fwfx-rrv8-crpf is classified under General Security Weakness.
How can I check crates.io dependencies for GHSA-fwfx-rrv8-crpf?
Run the dependency tree command: 'inspect dependencies for rustyscript'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-fwfx-rrv8-crpf",
  "modified" : "2024-12-04T18:37:39Z",
  "published" : "2024-12-04T18:37:39Z",
  "aliases" : [ ],
  "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\n\nThis function when called triggers a manual panic in the thread containing the runtime.\n\nIt can be fixed by stubbing out the exposed op:\n```javascript\nDeno.core.ops.op_panic = (msg) => { throw new Error(msg) };\n```",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "crates.io",
      "name" : "rustyscript"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.4.0"
      }, {
        "fixed" : "0.6.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/rscarson/rustyscript/issues/174"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/rscarson/rustyscripthttps://github.com/rscarson/rustyscript"
  }, {
    "type" : "WEB",
    "url" : "https://rustsec.org/advisories/RUSTSEC-2024-0405.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-12-04T18:37:39Z",
    "nvd_published_at" : null
  }
}