HistoryEditJSON (OSV)

RUSTSEC-2020-0026

linked-hash-map creates uninitialized NonNull pointer

Reported
Issued
Package
linked-hash-map (crates.io)
Type
INFO Unsound
Aliases
References
CVSS Score
9.8 CRITICAL
CVSS Details
Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Patched
  • >=0.5.3

Description

Affected versions of this crate called mem::uninitialized() to create a NonNull<T>, which is undefined behavior.

The flaw was corrected by avoiding the use of mem::uninitialized().

Advisory available under CC0-1.0 license.