CVE-2023-6245Dfinity Candid
High 7.5 No auth needed
Follow: this CVE · Dfinity · Dfinity Candid We alert you by email or Slack (account required).
- 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
- 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.
What to do
- Apply the vendor's security update for Candid.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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)
| Vendor | Product | Versions |
|---|---|---|
| dfinity | candid | ≥ 0.9.0 < 0.9.10 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Product
- github.com Patch
- github.com Patch Third Party Advisory
- internetcomputer.org Product
- internetcomputer.org Product