GHSA-mcmr-49x3-4jqm

Suggest an improvement
Source
https://github.com/advisories/GHSA-mcmr-49x3-4jqm
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/11/GHSA-mcmr-49x3-4jqm/GHSA-mcmr-49x3-4jqm.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-mcmr-49x3-4jqm
Published
2022-11-02T18:15:07Z
Modified
2022-11-02T18:15:07Z
Summary
ckb type_id script resume may randomly fail
Details

Impact

https://github.com/nervosnetwork/ckb/blob/v0.101.2/script/src/verify.rs#L871-L879 TypeIdSystemScript resume handle is not correct when maxcycles is not enough, ScriptError::ExceededMaximumCycles will be raised directly ranther than suspend as expect, and also because scriptgroup execution order is random, so this will happen randomly.

Database specific
{
    "nvd_published_at": null,
    "cwe_ids": [],
    "severity": "HIGH",
    "github_reviewed": true,
    "github_reviewed_at": "2022-11-02T18:15:07Z"
}
References

Affected packages

crates.io / ckb

Package

Affected ranges

Type
SEMVER
Events
Introduced
0.100.0
Fixed
0.102.0