GHSA-q73f-w3h7-7wcc: Ckb Nervos CKB Transaction Which Calls Vulnerability

CRITICAL
Published
Advisory Summary

GHSA-q73f-w3h7-7wcc is a CRITICAL nervos ckb transaction which calls vulnerability (General Security Weakness) affecting Ckb libraries in the crates.io ecosystem. The issue involves nervos ckb transaction which calls syscall load_cell_data_hash has nondeterministic result. Remediation is available by upgrading affected packages to version 0.34.2.

GHSA-q73f-w3h7-7wcc at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-q73f-w3h7-7wcc
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-q73f-w3h7-7wcc

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.34.2
Upgrade ckb to 0.34.2
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-q73f-w3h7-7wcc, 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.34.2), 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 Tx-pool verify transaction which inputs' script contains `load_cell_data_hash` is nondeterministic ### Workarounds Enforce tx-pool ResolvedTrascation inputs' load data is none.

GHSA-q73f-w3h7-7wcc Affected Ckb Versions

1 component(s)
Fixed Versions:
0.34.2
Product / Package Ecosystem Affected Versions Fixed Version
ckb
crates.io
< 0.34.2
0.34.2

References

Frequently Asked Questions

What is GHSA-q73f-w3h7-7wcc?
GHSA-q73f-w3h7-7wcc is a security vulnerability in Ckb involving Nervos CKB Transaction which calls syscall load_cell_data_hash has nondeterministic result under General Security Weakness.
Which Ckb versions are affected?
Affected versions include releases prior to 0.34.2 across affected packages: ckb.
What version fixes GHSA-q73f-w3h7-7wcc?
Upgrading to 0.34.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is ckb affected?
Yes, ckb is affected in releases prior to 0.34.2. Upgrade your dependency to 0.34.2 or later.
What CWE is associated with GHSA-q73f-w3h7-7wcc?
GHSA-q73f-w3h7-7wcc is classified under General Security Weakness.
How can I check crates.io dependencies for GHSA-q73f-w3h7-7wcc?
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-q73f-w3h7-7wcc",
  "modified" : "2024-02-03T00:18:13Z",
  "published" : "2024-02-03T00:18:13Z",
  "aliases" : [ ],
  "summary" : "Nervos CKB Transaction which calls syscall load_cell_data_hash has nondeterministic result",
  "details" : "### Impact\nTx-pool verify transaction which inputs' script contains `load_cell_data_hash` is nondeterministic\n\n\n### Workarounds\nEnforce tx-pool ResolvedTrascation inputs' load data is none.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "crates.io",
      "name" : "ckb"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.34.2"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 0.34.1"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/nervosnetwork/ckb/security/advisories/GHSA-q73f-w3h7-7wcc"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/nervosnetwork/ckb/commit/01eb5b2ecadf7e421b117d6c013e182978746e2f"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/nervosnetwork/ckb/commit/fe83220905599e72c97878295f4769e91348d738"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/nervosnetwork/ckb/commit/ff88b48779358e038209f3ac1bc1061e6f4deb13"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-02-03T00:18:13Z",
    "nvd_published_at" : null
  }
}