Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. sized-chunks
  4. ›
  5. CVE-2020-25791

CVE-2020-25791: Array size is not checked in sized-chunks

August 25, 2021

An issue was discovered in the sized-chunks crate through 0.6.2 for Rust. In the Chunk implementation, the array size is not checked when constructed with unit().

References

  • github.com/advisories/GHSA-9p9m-9xww-qjcx
  • github.com/bodil/sized-chunks
  • github.com/bodil/sized-chunks/issues/11
  • nvd.nist.gov/vuln/detail/CVE-2020-25791
  • rustsec.org/advisories/RUSTSEC-2020-0041.html

Code Behaviors & Features

Detect and mitigate CVE-2020-25791 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 0.6.3

Fixed versions

  • 0.6.3

Solution

Upgrade to version 0.6.3 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-129: Improper Validation of Array Index

Source file

cargo/sized-chunks/CVE-2020-25791.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:10 +0000.