CVE-2023-6245 Vulnerability Details

  /     /     /  

CVE-2023-6245 Metadata Quick Info

CVE Published: 08/12/2023 | CVE Updated: 02/12/2024 | CVE Year: 2023
Source: Dfinity | Vendor: Internet Computer | Product: Candid
Status : PUBLISHED

CVE-2023-6245 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 Version: 3.1 | Base Score: 7.5 HIGH
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

l➤ Exploitability Metrics:
    Attack Vector (AV)* NETWORK
    Attack Complexity (AC)* LOW
    Privileges Required (PR)* NONE
    User Interaction (UI)* NONE
    Scope (S)* UNCHANGED

l➤ Impact Metrics:
    Confidentiality Impact (C)* NONE
    Integrity Impact (I)* NONE
    Availability Impact (A)* HIGH

Weakness Enumeration (CWE)

CWE-ID: CWE-835
CWE Name: CWE-835 Loop with Unreachable Exit Condition ( Infinite Loop )
Source: Internet Computer

Common Attack Pattern Enumeration and Classification (CAPEC)

CAPEC-ID:
CAPEC Description: Denial of Service


Source: NVD (National Vulnerability Database).