CVE-2020-25796: Unaligned references in sized-chunks

sized-chunks Updated 02 Oct 2025

Summary

25/08/2021
Yes i
High
7.5

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

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.

Free scan

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.

Check my app free

No signup required · Results in about 60 seconds

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

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 →

Share this vulnerability

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.

Related vulnerabilities

Recent vulnerabilities recorded for sized-chunks.

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 →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback