CVE-2020-25794
Rust vulnerability analysis and mitigation

Overview

The sized-chunks crate through version 0.6.2 for Rust contains multiple soundness issues affecting the Chunk and InlineArray implementations. The vulnerability was discovered in September 2020 and assigned CVE-2020-25794. The vulnerability specifically affects the Chunk implementation, where clone operations can have memory-safety issues upon a panic (RustSec Advisory, GitHub Issue).

Technical details

The vulnerability manifests in several ways: 1) Array size is not checked when constructed with unit() and pair() functions, 2) Array size is not checked when constructed with From>, 3) Clone and insert_from operations are not panic-safe, where a panicking iterator can cause memory safety issues, and 4) InlineArray generates unaligned references for types with large alignment requirements. The vulnerability has been assigned a CVSS v3.1 base score of 7.5 (HIGH) with vector AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H (RustSec Advisory).

Impact

When exploited, the vulnerability can lead to memory safety violations, including potential double-free of memory, dropping of uninitialized memory during unwinding, and memory corruption. This can result in program crashes and potential denial of service conditions (GitHub Issue).

Exploitability

The vulnerability can be triggered through normal usage of the affected functions when handling panics in iterators or when dealing with specific memory alignment requirements. A proof of concept demonstrating the issues has been published, showing how the vulnerability can be triggered through various code paths (GitHub Issue).

Mitigation and workarounds

The vulnerability has been patched in version 0.6.3 of the sized-chunks crate. Users are advised to upgrade to this version or later to address these security issues (RustSec 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-2026-46369HIGH7.5
  • Rust logoRust
  • nimiq-blockchain
NoYesAug 12, 2026
CVE-2026-73430MEDIUM5.3
  • Rust logoRust
  • russh
NoYesAug 12, 2026
CVE-2026-73429MEDIUM5.3
  • Rust logoRust
  • russh
NoYesAug 12, 2026
RUSTSEC-2026-0256NONEN/A
  • Rust logoRust
  • circular-buffer
NoYesAug 11, 2026
RUSTSEC-2026-0255NONEN/A
  • Rust logoRust
  • sized-chunks
NoNoAug 11, 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