CVE-2020-25796
Rust vulnerability analysis and mitigation

Overview

An issue was discovered in the sized-chunks crate through version 0.6.2 for Rust. The vulnerability affects multiple components including Chunk and InlineArray implementations, with particular concerns around array size validation and memory safety. The issue was discovered and reported on September 6, 2020, and was assigned CVE-2020-25796. The vulnerability affects the sized-chunks crate, which is a Rust library for handling fixed-size data structures (RustSec Advisory, GitHub Issue).

Technical details

The vulnerability encompasses multiple technical issues: In the InlineArray implementation, an unaligned reference may be generated for types that have large alignment requirements. The Chunk implementation has several issues including unchecked array sizes when constructed with unit() and pair() functions, as well as when constructed with From>. Additionally, Clone and insert_from operations are not panic-safe, which can lead to memory safety issues when dealing with panicking iterators. 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 (RustSec Advisory).

Impact

The vulnerability can lead to memory safety violations, including potential double-free conditions, uninitialized memory access, and memory corruption. When dealing with types that have large alignment requirements, the InlineArray implementation may generate unaligned references, which can cause undefined behavior. The issues with panic safety in Clone and insert_from operations can result in memory leaks or corruption during error conditions (GitHub Issue).

Exploitability

The vulnerability can be triggered through normal usage of the affected functions in the sized-chunks crate. Specifically, using unit(), pair(), or From> constructors with incorrect array sizes, or using Clone and insert_from operations with panicking iterators can lead to exploitation. The vulnerability requires no special privileges or user interaction to exploit (RustSec Advisory).

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. No effective workarounds are available for users who must continue using affected versions (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

RUSTSEC-2026-0236HIGH7.5
  • Rust logoRust
  • viperjs
NoYesAug 06, 2026
RUSTSEC-2026-0232HIGH7.5
  • Rust logoRust
  • nostr-relay-pool
NoYesAug 01, 2026
RUSTSEC-2026-0231HIGH7.5
  • Rust logoRust
  • nostr-relay-pool
NoYesAug 01, 2026
RUSTSEC-2026-0230HIGH7.5
  • Rust logoRust
  • nostr
NoYesAug 01, 2026
CVE-2026-68930MEDIUM6.5
  • Rust logoRust
  • russh
NoYesAug 03, 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