GHSA-7fw6-6mfj-g3q2: ckb Transaction Header_deps Validation Issue (network Vulnerability

CRITICAL
Published
Advisory Summary

GHSA-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

CVE Identifier N/A
GHSA Identifier GHSA-7fw6-6mfj-g3q2
Severity CRITICAL
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product ckb
Package Ecosystem crates.io
Published Date
Last Updated

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.

ckb fixed: 0.101.1
Upgrade ckb to 0.101.1
Verify Direct and Transitive Dependencies

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

### Impact fn `HeaderChecker#check_valid` skipped main chain checking after this PR: https://github.com/nervosnetwork/ckb/pull/1646/files#diff-c4e017b67c1b3005ca0c446a9b0879571aa36a858b1f7ddd1b9328a884e3214bR171-R176 It will cause network forking if one transaction is using a forked block header which is not exists in local node's storage. ### Patches 0.101.1 and later versions

GHSA-7fw6-6mfj-g3q2 Affected ckb Versions

1 component(s)
Fixed Versions:
0.101.1
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?
GHSA-7fw6-6mfj-g3q2 is a security vulnerability in ckb involving Transaction header_deps validation issue (network forking) under General Security Weakness.
Which ckb versions are affected?
Affected versions include releases prior to 0.101.1 across affected packages: ckb.
What version fixes GHSA-7fw6-6mfj-g3q2?
Upgrading to 0.101.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is ckb affected?
Yes, ckb is affected in releases prior to 0.101.1. Upgrade your dependency to 0.101.1 or later.
What CWE is associated with GHSA-7fw6-6mfj-g3q2?
GHSA-7fw6-6mfj-g3q2 is classified under General Security Weakness.
How can I check crates.io dependencies for GHSA-7fw6-6mfj-g3q2?
Run the dependency tree command: 'inspect dependencies for ckb'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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
  }
}