CVE-2021-28034
Double free in stack_dst
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD, GHSA.
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.
Affected packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| cargo::GitHub Security Advisory Rust | stack_dst | 0.6.1 |
References
- https://github.com/thepowersgang/stack_dst-rs
- https://github.com/thepowersgang/stack_dst-rs/commit/2a4d538
- https://github.com/thepowersgang/stack_dst-rs/commit/2a4d53809e3000f40085f2b229b6b1a33759881d
- https://github.com/thepowersgang/stack_dst-rs/issues/5
- https://nvd.nist.gov/vuln/detail/CVE-2021-28034
- https://rustsec.org/advisories/RUSTSEC-2021-0033.html