RUSTSEC-2021-0047
Dashboard / Vulnerabilities / RUSTSEC-2021-0047
RUSTSEC-2021-0047
Published: 19 Feb 2021Last Modified: 8 Nov 2023
Aliases:
Summary: SliceDeque::drain_filter can double drop an element if the predicate panics
Details: Affected versions of the crate incremented the current index of the drain filter iterator *before* calling the predicate function `self.pred`. If the predicate function panics, it is possible for the last element in the iterator to be dropped twice.
References: https://crates.io/crates/slice-deque, https://rustsec.org/advisories/RUSTSEC-2021-0047.html, https://github.com/gnzlbg/slice_deque/issues/90
Affected packages
Package
Name: slice-deque
Purl: pkg:cargo/slice-deque
Affected ranges
Type: SEMVER
Events:
Introduced- 0.0.0-0
Fixed -None
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
