CVE-2023-6245
Rust vulnerability analysis and mitigation

Overview

CVE-2023-6245 affects the Candid library versions 0.9.0 through 0.9.10 and causes a Denial of Service vulnerability while parsing specially crafted payloads with 'empty' data type. The vulnerability was discovered and disclosed on December 8, 2023, affecting Rust-based canisters using the affected versions of Candid, while Motoko-based canisters remain unaffected (GHSA Advisory).

Technical details

The vulnerability occurs when parsing a payload with format record { * ; empty } while the canister interface expects record { * }. The Rust Candid decoder incorrectly categorizes 'empty' as a recoverable error when skipping the field, resulting in an infinite decoding loop. This causes the decoding process to run indefinitely until the canister traps due to reaching the maximum instruction limit per execution round (GHSA Advisory). The vulnerability has been assigned a CVSS v3.1 base score of 7.5 HIGH with vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H (NVD).

Impact

When exploited, the vulnerability leads to degraded performance of the affected canister through repeated exposure to malicious payloads. The impact is particularly significant for asset canister users using dfx versions >= 0.14.4 to <= 0.15.2-beta.0, as these versions ship with an affected version of Candid (GHSA Advisory).

Mitigation and workarounds

The vulnerability has been patched in Candid version 0.9.10. All Rust-based canisters using Candid versions >= 0.9.0 must upgrade to version >= 0.9.10 and deploy their canisters to mainnet. There are no workarounds available other than upgrading to the patched version (GHSA Advisory).

Additional resources


SourceThis report was generated using AI

Related Rust vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-68705HIGH8.8
  • RustRust
  • rustfs
NoYesJan 07, 2026
CVE-2025-69255MEDIUM5.5
  • RustRust
  • rustfs
NoYesJan 07, 2026
GHSA-rhfx-m35p-ff5jLOW2.7
  • RustRust
  • lru
NoYesJan 07, 2026
GHSA-9c48-w39g-hm26LOW2.7
  • RustRust
  • rsa
NoYesJan 06, 2026
RUSTSEC-2026-0002N/AN/A
  • RustRust
  • lru
NoYesJan 07, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management