Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. algorithmica
  4. ›
  5. CVE-2021-31996

CVE-2021-31996: Double free in algorithmica

August 25, 2021

An issue was discovered in the algorithmica crate through 2021-03-07 for Rust. In the affected versions of this crate, merge_sort::merge() wildly duplicates and drops ownership of T without guarding against double-free. Due to such implementation, simply invoking merge_sort::merge() on Vec<T: Drop> can cause double free bugs.

References

  • github.com/AbrarNitk/algorithmica/issues/1
  • github.com/advisories/GHSA-jh37-772x-4hpw
  • nvd.nist.gov/vuln/detail/CVE-2021-31996
  • rustsec.org/advisories/RUSTSEC-2021-0053.html

Code Behaviors & Features

Detect and mitigate CVE-2021-31996 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.1.8

Solution

Unfortunately, there is no solution available yet.

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-415: Double Free

Source file

cargo/algorithmica/CVE-2021-31996.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:39 +0000.