GHSA-mcmr-49x3-4jqm
high
ckb type_id script resume may randomly fail
- Severity
- high rating by GitHub
- Published
- Last changed
Description
Impact
https://github.com/nervosnetwork/ckb/blob/v0.101.2/script/src/verify.rs#L871-L879
TypeIdSystemScript resume handle is not correct when max_cycles is not enough, ScriptError::ExceededMaximumCycles will be raised directly ranther than suspend as expect, and also because script_group execution order is random, so this will happen randomly.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| ckb (crates.io) | from 0.100.0 before 0.102.0 | GitHub Advisory Database |
References
Sources
| Source | Record | Licence |
|---|---|---|
| GitHub Advisory Database | GHSA-mcmr-49x3-4jqm changed 2022-11-02 | CC-BY-4.0 |