CVE-2020-25792: sized-chunks - Array size not checked in sized-chunks
Summary
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
- 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
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 →
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.
For more information, you can visit the GitHub advisory page at: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/08/GHSA-mp6f-p9gp-vpj9/GHSA-mp6f-p9gp-vpj9.json
References
Related vulnerabilities
Recent vulnerabilities recorded for sized-chunks.