{"id":"GHSA-j35p-q24r-5367","aliases":["GHSA-j35p-q24r-5367"],"related":[],"kind":"vulnerability","state":"published","title":"Dep Group Remote Memory Exhaustion (Denial of Service) in ckb","summary":"### 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","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"### 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","format":"markdown","source":"ghsa"}],"published":"2022-04-22T20:23:04.000Z","modified":"2022-04-22T20:23:04.000Z","severity":{"scorer":"GitHub","scheme":"rating","rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"rating","rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.43.1"}],"ecosystem":"crates.io","package":"ckb","purl":"pkg:cargo/ckb","source":"ghsa"}],"references":[{"url":"https://github.com/nervosnetwork/ckb/security/advisories/GHSA-j35p-q24r-5367","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/nervosnetwork/ckb","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/nervosnetwork/ckb/blob/v0.42.0/util/types/src/core/cell.rs#L600-L617","tags":["web"],"sources":["ghsa"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-j35p-q24r-5367","url":"https://github.com/advisories/GHSA-j35p-q24r-5367","licence":"CC-BY-4.0","modified":"2022-04-22T20:23:04.000Z"}],"updatedAt":"2026-11-25T22:56:42.605Z"}