GHSA-hjqq-29pw-96wj: Ckb Nervos CKB Node Panics When Vulnerability
HIGHGHSA-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
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.
Upgrade ckb to 0.33.2
Upgrade ckb to 0.34.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-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
GHSA-hjqq-29pw-96wj Affected Ckb Versions
2 component(s)| 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?
Which Ckb versions are affected?
What version fixes GHSA-hjqq-29pw-96wj?
Is ckb affected?
What CWE is associated with GHSA-hjqq-29pw-96wj?
How can I check crates.io dependencies for GHSA-hjqq-29pw-96wj?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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
}
}