GHSA-7fw6-6mfj-g3q2: ckb Transaction Header_deps Validation Issue (network Vulnerability
CRITICALGHSA-7fw6-6mfj-g3q2 is a CRITICAL transaction header_deps validation issue (network vulnerability (General Security Weakness) affecting ckb libraries in the crates.io ecosystem. The issue involves transaction header_deps validation issue (network forking). Remediation is available by upgrading affected packages to version 0.101.1.
GHSA-7fw6-6mfj-g3q2 at a Glance
How to Fix GHSA-7fw6-6mfj-g3q2
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.101.1
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-7fw6-6mfj-g3q2, 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.101.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 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-7fw6-6mfj-g3q2 Affected ckb Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
ckb
|
crates.io |
< 0.101.1
|
0.101.1
|
References
Frequently Asked Questions
What is GHSA-7fw6-6mfj-g3q2?
Which ckb versions are affected?
What version fixes GHSA-7fw6-6mfj-g3q2?
Is ckb affected?
What CWE is associated with GHSA-7fw6-6mfj-g3q2?
How can I check crates.io dependencies for GHSA-7fw6-6mfj-g3q2?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-7fw6-6mfj-g3q2",
"modified" : "2022-11-02T18:14:30Z",
"published" : "2022-11-02T18:14:30Z",
"aliases" : [ ],
"summary" : "ckb: Transaction header_deps validation issue (network forking)",
"details" : "### Impact\nfn `HeaderChecker#check_valid` skipped main chain checking after this PR: https://github.com/nervosnetwork/ckb/pull/1646/files#diff-c4e017b67c1b3005ca0c446a9b0879571aa36a858b1f7ddd1b9328a884e3214bR171-R176\n\nIt will cause network forking if one transaction is using a forked block header which is not exists in local node's storage.\n\n### Patches\n\n0.101.1 and later versions",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "crates.io",
"name" : "ckb"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.101.1"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 0.101.0"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/nervosnetwork/ckb/security/advisories/GHSA-7fw6-6mfj-g3q2"
}, {
"type" : "WEB",
"url" : "https://github.com/nervosnetwork/ckb/pull/1646/files#diff-c4e017b67c1b3005ca0c446a9b0879571aa36a858b1f7ddd1b9328a884e3214bR171-R176"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/nervosnetwork/ckb"
} ],
"database_specific" : {
"cwe_ids" : [ ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2022-11-02T18:14:30Z",
"nvd_published_at" : null
}
}