Double Free Vulnerability in Rust Standard Library
CVE-2021-31162
9.8CRITICAL
Key facts: CVE-2021-31162 is a critical severity (CVSS 9.8) vulnerability in Rust-lang Rust. No exploitation in the wild or public proof-of-concept has been recorded so far. Its EPSS score is 2.8%, the estimated probability of exploitation in the next 30 days.
What is CVE-2021-31162?
A double free vulnerability exists in the Rust standard library versions prior to 1.52.0, specifically in the Vec::from_iter function. This issue can occur if an attempt to free an element results in a panic, leading to potential memory corruption and unpredictable behavior. Developers using affected versions should upgrade to mitigate this risk.
References
https://github.com/rust-lang/rust/issues/83618
https://github.com/rust-lang/rust/pull/83629
https://lists.fedoraproject.org/archives/list/package-ann...
vendor-advisory
More Rust-lang vulnerabilities
- CVE-2024-24576: Rust standard library vulnerable to arbitrary shell command execution(CRITICAL)
