Loading advisory.
Loading advisory.
Candid infinite decoding loop through specially crafted payload
The Candid library causes a Denial of Service while parsing a specially crafted payload with empty data type. For example, if the payload is record { ; empty } and the canister interface expects record { } then the rust candid decoder treats empty as an extra field required by the type.
Published 2023-12-08 12:00 UTC · Modified 2026-05-04 09:00 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score. How tiers work
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| candid | crates.io | >= 0.9.0, < 0.9.10 | 0.9.10 | cargo add candid@0.9.10 |
The Candid library causes a Denial of Service while parsing a specially crafted payload with empty data type. For example, if the payload is record { * ; empty } and the canister interface expects record { * } then the rust candid decoder treats empty as an extra field required by the type. The problem with type empty is that the candid rust library wrongly categorizes empty as a recoverable error when skipping the field and thus causing an infinite decoding loop.
Canisters using affected versions of candid are exposed to denial of service by causing the decoding to run indefinitely until the canister traps due to reaching maximum instruction limit per execution round. Repeated exposure to the payload will result in degraded performance of the canister.
For asset canister users, dfx versions >= 0.14.4 to <= 0.15.2-beta.0 ships asset canister with an affected version of candid.
Rust canisters using candid < 0.9.0 or >= 0.9.10
Rust canister interfaces of type other than record { * }
Motoko based canisters
dfx (for asset canister) <= 0.14.3 or >= 0.15.2
The issue has been patched in 0.9.10. All rust based canisters on candid versions >= 0.9.0 must upgrade their candid versions to >= 0.9.10 and deploy their canisters to mainnet as soon as possible.
There is no workaround for canisters using the affected versions of candid other than upgrading to patched version.
No public exploit code known to Helm's sources (Nuclei templates, Metasploit, Exploit-DB and PoC-in-GitHub). That does not mean none exists.
EPSS went from 0.012 on 2026-11-24 to 0.014 on 2026-11-26, over 2 recorded scores.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.012 | first score | v2026.06.15 |
| 2026-11-26 | 0.014 | 0.012 | v2026.06.15 |