GHSA-f997-8gxg-r354

    Dashboard / Vulnerabilities / GHSA-f997-8gxg-r354

    GHSA-f997-8gxg-r354

    Published: 25 Aug 2021Last Modified: 8 Nov 2023

    Summary: Data races in lexer

    Details: lexer is a plugin based lexical reader.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
    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
    GHSA-f997-8gxg-r354 | CVE-DB