RUSTSEC-2020-0037

    Dashboard / Vulnerabilities / RUSTSEC-2020-0037

    RUSTSEC-2020-0037

    Published: 31 Aug 2020Last Modified: 8 Nov 2023

    Summary: Misbehaving `HandleLike` implementation can lead to memory safety violation

    Details: Unsafe code in `ObjectPool` has time-of-check to time-of-use (TOCTOU) bug that can eventually lead to a memory safety violation. `ObjectPool` and `HandlePool` implicitly assumes that `HandleLike` trait methods are pure, i.e., they always return the same value. However, this assumption is unsound since `HandleLike` is a safe, public trait that allows a custom implementation.

    Affected packages

    Package

    Name: crayon

    Purl: pkg:cargo/crayon

    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-2020-0037 | CVE-DB