RUSTSEC-2020-0123

    Dashboard / Vulnerabilities / RUSTSEC-2020-0123

    RUSTSEC-2020-0123

    Published: 24 Jan 2020Last Modified: 8 Nov 2023

    Summary: Contents of uninitialized memory exposed in DeflateOutput's AsyncRead implementation

    Details: Affected versions of this crate passes an uninitialized buffer to a user-provided trait function `AsyncRead::poll_read()`. Arbitrary `AsyncRead::poll_read()` implementations can read from the uninitialized buffer (memory exposure) and also can return incorrect number of bytes written to the buffer. Reading from uninitialized memory produces undefined values that can quickly invoke undefined behavior. The flaw was fixed in commit 5ba266a by ensuring the newly allocated part of the buffer is zero-initialized before passing it to a user-provided `AsyncRead::poll_read()`.

    Affected packages

    Package

    Name: libp2p-deflate

    Purl: pkg:cargo/libp2p-deflate

    Affected ranges

    Type: SEMVER

    Events:

    Introduced- 0.0.0-0
    Fixed -0.27.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-2020-0123 | CVE-DB