GHSA-j35p-q24r-5367: Ckb Denial of Service Vulnerability
HIGHGHSA-j35p-q24r-5367 is a HIGH denial of service vulnerability (General Security Weakness) affecting Ckb libraries in the crates.io ecosystem. The issue involves dep group remote memory exhaustion (denial of service) in ckb. Remediation is available by upgrading affected packages to version 0.43.1.
GHSA-j35p-q24r-5367 at a Glance
How to Fix GHSA-j35p-q24r-5367
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.43.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-j35p-q24r-5367, 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.43.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
GHSA-j35p-q24r-5367 Affected Ckb Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
ckb
|
crates.io |
< 0.43.1
|
0.43.1
|
References
Frequently Asked Questions
What is GHSA-j35p-q24r-5367?
Which Ckb versions are affected?
What version fixes GHSA-j35p-q24r-5367?
Is ckb affected?
What CWE is associated with GHSA-j35p-q24r-5367?
How can I check crates.io dependencies for GHSA-j35p-q24r-5367?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-j35p-q24r-5367",
"modified" : "2022-04-22T20:23:04Z",
"published" : "2022-04-22T20:23:04Z",
"aliases" : [ ],
"summary" : "Dep Group Remote Memory Exhaustion (Denial of Service) in ckb",
"details" : "### Impact\nA remote attacker could exploit this vulnerability to exhaust ckb process memory of an affected node.\n\n### Patches\nUpgrade to 0.43.1 or later.\n\n### References\nAfter resolving the outpoints of one dep group, we put the corresponding content into a vec ( https://github.com/nervosnetwork/ckb/blob/v0.42.0/util/types/src/core/cell.rs#L600-L617 ), there is a vulnerability to a memory dos attack because there is no determination of whether the outpoints is duplicated.\n\nPoC:\n```\nbefore send dos tx rss:\n105700\n\nafter rss:\n2306932\n```\n\nDoS cost: 25.6 KB * 150 + dep_tx out_points capacity ( 36 * 150 * 100 = 540000 ) = 4380000 CKB\nSend 50 dos_tx, memory exhausted: (25.6 KB * 150 * 100) * 50 = 19.2 GB\n\n",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "crates.io",
"name" : "ckb"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.43.1"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/nervosnetwork/ckb/security/advisories/GHSA-j35p-q24r-5367"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/nervosnetwork/ckb"
}, {
"type" : "WEB",
"url" : "https://github.com/nervosnetwork/ckb/blob/v0.42.0/util/types/src/core/cell.rs#L600-L617"
} ],
"database_specific" : {
"cwe_ids" : [ ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2022-04-22T20:23:04Z",
"nvd_published_at" : null
}
}