CVE-2021-28878

high
New! CVE Severity Now Using CVSS v3

The calculated severity for CVEs has been updated to use CVSS v3 by default. CVEs that do not have a CVSS v3 score will fall back CVSS v2 for calculating severity. Severity display preferences can be toggled in the settings dropdown.

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.

References

https://github.com/rust-lang/rust/issues/82291

https://github.com/rust-lang/rust/pull/82292

https://lists.fedoraproject.org/archives/list/[email protected]/message/CZ337CM4GFJLRDFVQCGC7J25V65JXOG5/

https://lists.fedoraproject.org/archives/list/[email protected]/message/TFUO3URYCO73D2Q4WYJBWAMJWGGVXQO4/

https://lists.fedoraproject.org/archives/list/[email protected]/message/VZG65GUW6Z2CYOQHF7T3TB5CZKIX6ZJE/

Details

Source: MITRE

Published: 2021-04-11

Updated: 2021-04-27

Type: CWE-119

Risk Information

CVSS v2

Base Score: 4.3

Vector: AV:N/AC:M/Au:N/C:N/I:N/A:P

Impact Score: 2.9

Exploitability Score: 8.6

Severity: MEDIUM

CVSS v3

Base Score: 7.5

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Impact Score: 3.6

Exploitability Score: 3.9

Severity: HIGH

Tenable Plugins

View all (6 total)

IDNameProductFamilySeverity
152574CentOS 8 : rust-toolset:rhel8 (CESA-2021:3063)NessusCentOS Local Security Checks
critical
152509Oracle Linux 8 : rust-toolset:ol8 (ELSA-2021-3063)NessusOracle Linux Local Security Checks
critical
152449RHEL 8 : rust-toolset:rhel8 (RHSA-2021:3063)NessusRed Hat Local Security Checks
critical
152446RHEL 7 : rust-toolset-1.52 and rust-toolset-1.52-rust (RHSA-2021:3042)NessusRed Hat Local Security Checks
critical
149291Photon OS 3.0: Rust PHSA-2021-3.0-0228NessusPhotonOS Local Security Checks
critical
149286Photon OS 4.0: Rust PHSA-2021-4.0-0017NessusPhotonOS Local Security Checks
critical