GHSA-84x2-2qv6-qg56: Ckb Denial of Service Vulnerability
CRITICALGHSA-84x2-2qv6-qg56 is a CRITICAL denial of service vulnerability (General Security Weakness) affecting Ckb libraries in the crates.io ecosystem. The issue involves nervos ckb p2p dos attacks. Remediation is available by upgrading affected packages to version 0.34.0.
GHSA-84x2-2qv6-qg56 at a Glance
How to Fix GHSA-84x2-2qv6-qg56
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.34.0
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-84x2-2qv6-qg56, 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.0), 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-84x2-2qv6-qg56 Affected Ckb Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
ckb
|
crates.io |
< 0.34.0
|
0.34.0
|
References
Frequently Asked Questions
What is GHSA-84x2-2qv6-qg56?
Which Ckb versions are affected?
What version fixes GHSA-84x2-2qv6-qg56?
Is ckb affected?
What CWE is associated with GHSA-84x2-2qv6-qg56?
How can I check crates.io dependencies for GHSA-84x2-2qv6-qg56?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-84x2-2qv6-qg56",
"modified" : "2024-02-02T22:21:27Z",
"published" : "2024-02-02T22:21:27Z",
"aliases" : [ ],
"summary" : "Nervos CKB P2P DoS Attacks",
"details" : "The P2P protocols lack of rate limit. For example, in relay protocol, when a node receives a broadcasted `tx_hashes`, it will mark it in memory to avoid duplicated requests. [code → ](https://github.com/nervosnetwork/ckb/blob/26e4837212c392c3c706a0da7a056131fb060433/sync/src/relayer/transactions_process.rs#L67).\n\nIt is easy to establish a DoS attach by generating random tx hashes.\n\n### Impact\n\nIt affects all nodes connected to the P2P network.\n\n### Workarounds\n\nApply rate limit on the data sent to CKB P2P port.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "crates.io",
"name" : "ckb"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.34.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/nervosnetwork/ckb/security/advisories/GHSA-84x2-2qv6-qg56"
}, {
"type" : "WEB",
"url" : "https://github.com/nervosnetwork/ckb/commit/c5eb5478b635cea2ccef8676cf97692cd38293c3"
} ],
"database_specific" : {
"cwe_ids" : [ ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2024-02-02T22:21:27Z",
"nvd_published_at" : null
}
}