Azle
Azle calling `setTimer` causes infinite loop of timers
Azle is a WebAssembly runtime for TypeScript and JavaScript on ICP. Calling `setTimer` in Azle versions `0.27.0`, `0.28.0`, and `0.29.0` causes an immediate infinite loop of timers to be executed on the canister, each timer attempting to clean up the global state of the previous timer. The infinite loop will occur with any valid invocation of `setTimer`. The problem has been fixed as of Azle version `0.30.0`. As a workaround, if a canister is caught in this infinite loop after calling `setTimer`, the canister can be upgraded and the timers will all be cleared, thus ending the loop.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 0.27.0, < 0.30.0
Fixed in 0.30.0
Mitigation
Upgrade azle to 0.30.0 or later.
References
- Vendor advisory github.com/demergent-labs/azle/security/adviso…
- Release notes github.com/demergent-labs/azle/releases/tag/0.…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.