GHSA-9mfc-chwf-7whf: ckb Remote Code Execution Vulnerability
MODERATEGHSA-9mfc-chwf-7whf is a MODERATE remote code execution vulnerability (General Security Weakness) affecting ckb libraries in the crates.io ecosystem. The issue involves large dep group requires a lot of resources to process but the cost to commit the transaction is very low.. Remediation is available by upgrading affected packages to version 0.43.3.
GHSA-9mfc-chwf-7whf at a Glance
How to Fix GHSA-9mfc-chwf-7whf
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.43.3
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-9mfc-chwf-7whf, 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.43.3), 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-9mfc-chwf-7whf Affected ckb Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
ckb
|
crates.io |
< 0.43.3
|
0.43.3
|
References
Frequently Asked Questions
What is GHSA-9mfc-chwf-7whf?
Which ckb versions are affected?
What version fixes GHSA-9mfc-chwf-7whf?
Is ckb affected?
What CWE is associated with GHSA-9mfc-chwf-7whf?
How can I check crates.io dependencies for GHSA-9mfc-chwf-7whf?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-9mfc-chwf-7whf",
"modified" : "2022-11-02T18:14:01Z",
"published" : "2022-11-02T18:14:01Z",
"aliases" : [ ],
"summary" : "ckb: Large dep group requires a lot of resources to process but the cost to commit the transaction is very low.",
"details" : "### Impact\n\nWhen a transaction contains a dep group with many cells, the resources required to process it are not linear to the transaction size nor spent script cycles. \n\n### Patches\n\nIn 0.43.3, nodes drop the transactions relayed to them when they contain a dep group with more than 64 cells. They do not ban peers who send them such transactions.\n\nIn 0.100, the consensus disallow transactions using a dep group with more than 64 cells. Peers relaying such transaction must be banned. Blocks committing such transactions must be rejected.\n",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "crates.io",
"name" : "ckb"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.43.3"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/nervosnetwork/ckb/security/advisories/GHSA-9mfc-chwf-7whf"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/nervosnetwork/ckb"
} ],
"database_specific" : {
"cwe_ids" : [ ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2022-11-02T18:14:01Z",
"nvd_published_at" : null
}
}