GHSA-45p7-c959-rgcm: Ckb Process Crashes When The Cell Vulnerability
CRITICALGHSA-45p7-c959-rgcm is a CRITICAL process crashes when the cell vulnerability (General Security Weakness) affecting Ckb libraries in the crates.io ecosystem. The issue involves process crashes when the cell used as depgroup is not alive. Remediation is available by upgrading affected packages to version 0.40.0.
GHSA-45p7-c959-rgcm at a Glance
How to Fix GHSA-45p7-c959-rgcm
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.40.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-45p7-c959-rgcm, 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.40.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-45p7-c959-rgcm Affected Ckb Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
ckb
|
crates.io |
< 0.40.0
|
0.40.0
|
References
Frequently Asked Questions
What is GHSA-45p7-c959-rgcm?
Which Ckb versions are affected?
What version fixes GHSA-45p7-c959-rgcm?
Is ckb affected?
What CWE is associated with GHSA-45p7-c959-rgcm?
How can I check crates.io dependencies for GHSA-45p7-c959-rgcm?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-45p7-c959-rgcm",
"modified" : "2021-08-02T21:57:02Z",
"published" : "2021-08-25T21:01:18Z",
"aliases" : [ ],
"summary" : "Process crashes when the cell used as DepGroup is not alive",
"details" : "### Impact\n\nIt's easy to create a malign transaction which uses the dead cell as the DepGroup in the DepCells. The transaction can crash all the receiving nodes.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "crates.io",
"name" : "ckb"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.40.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/nervosnetwork/ckb/security/advisories/GHSA-45p7-c959-rgcm"
}, {
"type" : "WEB",
"url" : "https://rustsec.org/advisories/RUSTSEC-2021-0109.html"
} ],
"database_specific" : {
"cwe_ids" : [ ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2021-08-02T21:57:02Z",
"nvd_published_at" : null
}
}