GHSA-hjqq-29pw-96wj: Ckb Nervos CKB Node Panics When Vulnerability

HIGH
Published
Advisory Summary

GHSA-hjqq-29pw-96wj is a HIGH nervos ckb node panics when vulnerability (General Security Weakness) affecting Ckb libraries in the crates.io ecosystem. The issue involves nervos ckb node panics when processing a block which parent timestamp is too new. Remediation is available by upgrading affected packages to version 0.33.2, 0.34.1.

GHSA-hjqq-29pw-96wj at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-hjqq-29pw-96wj
Severity HIGH
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-hjqq-29pw-96wj

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.33.2
Upgrade ckb to 0.33.2
ckb fixed: 0.34.1
Upgrade ckb to 0.34.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-hjqq-29pw-96wj, 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.33.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 Adversary can initiate DOS attack by broadcasting two consecutive blocks with timestamps in the future. ### Patches Please upgrade to v0.34.1

GHSA-hjqq-29pw-96wj Affected Ckb Versions

2 component(s)
Fixed Versions:
0.33.20.34.1
Product / Package Ecosystem Affected Versions Fixed Version
ckb
crates.io
≥ 0.33.0
< 0.33.2
0.33.2
ckb
crates.io
≥ 0.34.0
< 0.34.1
0.34.1

References

Frequently Asked Questions

What is GHSA-hjqq-29pw-96wj?
GHSA-hjqq-29pw-96wj is a security vulnerability in Ckb involving Nervos CKB node panics when processing a block which parent timestamp is too new under General Security Weakness.
Which Ckb versions are affected?
Affected versions include releases prior to 0.33.2, 0.34.1 across affected packages: ckb.
What version fixes GHSA-hjqq-29pw-96wj?
Upgrading to 0.33.2, 0.34.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.33.2, 0.34.1. Upgrade your dependency to 0.33.2, 0.34.1 or later.
What CWE is associated with GHSA-hjqq-29pw-96wj?
GHSA-hjqq-29pw-96wj is classified under General Security Weakness.
How can I check crates.io dependencies for GHSA-hjqq-29pw-96wj?
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-hjqq-29pw-96wj",
  "modified" : "2024-02-02T22:23:11Z",
  "published" : "2024-02-02T22:23:11Z",
  "aliases" : [ ],
  "summary" : "Nervos CKB node panics when processing a block which parent timestamp is too new",
  "details" : "### Impact\n\nAdversary can initiate DOS attack by broadcasting two consecutive blocks with timestamps in the future. \n\n### Patches\n\nPlease upgrade to v0.34.1",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "crates.io",
      "name" : "ckb"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.33.0"
      }, {
        "fixed" : "0.33.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "crates.io",
      "name" : "ckb"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.34.0"
      }, {
        "fixed" : "0.34.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/nervosnetwork/ckb/security/advisories/GHSA-hjqq-29pw-96wj"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/nervosnetwork/ckb/commit/ae3c791068f2f76c67cd5483501f09de3fd8cc0b"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/nervosnetwork/ckb/commit/c6725bb0659b6639f384d699f815117d76107388"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-02-02T22:23:11Z",
    "nvd_published_at" : null
  }
}