Live threats

All CVEs / Dfinity

CVE-2023-6245Dfinity Candid

High 7.5 No auth needed

Priority
60
CVSS 3.1
7.5
EPSS
1.4%
probability of exploitation in 30 days · percentile 73
Auth required
No
Published
Dec 8, 2023
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-20, CWE-168, CWE-835, CWE-1288
SSVC (CISA)
Exploitation: none · Automatable: yes · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

What happens

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 the 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. Note: Canisters written in Motoko are unaffected.

Original NVD text.

What to do

  1. Apply the vendor's security update for Candid.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
crates.io candid ≥ 0.9.0 < 0.9.10 0.9.10 cargo update -p candid --precise 0.9.10
crates.io candid ≥ 0.9.0 < 0.9.10 0.9.10 cargo update -p candid --precise 0.9.10

Per OSV / GitHub Advisories (GHSA-7787-p7x6-fq3j, RUSTSEC-2023-0073). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
dfinitycandid≥ 0.9.0 < 0.9.10

Official sources

References

Links published by the sources. Open them with care.