Vulnerability DatabaseRUSTSEC-2020-0041

RUSTSEC-2020-0041
Rust vulnerability analysis and mitigation

Overview

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).

Technical details

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).

Impact

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).

Exploitability

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).

Mitigation and workarounds

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).

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-54788HIGH7.5
  • Rust logoRust
  • datadog-opentelemetry
NoYesAug 28, 2026
RUSTSEC-2026-0278HIGH7.3
  • Rust logoRust
  • zbus_polkit
NoYesAug 31, 2026
GHSA-2vh6-hw4j-32wwMEDIUM6.5
  • Rust logoRust
  • gix-packetline
NoYesAug 28, 2026
CVE-2026-53600MEDIUM6.3
  • Rust logoRust
  • zed
NoYesSep 02, 2026
RUSTSEC-2026-0272NONEN/A
  • Rust logoRust
  • stack_dst
NoYesAug 27, 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