# CVE-2021-31996: Double free in algorithmica

- Severity: High 7.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.00%, higher than 63% of CVEs (2026-12-01)
- Published: 2021-03-07T12:00:00.000Z
- Modified: 2026-06-17T03:52:38.717Z
- Also known as: GHSA-jh37-772x-4hpw, RUSTSEC-2021-0053
- Weaknesses: CWE-415
- Assigned by: mitre

## Description

An issue was discovered in the algorithmica crate through 2021-03-07 for Rust. There is a double free in merge_sort::merge().

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- algorithmica (crates.io): up to 0.1.8; from 0.0.0-0
- algorithmica_project algorithmica: up to 2021-03-07

## Every score

- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:N/A:P`

## References

- <https://rustsec.org/advisories/RUSTSEC-2021-0053.html> (advisory, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-31996> (advisory)
- <https://github.com/AbrarNitk/algorithmica/issues/1> (report, web)
- <https://crates.io/crates/algorithmica> (package)

## Sources

- CVE List: [CVE-2021-31996](https://www.cve.org/CVERecord?id=CVE-2021-31996), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-jh37-772x-4hpw](https://github.com/advisories/GHSA-jh37-772x-4hpw), CC-BY-4.0, modified 2023-11-08
- RustSec Advisory Database: [RUSTSEC-2021-0053](https://rustsec.org/advisories/RUSTSEC-2021-0053.html), CC0-1.0, modified 2023-11-08
- NVD: [CVE-2021-31996](https://nvd.nist.gov/vuln/detail/CVE-2021-31996), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-31996 · Whole record: https://cve.day/CVE-2021-31996.json · Rebuilt by cve.day 2026-11-25T22:58:01.130Z
