CVE-2020-25793
Description
An issue was discovered in the sized-chunks crate through 0.6.2 for Rust. In the Chunk implementation, the array size is not checked when constructed with From<InlineArray<A, T>>.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
In the sized-chunks Rust crate (≤0.6.2), constructing a Chunk from an InlineArray does not validate array size, potentially leading to memory unsafety under specific conditions.
Vulnerability
Overview
CVE-2020-25793 is a soundness issue in the sized-chunks crate for Rust, affecting versions up to and including 0.6.2. The vulnerability lies in the Chunk implementation, where the array size is not checked when a Chunk is constructed via From<InlineArray<A, T>>. This violates the type-system safety guarantees that Rust normally enforces, potentially allowing memory corruption [1][2].
Attack
Vector and Prerequisites
Exploitation requires a program that uses the sized-chunks crate and constructs a Chunk from an InlineArray outside of the expected size constraints. No special privileges are needed; the vulnerability can be triggered during normal crate usage when the From trait is invoked. Additionally, the advisory notes that Clone and insert_from are not panic-safe—a panicking iterator during these operations can lead to further memory safety violations [1][3].
Impact
An attacker who can influence the size or contents of the InlineArray might cause undefined behavior (e.g., out-of-bounds reads or writes), potentially leading to program crashes, data corruption, or—in a worst-case scenario—arbitrary code execution. The CVSS base score is 7.5 (HIGH), indicating a significant risk [3].
Mitigation
The sized-chunks repository was archived and is now read-only [1]. Users should upgrade to a patched version if available, or migrate to alternative crates that provide similar functionality with soundness guarantees. As of the advisory publication, no direct patch exists; the risk is more pronounced because the crate is no longer maintained [1][4].
AI Insight generated on May 21, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
sized-chunkscrates.io | < 0.6.3 | 0.6.3 |
Affected products
2- sized-chunks crate/sized-chunks cratedescription
Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
4- github.com/advisories/GHSA-64gv-qg2v-vxv6ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2020-25793ghsaADVISORY
- github.com/bodil/sized-chunks/issues/11ghsax_refsource_MISCWEB
- rustsec.org/advisories/RUSTSEC-2020-0041.htmlghsax_refsource_MISCWEB
News mentions
0No linked articles in our index yet.