CVE-2020-25791: sized-chunks - Array Size Not Checked in Chunk Implementation

sized-chunks Updated 02 Oct 2025

Summary

25/08/2021
Yes i
High
7.5

CVE-2020-25791: Array size is not checked 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 Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

sized-chunks is a crate for Rust that provides functionality for working with sized chunks of data. It allows users to create and manipulate chunks of a specified size. The vulnerability affects versions up to 0.6.2 of the crate. The Chunk implementation in sized-chunks does not properly check the array size when constructed with unit().

Vulnerability Detail

The vulnerability in sized-chunks allows an attacker to create a Chunk with an invalid array size. This can lead to various issues, such as buffer overflows or memory corruption. An attacker could potentially exploit this vulnerability to execute arbitrary code, cause a denial of service, or gain unauthorized access to sensitive information.

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 strongly advised to update to the fixed version of the sized-chunks crate.

Conclusion

The vulnerability in sized-chunks allows for potential code execution, denial of service, or unauthorized access to sensitive information. It is crucial to update to the fixed version of the sized-chunks crate (0.6.3 or later) to mitigate the risk. For further support on vulnerability remediation, you can contact DevNack.com.

See every vulnerability recorded for sized-chunks →

Share this vulnerability

FAQ

sized-chunks is a Rust crate that provides functionality for working with sized chunks of data. It allows users to create and manipulate chunks of a specified size.

The vulnerability in sized-chunks can lead to buffer overflows, memory corruption, arbitrary code execution, denial of service, or unauthorized access to sensitive information.

To fix the vulnerability, update the sized-chunks crate to version 0.6.3 or later. Modify the Cargo.toml file and run the cargo update command.

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