Memory Safety Issue in Rust-sized-chunks Package - CVE-2020-25794

rust-sized-chunks Updated 02 Oct 2025

Summary

19/09/2020
N/A
Yes i
Unrated
Not published

DEBIAN-CVE-2020-25794: An issue was discovered in the sized-chunks crate through 0.6.2 for Rust. In the Chunk implementation, clone can have a memory-safety issue upon a panic. Affects rust-sized-chunks versions < 0.6.5-1. Fixed in 0.6.5-1. How to fix ↓

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

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The rust-sized-chunks package is a Rust crate designed for efficient chunking of data structures. It provides a Chunk implementation that allows users to handle data in manageable segments. However, this package has been found to have a vulnerability that could lead to memory safety issues during panic situations, potentially affecting the stability and security of applications that rely on it.

Vulnerability Detail

An issue was discovered in the sized-chunks crate through version 0.6.2 for Rust. In the Chunk implementation, the clone method can encounter a memory-safety issue upon a panic. This vulnerability could lead to undefined behavior, crashes, or security breaches in applications that utilize this crate, making it critical for developers to address it promptly.

How To Fix

Minimum fixed version

0.6.5-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade rust-sized-chunks

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary measure, developers can avoid using the clone method in scenarios where a panic might occur. This can be achieved by implementing error handling around the clone operation to prevent panics from propagating.

Conclusion

The rust-sized-chunks package has a critical vulnerability (CVE-2020-25794) that can lead to memory safety issues. It is essential for developers to update to the patched version to ensure the security and stability of their applications. Utilizing tools like Vulert can help monitor and alert for such vulnerabilities in real-time.

See every vulnerability recorded for rust-sized-chunks →

Share this vulnerability

FAQ

CVE-2020-25794 is a vulnerability identified in the rust-sized-chunks package that can lead to memory safety issues during panic situations.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

The vulnerability can lead to undefined behavior, application crashes, or security breaches, impacting the reliability of applications using the affected package.

Yes, a patched version of the rust-sized-chunks package is available. Users should update to version 0.6.5-1 or later to mitigate the issue.

If an immediate update is not possible, consider implementing error handling to avoid using the clone method in potentially unsafe scenarios.

Related vulnerabilities

Recent vulnerabilities recorded for rust-sized-chunks.

How To Fix

Minimum fixed version

0.6.5-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade rust-sized-chunks

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