# GHSA-mcmr-49x3-4jqm: ckb type_id script resume may randomly fail

- Severity: High (rating, scored by GitHub)
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2022-11-02T18:15:07.000Z
- Modified: 2022-11-02T18:15:07.000Z

## 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.

(As written by GitHub Advisory Database.)

## Affected

- ckb (crates.io): from 0.100.0 before 0.102.0

## References

- <https://github.com/nervosnetwork/ckb/security/advisories/GHSA-mcmr-49x3-4jqm> (web)
- <https://github.com/nervosnetwork/ckb> (package)
- <https://github.com/nervosnetwork/ckb/blob/v0.101.2/script/src/verify.rs#L871-L879> (web)

## Sources

- GitHub Advisory Database: [GHSA-mcmr-49x3-4jqm](https://github.com/advisories/GHSA-mcmr-49x3-4jqm), CC-BY-4.0, modified 2022-11-02

---

Page: https://cve.day/GHSA-mcmr-49x3-4jqm · Whole record: https://cve.day/GHSA-mcmr-49x3-4jqm.json · Rebuilt by cve.day 2026-11-25T22:56:42.664Z
