CVE-2020-25794: Memory Release Issue in sized-chunks Crate

sized-chunks Updated 02 Oct 2025

Summary

25/08/2021
Yes i
High
7.5

CVE-2020-25791: Missing release of memory 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

The sized-chunks crate is a Rust library that provides functionality for working with sized chunks of memory. It allows users to allocate and manage memory in fixed-size chunks. The crate is commonly used in Rust applications that require efficient memory management. However, a vulnerability has been discovered in versions up to 0.6.2 of the sized-chunks crate, which can lead to a memory-safety issue when cloning a Chunk object during a panic.

Vulnerability Detail

The vulnerability in the sized-chunks crate arises from a missing release of memory in the Chunk implementation. When a panic occurs during the cloning of a Chunk object, memory that was allocated for the clone is not properly released. This can result in memory leaks and potential memory corruption. An attacker could potentially exploit this vulnerability to cause a denial-of-service condition or execute arbitrary code with elevated privileges.

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 the sized-chunks crate to the fixed version to mitigate the risk.

Conclusion

In conclusion, the sized-chunks crate up to version 0.6.2 is vulnerable to a memory release issue that can lead to memory leaks and potential memory corruption. It is crucial for developers to update the crate to version 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

This vulnerability can lead to memory leaks and potential memory corruption. It could be exploited by an attacker to cause a denial-of-service condition or execute arbitrary code with elevated privileges.

Versions up to and including 0.6.2 of the sized-chunks crate are affected by this vulnerability.

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

To update the sized-chunks crate, modify the dependency version in your Cargo.toml file to 0.6.3 or later and run the cargo update command.

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