RUSTSEC-2019-0017
Dashboard / Vulnerabilities / RUSTSEC-2019-0017
RUSTSEC-2019-0017
Published: 1 Sept 2019Last Modified: 8 Nov 2023
Aliases:
Summary: Panic during initialization of Lazy<T> might trigger undefined behavior
Details: If during the first dereference of Lazy<T> the initialization function panics, subsequent dereferences will execute `std::hints::unreachable_unchecked`. Applications with `panic = "abort"` are not affected, as there will be no subsequent dereferences.
References: https://crates.io/crates/once_cell, https://rustsec.org/advisories/RUSTSEC-2019-0017.html, https://github.com/matklad/once_cell/issues/46
Affected packages
Package
Name: once_cell
Purl: pkg:cargo/once_cell
Affected ranges
Type: SEMVER
Events:
Introduced- 0.2.5
Fixed -1.0.1
Affected versions
Common Vulnerability Scoring System
Attack Vector
Network
Adjacent
Local
Physical
Privileges Required
None
Low
High
User Interaction
None
Required
Scope
Unchanged
Changed
Confidentiality
None
Low
High
Integrity
None
Low
High
Availability
None
Low
High
