RUSTSEC-2020-0138

    Dashboard / Vulnerabilities / RUSTSEC-2020-0138

    RUSTSEC-2020-0138

    Published: 10 Nov 2020Last Modified: 8 Nov 2023

    Summary: ReaderResult should be bounded by Sync

    Details: Affected versions of this crate implements `Sync` for `ReaderResult<T, E>` with the trait bound `T: Send, E: Send`. Since matching on the public enum `ReaderResult<T, E>` provides access to `&T` & `&E`, allowing data race to a non-Sync type `T` or `E`. This can result in a memory corruption when multiple threads concurrently access `&T` or `&E`. Suggested fix for the bug is change the trait bounds imposed on `T` & `E` to be `T: Sync, E: Sync`.

    Affected packages

    Package

    Name: lexer

    Purl: pkg:cargo/lexer

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