Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. ckb
  4. ›
  5. GHSA-mcmr-49x3-4jqm

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

November 2, 2022

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.

References

  • github.com/advisories/GHSA-mcmr-49x3-4jqm
  • github.com/nervosnetwork/ckb
  • github.com/nervosnetwork/ckb/blob/v0.101.2/script/src/verify.rs
  • github.com/nervosnetwork/ckb/security/advisories/GHSA-mcmr-49x3-4jqm

Code Behaviors & Features

Detect and mitigate GHSA-mcmr-49x3-4jqm with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 0.100.0 before 0.102.0

Fixed versions

  • 0.102.0

Solution

Upgrade to version 0.102.0 or above.

Source file

cargo/ckb/GHSA-mcmr-49x3-4jqm.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:14 +0000.