Use-After-Free and Double Free Vulnerability in Rust Standard Library
CVE-2020-36318
9.8CRITICAL
Key facts: CVE-2020-36318 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 1.6%, the estimated probability of exploitation in the next 30 days.
What is CVE-2020-36318?
The standard library in Rust prior to version 1.49.0 contains a flaw in the VecDeque::make_contiguous function that can lead to a use-after-free or double free condition. This issue arises when the function incorrectly pops the same element multiple times under specific circumstances, potentially causing memory corruption and unpredictable behavior in applications relying on this implementation.
References
https://github.com/rust-lang/rust/issues/79808
x_refsource_MISC
https://github.com/rust-lang/rust/pull/79814
x_refsource_MISC
More Rust-lang vulnerabilities
- CVE-2024-24576: Rust standard library vulnerable to arbitrary shell command execution(CRITICAL)
