- Reported
-
- Issued
-
- Package
-
once_cell
(crates.io)
- Type
-
Vulnerability
- Keywords
-
#undefined_behavior
- Aliases
-
- References
-
- CVSS Score
- 7.5
HIGH
- CVSS Details
-
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- None
- Availability
- High
- CVSS Vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Patched
-
- Unaffected
-
- Affected Functions
- Version
once_cell::sync::Lazy::deref
-
once_cell::sync::Lazy::force
-
once_cell::unsync::Lazy::deref
-
once_cell::unsync::Lazy::force
-
Description
If during the first dereference of Lazy 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.
Advisory available under CC0-1.0
license.