Memory Safety Issue in Sized-Chunks Package: CVE-2020-25795

rust-sized-chunks Updated 02 Oct 2025

Summary

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

DEBIAN-CVE-2020-25795: An issue was discovered in the sized-chunks crate through 0.6.2 for Rust. In the Chunk implementation, insert_from 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 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 'rust-sized-chunks' package is a Rust crate that provides functionality for managing and manipulating chunks of data efficiently. It is widely used in applications that require optimized memory handling and data processing. However, the package has been found to have a vulnerability that could lead to memory safety issues, particularly in its Chunk implementation.

Vulnerability Detail

An issue was discovered in the sized-chunks crate through version 0.6.2 for Rust. Specifically, in the Chunk implementation, the 'insert_from' method can encounter a memory-safety issue during a panic. This vulnerability can potentially lead to undefined behavior, crashes, or data corruption, making it critical for developers using this package 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 workaround, you may avoid using the 'insert_from' method in your application until the package is updated. Review your code to ensure that this method is not invoked during critical operations.

Conclusion

The rust-sized-chunks package has a critical vulnerability (CVE-2020-25795) that can lead to memory safety issues. It is essential for developers to update to the patched version 0.6.5-1 to mitigate risks. Utilizing tools like Vulert can help monitor for such vulnerabilities in real-time.

See every vulnerability recorded for rust-sized-chunks →

Share this vulnerability

FAQ

CVE-2020-25795 is a vulnerability identifier for a memory safety issue found in the rust-sized-chunks package, specifically affecting the 'insert_from' method.

If your application uses the affected version of the rust-sized-chunks package, it may experience crashes or data corruption due to the memory safety issue.

Yes, a patched version 0.6.5-1 is available. Updating to this version will resolve the vulnerability.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software. Visit Vulert Scanner to check if your application is affected without needing to install anything.

If an immediate update is not possible, avoid using the 'insert_from' method in your code as a temporary workaround.

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