CVE-2020-25796: Unaligned references in sized-chunks
Summary
CVE-2020-25791: Unaligned references in sized-chunks. Affects sized-chunks versions < 0.6.3. Fixed in 0.6.3. How to fix ↓
Also tracked for
- rust-sized-chunks · Debian:11
- rust-sized-chunks · Debian:11
- rust-sized-chunks · Debian:11
- rust-sized-chunks · Debian:11
- rust-sized-chunks · Debian:11
- rust-sized-chunks · Debian:11
The same CVE-2020-25791 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
The sized-chunks crate is a Rust library that provides functionality for working with arrays of fixed-size chunks. It is commonly used in Rust projects to efficiently handle data structures with a fixed number of elements. However, versions up to 0.6.2 of the sized-chunks crate are vulnerable to an issue that can lead to unaligned references for types with large alignment requirements.
Vulnerability Detail
The vulnerability in the sized-chunks crate arises from the InlineArray implementation, where an unaligned reference may be generated for a type that requires a large alignment. This can result in memory access violations and potential crashes or arbitrary code execution. The impact of this vulnerability depends on how the affected code is used and the specific data being processed.
How To Fix
Latest published version: 0.7.0 as of 22 Oct 2026
Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.
If you need the minimum change
0.6.3
This is the first release that contains the fix.
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
There is no known workaround for this vulnerability. It is recommended to update to the fixed version of the sized-chunks crate as soon as possible.
Conclusion
In conclusion, the sized-chunks crate versions up to 0.6.2 are vulnerable to unaligned references, which can lead to memory access violations and potential code execution. Developers should update their dependency to version 0.6.3 or later to mitigate this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for sized-chunks →
FAQ
The sized-chunks crate is a Rust library that provides functionality for working with arrays of fixed-size chunks. It is commonly used in Rust projects to efficiently handle data structures with a fixed number of elements.
The impact of this vulnerability depends on how the affected code is used and the specific data being processed. It can lead to memory access violations, crashes, or potential arbitrary code execution.
To fix this vulnerability, update your dependency on the sized-chunks crate to version 0.6.3 or later. Update your Cargo.toml file and run cargo update to install the fixed version.
There is no known workaround for this vulnerability. It is recommended to update to the fixed version of the sized-chunks crate.
For more information about this vulnerability, you can visit the GitHub Advisory Database at the following link: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/08/GHSA-fqpx-cq8x-9wp4/GHSA-fqpx-cq8x-9wp4.json
Related vulnerabilities
Recent vulnerabilities recorded for sized-chunks.