CVE-2023-6245
Candid Denial of Service Vulnerability
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.
INFO
Published Date :
Dec. 8, 2023, 3:15 p.m.
Last Modified :
Nov. 21, 2024, 8:43 a.m.
Source :
6b35d637-e00f-4228-858c-b20ad6e1d07b
Remotely Exploitable :
Yes !
Impact Score :
3.6
Exploitability Score :
3.9
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2023-6245
.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2023-6245
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2023-6245
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by af854a3a-2127-422b-91ae-364da2661108
Nov. 21, 2024
Action Type Old Value New Value Added Reference https://github.com/dfinity/candid/blob/master/spec/Candid.md Added Reference https://github.com/dfinity/candid/pull/478 Added Reference https://github.com/dfinity/candid/security/advisories/GHSA-7787-p7x6-fq3j Added Reference https://internetcomputer.org/docs/current/references/candid-ref Added Reference https://internetcomputer.org/docs/current/references/ic-interface-spec -
CVE Modified by 6b35d637-e00f-4228-858c-b20ad6e1d07b
May. 14, 2024
Action Type Old Value New Value -
Initial Analysis by [email protected]
Dec. 13, 2023
Action Type Old Value New Value Added CVSS V3.1 NIST AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H Changed Reference Type https://github.com/dfinity/candid/blob/master/spec/Candid.md No Types Assigned https://github.com/dfinity/candid/blob/master/spec/Candid.md Product Changed Reference Type https://github.com/dfinity/candid/pull/478 No Types Assigned https://github.com/dfinity/candid/pull/478 Patch Changed Reference Type https://github.com/dfinity/candid/security/advisories/GHSA-7787-p7x6-fq3j No Types Assigned https://github.com/dfinity/candid/security/advisories/GHSA-7787-p7x6-fq3j Patch, Third Party Advisory Changed Reference Type https://internetcomputer.org/docs/current/references/candid-ref No Types Assigned https://internetcomputer.org/docs/current/references/candid-ref Product Changed Reference Type https://internetcomputer.org/docs/current/references/ic-interface-spec No Types Assigned https://internetcomputer.org/docs/current/references/ic-interface-spec Product Added CWE NIST CWE-835 Added CPE Configuration OR *cpe:2.3:a:dfinity:candid:*:*:*:*:*:rust:*:* versions from (including) 0.9.0 up to (excluding) 0.9.10 -
CVE Received by 6b35d637-e00f-4228-858c-b20ad6e1d07b
Dec. 08, 2023
Action Type Old Value New Value Added 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. Added Reference Dfinity https://github.com/dfinity/candid/pull/478 [No types assigned] Added Reference Dfinity https://internetcomputer.org/docs/current/references/candid-ref [No types assigned] Added Reference Dfinity https://github.com/dfinity/candid/blob/master/spec/Candid.md [No types assigned] Added Reference Dfinity https://github.com/dfinity/candid/security/advisories/GHSA-7787-p7x6-fq3j [No types assigned] Added Reference Dfinity https://internetcomputer.org/docs/current/references/ic-interface-spec [No types assigned] Added CWE Dfinity CWE-835 Added CWE Dfinity CWE-1288 Added CWE Dfinity CWE-20 Added CWE Dfinity CWE-168 Added CVSS V3.1 Dfinity AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2023-6245
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2023-6245
weaknesses.
Exploit Prediction
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.
0.07 }} -0.01%
score
0.32502
percentile