CVE-2021-28034 json
Double free in stack_dst
published 2021-02-22 5 y ago modified 2026-06-17 4 mo ago also CVE-2021-28035 , GHSA-45w7-7g63-2m5w , GHSA-8mjx-h23h-w2pg , RUSTSEC-2021-0033 , EUVD-2021-2016
- cvss
- 9.8
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.3%
- EPSS 1.3% chance of exploitation in 30 days, percentile 70%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- crates.io stack_dst 0.6.1
- stack_dst_project stack_dst 0.6.1
Exploit prediction
1.29% chance of exploitation in the next 30 days, higher than 70% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
| OSV | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| crates.io | stack_dst | <0.6.1 >=0.0.0-0, <0.6.1 |
0.6.1 |
Classification
References
-
rustsec.org
/advisories/RUSTSEC-2021-0033.html
web, patch, third-party-advisory, advisory
-
github.com
/thepowersgang/stack_dst-rs/commit/2a4d538
web
-
github.com
/thepowersgang/stack_dst-rs/commit/2a4d53809e3000f40085f2b229b6b1a33759881d
web
-
nvd.nist.gov
/vuln/detail/CVE-2021-28034
advisory
-
github.com
/thepowersgang/stack_dst-rs/issues/5
web, report
-
github.com
/thepowersgang/stack_dst-rs
package
-
nvd.nist.gov
/vuln/detail/CVE-2021-28035
advisory
-
crates.io
/crates/stack_dst
package
Sources
- CVE List CVE-2021-28034
- GitHub Advisory GHSA-8mjx-h23h-w2pg
- GitHub Advisory GHSA-45w7-7g63-2m5w
- NVD CVE-2021-28034
- OSV RUSTSEC-2021-0033
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.