RUSTSEC-2021-0008

    Dashboard / Vulnerabilities / RUSTSEC-2021-0008

    RUSTSEC-2021-0008

    Published: 2 Jan 2021Last Modified: 8 Nov 2023

    Summary: reading on uninitialized buffer can cause UB (`impl<R> BufRead for GreedyAccessReader<R>`)

    Details: Affected versions of this crate creates an uninitialized buffer and passes it to user-provided `Read` implementation. This is unsound, because it allows safe Rust code to exhibit an undefined behavior (read from uninitialized memory). The flaw was corrected in version 0.1.1 by zero-initializing a newly allocated buffer before handing it to a user-provided `Read` implementation.

    Affected packages

    Package

    Name: bra

    Purl: pkg:cargo/bra

    Affected ranges

    Type: SEMVER

    Events:

    Introduced- 0.0.0-0
    Fixed -0.1.1

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