In Azle, calling `setTimer` causes infinite loop of timers
Description
Published by the National Vulnerability Database
Mar 14, 2025
Published to the GitHub Advisory Database
Mar 14, 2025
Reviewed
Mar 14, 2025
Last updated
Mar 14, 2025
Impact
Calling
setTimer
in Azle versions0.27.0
,0.28.0
, and0.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
.Patches
The problem has been fixed as of Azle version
0.30.0
.Workarounds
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.References