CVE-2025-29776
JSON

8.7high

Azle calling `setTimer` causes infinite loop of timers

Severity
8.7high CVSS:4.0 by GitHub_M
Exploit likelihood
0.71% (higher than 49% of CVEs)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-xc76-5pf9-mx8m

Description

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

Product or packageVersionsReported by
demergent-labs azle>= 0.27.0, < 0.30.0CVE List
azle (npm)from 0.27.0 before 0.30.0GitHub Advisory Database

All scores

GitHub_M8.7high CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:L
GitHubhigh CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:L

Classification

CWE-835

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

What each source says

CVE List

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.

GitHub Advisory Database
Impact

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.

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.

NVD (es)

Azle es un entorno de ejecución de WebAssembly para TypeScript y JavaScript en ICP. Llamar a `setTimer` en las versiones `0.27.0`, `0.28.0` y `0.29.0` de Azle provoca un bucle infinito inmediato de temporizadores en el contenedor, donde cada temporizador intenta borrar el estado global del temporizador anterior. El bucle infinito ocurrirá con cualquier invocación válida de `setTimer`. El problema se ha solucionado a partir de la versión `0.30.0` de Azle. Como workaround, si un contenedor cae en este bucle infinito después de llamar a `setTimer`, se puede actualizar y se borrarán todos los temporizadores, finalizando así el bucle.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-29776 changed 2025-03-15CVE Terms of Use
GitHub Advisory DatabaseGHSA-xc76-5pf9-mx8m changed 2025-03-15CC-BY-4.0
NVDCVE-2025-29776 changed 2026-06-17Public domain