GHSA-29c2-65rj-h343
Nervos CKB Permit load cell data from memory
Medium
crates.io
- 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.39.0- Upgrade ckb to this version or later
Description
Impact
The faulty nodes will reject transactions which calls load_cell_data syscall but the input cell is still in the mempool. They also ban other nodes and cause the network separation.
Patches
0.35.2, 0.36.1, 0.37.1, 0.38.2
Affected versions
crates.io
| Package | Vulnerable | Fixed in |
|---|---|---|
| ckb | >= 0.39.0-rc1, < 0.39.0 |
0.39.0 |
| ckb | >= 0.35.0-rc1, < 0.35.2 |
0.35.2 |
| ckb | >= 0.36.0-rc1, < 0.36.1 |
0.36.1 |
| ckb | >= 0.37.0-rc1, < 0.37.1 |
0.37.1 |
| ckb | >= 0.38.0-rc1, < 0.38.2 |
0.38.2 |
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.39.0
- cargo
cargo update -p ckb --precise 0.39.0
References
Other links
- github.com/nervosnetwork/ckb/security/advisories/GHSA-29c2-65rj-h343
- github.com/nervosnetwork/ckb/commit/277061867eb7d2766fa6737c8bf00684fc2462a6
- github.com/nervosnetwork/ckb/commit/37d60d581c6713d3aca1a57018eaea45447ae0b2
- github.com/nervosnetwork/ckb/commit/8f115b387f8f60f938bce4591f26cd78430b8771
- github.com/nervosnetwork/ckb/commit/91efb7b6b4329d70d60eee91d5239a2de9b0d99f
- github.com/nervosnetwork/ckb/commit/97647408ee9dbf525f6c678796e770887c9f8738
Timeline
- Published
Related advisories
| Advisory | Severity | Why it's related |
|---|---|---|
| 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 |
| GHSA-84x2-2qv6-qg56 Nervos CKB P2P DoS Attacks | Critical | 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