CVE-2021-28877

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.51.0, the Zip implementation calls __iterator_get_unchecked() for the same index more than once when nested. This bug can lead to a memory safety violation due to an unmet safety requirement for the TrustedRandomAccess trait.

References

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

Details

Source: MITRE

Published: 2021-04-11

Updated: 2021-04-22

Type: CWE-119

Risk Information

CVSS v2

Base Score: 5

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

Impact Score: 2.9

Exploitability Score: 10

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

Vulnerable Software

Configuration 1

OR

cpe:2.3:a:rust-lang:rust:*:*:*:*:*:*:*:*

Tenable Plugins

View all (4 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