Not a U.S. government website. NDD is an independent vulnerability database by Volerion and is not affiliated with or endorsed by NIST or NVD.
VOLERION
Volerion Security Research

NOT DEFERRED DATABASE

VULNERABILITIES

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 3.x Severity and Vector Strings:

CNA: DFINITY FoundationCVSS-B:7.5 HIGHVector:CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

References 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.

Weakness Enumeration

CWE-IDCWE NameSource
CWE-835Loop with Unreachable Exit Condition ('Infinite Loop')[email protected]
CWE-1288Improper Validation of Consistency within InputDFINITY Foundation
CWE-168Improper Handling of Inconsistent Special ElementsDFINITY Foundation
CWE-20Improper Input ValidationDFINITY Foundation
CWE-835Loop with Unreachable Exit Condition ('Infinite Loop')DFINITY Foundation

Affected Products

ProductVersions
dfinity candid
>= 0.9.0, < 0.9.10

CPE

  • cpe:2.3:a:dfinity:candid:*:*:*:*:*:rust:*:*

Remediation

  • No remediation found in references.

Change History

6 change records found show changes


QUICK INFO

CVE Dictionary Entry:
CVE-2023-6245
NVD Published Date:
Dec 8, 2023
NVD Last Modified:
Jun 17, 2026
Source:
DFINITY Foundation
CVE-2023-6245 Details - Not Deferred