CVE-2023-6245 Details
Description
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.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Dec 2, 2024References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/dfinity/candid/blob/master/spec/Candid.md | DFINITY Foundation | Product |
| https://github.com/dfinity/candid/pull/478 | DFINITY Foundation | Patch |
| https://github.com/dfinity/candid/security/advisories/GHSA-7787-p7x6-fq3j | DFINITY Foundation | PatchThird Party Advisory |
| https://internetcomputer.org/docs/current/references/candid-ref | DFINITY Foundation | Product |
| https://internetcomputer.org/docs/current/references/ic-interface-spec | DFINITY Foundation | Product |
| https://github.com/dfinity/candid/blob/master/spec/Candid.md | CVE | Product |
| https://github.com/dfinity/candid/pull/478 | CVE | Patch |
| https://github.com/dfinity/candid/security/advisories/GHSA-7787-p7x6-fq3j | CVE | PatchThird Party Advisory |
| https://internetcomputer.org/docs/current/references/candid-ref | CVE | Product |
| https://internetcomputer.org/docs/current/references/ic-interface-spec | CVE | Product |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-835 | Loop with Unreachable Exit Condition ('Infinite Loop') | [email protected] |
| CWE-1288 | Improper Validation of Consistency within Input | DFINITY Foundation |
| CWE-168 | Improper Handling of Inconsistent Special Elements | DFINITY Foundation |
| CWE-20 | Improper Input Validation | DFINITY Foundation |
| CWE-835 | Loop with Unreachable Exit Condition ('Infinite Loop') | DFINITY Foundation |
Affected Products
| Product | Versions |
|---|---|
| dfinity candid | >= 0.9.0, < 0.9.10 |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | DFINITY Foundation |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Nov 21, 2024 | CVE Modified | CVE |
| May 14, 2024 | CVE Modified | DFINITY Foundation |
| Dec 13, 2023 | Initial Analysis | [email protected] |
| Dec 8, 2023 | New CVE Received | DFINITY Foundation |