Memory Safety Issue in Rust's Zip Implementation
CVE-2021-28878
7.5HIGH
Key facts: CVE-2021-28878 is a high severity (CVSS 7.5) 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.9%, the estimated probability of exploitation in the next 30 days.
What is CVE-2021-28878?
A flaw in the Rust Standard Library prior to version 1.52.0 affects the Zip implementation, where the function __iterator_get_unchecked() is called multiple times for the same index under certain usage conditions of next_back() and next(). This oversight violates the safety requirement for the TrustedRandomAccess trait, potentially leading to memory safety issues.
References
https://github.com/rust-lang/rust/issues/82291
https://github.com/rust-lang/rust/pull/82292
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)
