
Cloud Vulnerability DB
A community-led vulnerabilities database
The sized-chunks crate through version 0.6.2 for Rust contains multiple memory safety vulnerabilities identified as RUSTSEC-2020-0041. The issues were discovered in September 2020 and affect both the Chunk and InlineArray implementations. The vulnerabilities include unvalidated array sizes, memory safety issues during panic conditions, and potential alignment problems (Github Issue, RustSec Advisory).
The vulnerability encompasses multiple technical issues: 1) In the Chunk implementation, array size validation is missing when constructed with unit() and pair() methods, 2) The array size is not properly checked when constructed using From trait implementation, 3) The clone() and insert_from() methods are not panic-safe, potentially causing memory safety issues during panic conditions, and 4) In the InlineArray implementation, there's a risk of generating 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 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H (NVD).
The vulnerabilities can lead to memory safety violations, including potential double-free conditions, use of uninitialized memory during unwinding, and memory corruption due to improper alignment. These issues could result in program crashes or potentially more severe security implications in applications using the affected versions of the sized-chunks crate (Github Issue).
The vulnerabilities can be triggered through normal API usage patterns, particularly in scenarios involving panic conditions or when working with types that have specific alignment requirements. Proof-of-concept code demonstrating these issues has been publicly documented (Github Issue).
Users should upgrade to a patched version of the sized-chunks crate. The issues were addressed through code fixes that properly implement size checking, panic-safe operations, and correct alignment handling (Github Issue).
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."