CVE-2020-25792: sized-chunks - Array size not checked in sized-chunks

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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

sized-chunks is a crate for Rust that provides a Chunk implementation. This implementation allows for the creation of chunks with a specified size. However, versions up to 0.6.2 of the crate have a vulnerability where the array size is not properly checked when constructed with pair(). This oversight can lead to potential security issues.

Vulnerability Detail

The vulnerability in sized-chunks arises from the lack of array size validation in the Chunk implementation. When constructed with pair(), the array size is not properly checked, which can result in memory corruption or other security vulnerabilities. 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 essential to update to the fixed version of the sized-chunks crate to address the issue.

Conclusion

The sized-chunks crate up to version 0.6.2 has a vulnerability where the array size is not properly checked. This can lead to memory corruption, arbitrary code execution, denial of service, or unauthorized access to sensitive information. To mitigate this vulnerability, it is crucial to update to version 0.6.3 or later of the sized-chunks crate. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for sized-chunks →

Share this vulnerability

FAQ

sized-chunks is a crate for Rust that provides a Chunk implementation, allowing for the creation of chunks with a specified size.

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

To fix this vulnerability, update the sized-chunks crate to version 0.6.3 or later and rebuild your application.

No, there is no known workaround. Updating to the fixed version is necessary.

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