GHSA-9mfc-chwf-7whf
ckb: Large dep group requires a lot of resources to process but the cost to commit the transaction is very low.
- Severity
- Medium
- The publisher's own rating, not a CVSS score
- Exploit chance (EPSS)
- —
- No score published
- Known exploited
- No
- Not in CISA's catalog
- Weakness
- —
- Not classified
- Fix
0.43.3- Upgrade ckb to this version or later
Description
Impact
When a transaction contains a dep group with many cells, the resources required to process it are not linear to the transaction size nor spent script cycles.
Patches
In 0.43.3, nodes drop the transactions relayed to them when they contain a dep group with more than 64 cells. They do not ban peers who send them such transactions.
In 0.100, the consensus disallow transactions using a dep group with more than 64 cells. Peers relaying such transaction must be banned. Blocks committing such transactions must be rejected.
Affected versions
crates.io
| Package | Vulnerable | Fixed in |
|---|---|---|
| ckb | < 0.43.3 |
0.43.3 |
How to fix
Move to the fixed version or later with your package manager, update the lockfile, and run your tests. If the package only arrives through another dependency, upgrade that dependency first. If none of its releases pulls a fixed version yet, force the version with your package manager's override.
ckb crates.io → 0.43.3
- cargo
cargo update -p ckb --precise 0.43.3
References
Packages
Other links
Timeline
- Published
Related advisories
| Advisory | Severity | Why it's related |
|---|---|---|
| GHSA-29c2-65rj-h343 Nervos CKB Permit load cell data from memory | Medium | Also affects ckb |
| GHSA-h4c3-5275-vrmg Nervos CKB Pool does not remove the conflicting transactions from the statistics | Medium | Also affects ckb |
| GHSA-q73f-w3h7-7wcc Nervos CKB Transaction which calls syscall load_cell_data_hash has nondeterministic result | Critical | Also affects ckb |
| GHSA-3gjh-29fv-8hr6 Nervos CKB Snappy decompress length can be very large and causes out of memory error | High | Also affects ckb |
| GHSA-wjxc-pjx9-4wvm Nervos CKB Panic on malformed input | High | Also affects ckb |
| GHSA-hjqq-29pw-96wj Nervos CKB node panics when processing a block which parent timestamp is too new | High | Also affects ckb |
| GHSA-r9rv-9mh8-pxf4 Nervos CKB BlockTimeTooNew should not be considered as invalid block | Medium | Also affects ckb |
| GHSA-pr39-8257-fxc2 Nervos CKB DoS: Process exists when p2p discovery protocol receives unsupported peer IP | Low | Also affects ckb |
MergeHarbor checks every repository's dependencies against this database, ranks what matters by exploitability and reachability, routes it to the owning team and opens the fix pull request.
Check your repos with MergeHarbor