RUSTSEC-2021-0042
Dashboard / Vulnerabilities / RUSTSEC-2021-0042
RUSTSEC-2021-0042
Published: 26 Jan 2021Last Modified: 8 Nov 2023
Aliases:
Summary: insert_many can drop elements twice on panic
Details: Affected versions of `insert_many` used `ptr::copy` to move over items in a vector to make space before inserting, duplicating their ownership. It then iterated over a provided `Iterator` to insert the new items. If the iterator's `.next()` method panics then the vector would drop the same elements twice.
References: https://crates.io/crates/insert_many, https://rustsec.org/advisories/RUSTSEC-2021-0042.html, https://github.com/rphmeier/insert_many/issues/1
Affected packages
Package
Name: insert_many
Purl: pkg:cargo/insert_many
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
