CVE-2021-28877

CVSS V2 Medium 5 CVSS V3 High 7.5
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.
Overview
  • CVE ID
  • CVE-2021-28877
  • Assigner
  • cve@mitre.org
  • Vulnerability Status
  • Analyzed
  • Published Version
  • 2021-04-11T20:15:12
  • Last Modified Date
  • 2022-11-03T19:36:57
CPE Configuration (Product)
CPE Vulnerable Operator Version Start Version End
cpe:2.3:a:rust-lang:rust:*:*:*:*:*:*:*:* 1 OR 1.51.0
CVSS Version 2
  • Version
  • 2.0
  • Vector String
  • AV:N/AC:L/Au:N/C:N/I:N/A:P
  • Access Vector
  • NETWORK
  • Access Compatibility
  • LOW
  • Authentication
  • NONE
  • Confidentiality Impact
  • NONE
  • Integrity Impact
  • NONE
  • Availability Impact
  • PARTIAL
  • Base Score
  • 5
  • Severity
  • MEDIUM
  • Exploitability Score
  • 10
  • Impact Score
  • 2.9
CVSS Version 3
  • Version
  • 3.1
  • Vector String
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
  • Attack Vector
  • NETWORK
  • Attack Compatibility
  • LOW
  • Privileges Required
  • NONE
  • User Interaction
  • NONE
  • Scope
  • UNCHANGED
  • Confidentiality Impact
  • NONE
  • Availability Impact
  • HIGH
  • Base Score
  • 7.5
  • Base Severity
  • HIGH
  • Exploitability Score
  • 3.9
  • Impact Score
  • 3.6
References
Reference URL Reference Tags
https://github.com/rust-lang/rust/pull/80670 Issue Tracking Patch Third Party Advisory
https://security.gentoo.org/glsa/202210-09 Third Party Advisory
History
Created Old Value New Value Data Type Notes
2022-05-10 07:14:46 Added to TrackCVE
2022-12-06 01:33:52 2021-04-11T20:15Z 2021-04-11T20:15:12 CVE Published Date updated
2022-12-06 01:33:52 2022-11-03T19:36:57 CVE Modified Date updated
2022-12-06 01:33:52 Analyzed Vulnerability Status updated
2022-12-06 01:33:56 References updated