Memory Safety Violation in Rust Zip Implementation
CVE-2021-28877
7.5HIGH
Key facts: CVE-2021-28877 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.3%, the estimated probability of exploitation in the next 30 days.
What is CVE-2021-28877?
The implementation of the Zip functionality in the Rust standard library prior to version 1.51.0 contains a flaw where the __iterator_get_unchecked() method can be invoked multiple times for the same index during nested operations. This repetition can compromise memory safety, as it bypasses a critical safety requirement associated with the TrustedRandomAccess trait, leading to potential security risks.
References
https://github.com/rust-lang/rust/pull/80670
https://security.gentoo.org/glsa/202210-09
vendor-advisory
More Rust-lang vulnerabilities
- CVE-2024-24576: Rust standard library vulnerable to arbitrary shell command execution(CRITICAL)
