GHSA-mcmr-49x3-4jqm: Ckb Ckb Type_id Script Resume May Vulnerability
HIGHGHSA-mcmr-49x3-4jqm is a HIGH ckb type_id script resume may vulnerability (General Security Weakness) affecting Ckb libraries in the crates.io ecosystem. The issue involves ckb type_id script resume may randomly fail. Remediation is available by upgrading affected packages to version 0.102.0.
GHSA-mcmr-49x3-4jqm at a Glance
How to Fix GHSA-mcmr-49x3-4jqm
To remediate this vulnerability, upgrade all affected Ckb 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 ckb to 0.102.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for ckb
How to Check if You Are Affected
To determine whether your application is affected by GHSA-mcmr-49x3-4jqm, inspect your project dependencies for Ckb:
inspect dependencies for ckb
Analyze the terminal output to locate any version of Ckb in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.102.0), 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 Ckb, 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-mcmr-49x3-4jqm Affected Ckb Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
ckb
|
crates.io |
≥ 0.100.0
< 0.102.0
|
0.102.0
|
References
Frequently Asked Questions
What is GHSA-mcmr-49x3-4jqm?
Which Ckb versions are affected?
What version fixes GHSA-mcmr-49x3-4jqm?
Is ckb affected?
What CWE is associated with GHSA-mcmr-49x3-4jqm?
How can I check crates.io dependencies for GHSA-mcmr-49x3-4jqm?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-mcmr-49x3-4jqm",
"modified" : "2022-11-02T18:15:07Z",
"published" : "2022-11-02T18:15:07Z",
"aliases" : [ ],
"summary" : "ckb type_id script resume may randomly fail",
"details" : "### Impact\nhttps://github.com/nervosnetwork/ckb/blob/v0.101.2/script/src/verify.rs#L871-L879\nTypeIdSystemScript resume handle is not correct when max_cycles is not enough, `ScriptError::ExceededMaximumCycles` will be raised directly ranther than suspend as expect, and also because script_group execution order is random, so this will happen randomly.\n\n\n\n",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "crates.io",
"name" : "ckb"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0.100.0"
}, {
"fixed" : "0.102.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/nervosnetwork/ckb/security/advisories/GHSA-mcmr-49x3-4jqm"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/nervosnetwork/ckb"
}, {
"type" : "WEB",
"url" : "https://github.com/nervosnetwork/ckb/blob/v0.101.2/script/src/verify.rs#L871-L879"
} ],
"database_specific" : {
"cwe_ids" : [ ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2022-11-02T18:15:07Z",
"nvd_published_at" : null
}
}