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

CVE-2020-25795: Missing release of memory in sized-chunks

August 25, 2021 (updated June 13, 2023)

Chunk:

  • Array size is not checked when constructed with unit() and pair().
  • Array size is not checked when constructed with From<InlineArray<A, T».
  • Clone and insert_from are not panic-safe; A panicking iterator causes memory safety issues with them.

InlineArray:

  • Generates unaligned references for types with a large alignment requirement.

References

  • github.com/advisories/GHSA-x54v-qxxr-93qc
  • github.com/bodil/sized-chunks
  • github.com/bodil/sized-chunks/issues/11
  • nvd.nist.gov/vuln/detail/CVE-2020-25795
  • rustsec.org/advisories/RUSTSEC-2020-0041.html

Code Behaviors & Features

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

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

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-401: Missing Release of Memory after Effective Lifetime

Source file

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

Spotted a mistake? Edit the file on GitLab.

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

Page generated Wed, 14 May 2025 12:14:38 +0000.