GHSA-fwfx-rrv8-crpf: Rustyscript Remote Code Execution Vulnerability
MODERATEGHSA-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
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.
Upgrade rustyscript to 0.6.1
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
GHSA-fwfx-rrv8-crpf Affected Rustyscript Versions
1 component(s)| 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?
Which Rustyscript versions are affected?
What version fixes GHSA-fwfx-rrv8-crpf?
Is rustyscript affected?
What CWE is associated with GHSA-fwfx-rrv8-crpf?
How can I check crates.io dependencies for GHSA-fwfx-rrv8-crpf?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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
}
}