Security mailing lists by PureSourceCode

CVE-2023-6245

HIGH 7.5CVSS 3.1

Candid infinite decoding loop through specially crafted payload

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.

Published
8 Dec 2023
Last modified
17 Jun 2026
Assigned by
6b35d637-e00f-4228-858c-b20ad6e1d07b
NVD status
Modified
Weakness
CWE-1288CWE-20CWE-400CWE-835
Also known as
GHSA-7787-p7x6-fq3jRUSTSEC-2023-0073
Sources
NVDJSONOSV GHSA-7787-p7x6-fq3jJSONOSV RUSTSEC-2023-0073JSON

Scores

SourceScored byVersionScoreVector / decision
NVD 6b35d637-e00f-4228-858c-b20ad6e1d07b (Secondary) CVSS 3.1 HIGH 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD nvd@nist.gov (Primary) CVSS 3.1 HIGH 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
OSV GitHub CVSS 3.1 HIGH 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
OSV RustSec CVSS 3.1 HIGH 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD dfinity candid
cpe:2.3:a:dfinity:candid:*:*:*:*:*:rust:*:*
>= 0.9.0, < 0.9.10 0.9.10
OSV crates.io candid >= 0.9.0, < 0.9.10 0.9.10

References

History

  • 25 Nov 2026 20:37 UTC · NVD: first stored (published 8 Dec 2023)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 8 Dec 2023)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 8 Dec 2023)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.