RUSTSEC-2021-0029

    Dashboard / Vulnerabilities / RUSTSEC-2021-0029

    RUSTSEC-2021-0029

    Published: 17 Feb 2021Last Modified: 8 Nov 2023

    Summary: Tape::take_bytes exposes uninitialized memory to a user-provided Read

    Details: Affected versions of this crate passed an unininitialized buffer to a user-provided `Read` instance in `Tape::take_bytes`. This can result in safe `Read` implementations reading from the uninitialized buffer leading to undefined behavior. The flaw was corrected in commit `1f2dc7f37dd` by removing the unsafe block and zero-initializing the buffer.

    Affected packages

    Package

    Name: truetype

    Purl: pkg:cargo/truetype

    Affected ranges

    Type: SEMVER

    Events:

    Introduced- 0.0.0-0
    Fixed -0.30.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-0029 | CVE-DB