RUSTSEC-2021-0042

    Dashboard / Vulnerabilities / RUSTSEC-2021-0042

    RUSTSEC-2021-0042

    Published: 26 Jan 2021Last Modified: 8 Nov 2023

    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.

    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
    RUSTSEC-2021-0042 | CVE-DB