# CVE-2021-28034: Drop of uninitialized memory in stack_dst

- Severity: Critical 9.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/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.31%, higher than 71% of CVEs (2026-12-01)
- Published: 2021-02-22T12:00:00.000Z
- Modified: 2026-06-17T03:45:45.270Z
- Also known as: GHSA-45w7-7g63-2m5w, GHSA-8mjx-h23h-w2pg, RUSTSEC-2021-0033
- Related: CVE-2021-28035
- Weaknesses: CWE-415, CWE-908
- Assigned by: mitre

## Description

An issue was discovered in the stack_dst crate before 0.6.1 for Rust. Because of the push_inner behavior, a double free can occur upon a val.clone() panic.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- stack_dst (crates.io): before 0.6.1; from 0.0.0-0 before 0.6.1
- stack_dst_project stack_dst: before 0.6.1

## Every score

- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- RustSec Advisory Database: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`

## References

- <https://rustsec.org/advisories/RUSTSEC-2021-0033.html> (advisory, patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-28035> (advisory)
- <https://github.com/thepowersgang/stack_dst-rs/issues/5> (report, web)
- <https://github.com/thepowersgang/stack_dst-rs/commit/2a4d538> (web)
- <https://github.com/thepowersgang/stack_dst-rs> (package)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-28034> (advisory)
- <https://github.com/thepowersgang/stack_dst-rs/commit/2a4d53809e3000f40085f2b229b6b1a33759881d> (web)
- <https://crates.io/crates/stack_dst> (package)

## Sources

- CVE List: [CVE-2021-28034](https://www.cve.org/CVERecord?id=CVE-2021-28034), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-45w7-7g63-2m5w](https://github.com/advisories/GHSA-45w7-7g63-2m5w), CC-BY-4.0, modified 2023-11-08
- GitHub Advisory Database: [GHSA-8mjx-h23h-w2pg](https://github.com/advisories/GHSA-8mjx-h23h-w2pg), CC-BY-4.0, modified 2023-11-08
- RustSec Advisory Database: [RUSTSEC-2021-0033](https://rustsec.org/advisories/RUSTSEC-2021-0033.html), CC0-1.0, modified 2023-11-08
- NVD: [CVE-2021-28034](https://nvd.nist.gov/vuln/detail/CVE-2021-28034), Public domain, modified 2026-06-17

---

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