Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. alg_ds
  4. ›
  5. CVE-2020-36432

CVE-2020-36432: Use of Uninitialized Resource in alg_ds

August 25, 2021

An issue was discovered in the alg_ds crate through 2020-08-25 for Rust. Matrix::new() internally calls Matrix::fill_with() which uses *ptr = value pattern to initialize the buffer. This pattern assumes that there is an initialized struct at the address and drops it, which results in dropping of uninitialized struct.

References

  • github.com/advisories/GHSA-3vv3-frrq-6486
  • gitlab.com/dvshapkin/alg-ds
  • gitlab.com/dvshapkin/alg-ds/-/issues/1
  • nvd.nist.gov/vuln/detail/CVE-2020-36432
  • rustsec.org/advisories/RUSTSEC-2020-0033.html

Code Behaviors & Features

Detect and mitigate CVE-2020-36432 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 up to 0.3.1

Solution

Unfortunately, there is no solution available yet.

Impact 9.8 CRITICAL

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

Learn more about CVSS

Weakness

  • CWE-665: Improper Initialization
  • CWE-908: Use of Uninitialized Resource

Source file

cargo/alg_ds/CVE-2020-36432.yml

Spotted a mistake? Edit the file on GitLab.

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

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