CVE-2021-28878
JSON

7.5high

In the standard library in Rust before 1.52.0, the Zip implementation calls iteratorgetunchecked() more than once for the same index (under…

Severity
7.5high CVSS:3.1 by NVD
Exploit likelihood
2.00% (higher than 81% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mitre

Description

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

Product or packageVersionsReported by
Unspecified productn/aCVE List
rust-lang rustbefore 1.52.0NVD
fedoraproject fedora32, 33, 34NVD

All scores

NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD4.3medium CVSS:2.0AV:N/AC:M/Au:N/C:N/I:N/A:P

Classification

What each source says

CVE List

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.

NVD (es)

En la biblioteca estándar en Rust versiones anteriores a 1.52.0, la implementación de Zip llama a la función __iterator_get_unchecked() más de una vez para el mismo índice (bajo determinadas condiciones) cuando las funciones next_back() y next() son usadas juntas. Este bug podría conllevar a una violación de seguridad de la memoria debido a un requisito de seguridad no cumplido para el rasgo TrustedRandomAccess

References

Sources

SourceRecordLicence
CVE ListCVE-2021-28878 changed 2024-08-03CVE Terms of Use
NVDCVE-2021-28878 changed 2026-06-17Public domain