
Cloud Vulnerability DB
A community-led vulnerabilities database
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).
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).
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).
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).
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).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."