RUSTSEC-2020-0148

    Dashboard / Vulnerabilities / RUSTSEC-2020-0148

    RUSTSEC-2020-0148

    Published: 10 Dec 2020Last Modified: 15 Mar 2024

    Summary: Multiple soundness issues in `Ptr`

    Details: Affected versions of this crate have the following issues: 1. `Ptr` implements `Send` and `Sync` for all types, this can lead to data races by sending non-thread safe types across threads. 2. `Ptr::get` violates mutable alias rules by returning multiple mutable references to the same object. 3. `Ptr::write` uses non-atomic writes to the underlying pointer. This means that when used across threads it can lead to data races.

    Affected packages

    Package

    Name: cgc

    Purl: pkg:cargo/cgc

    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-0148 | CVE-DB