cbcvebase.
CVE-2021-28878
published 2021-04-11

CVE-2021-28878: In the standard library in Rust before 1.52.0, the Zip implementation calls __iterator_get_unchecked() more than once for the same index (under certain…

high7.5CVSS 3.1
AVNACLPRNUINSUCNINAH
In the standard library in Rust before 1.52.0, the Zip implementation calls __iterator_get_unchecked() more than once for the same index (under certain conditions) when next_back() and next() are used together. This bug could lead to a memory safety violation due to an unmet safety requirement for the TrustedRandomAccess trait.

Affected

8 ranges
VendorProductVersion rangeFixed in
debianrustc< rustc 1.53.0+dfsg1-1 (bookworm)rustc 1.53.0+dfsg1-1 (bookworm)
fedoraprojectfedora
fedoraprojectfedora
fedoraprojectfedora
msrccbl_mariner_1.0_arm
msrccbl_mariner_1.0_x64
msrccm1_rust_1.47.0-3_on_cbl_mariner_1.0
rust-langrust< 1.52.01.52.0

CVSS provenance

nvdv3.17.5HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
osv7.5HIGH