RUSTSEC-2019-0012

    Dashboard / Vulnerabilities / RUSTSEC-2019-0012

    RUSTSEC-2019-0012

    Published: 19 Jul 2019Last Modified: 17 Jul 2026

    Summary: Memory corruption in SmallVec::grow()

    Details: Attempting to call `grow` on a spilled SmallVec with a value less than the current capacity causes corruption of memory allocator data structures. An attacker that controls the value passed to `grow` may exploit this flaw to obtain memory contents or gain remote code execution. Credits to [@ehuss](https://github.com/ehuss) for discovering, reporting and fixing the bug.

    Affected packages

    Package

    Name: smallvec

    Purl: pkg:cargo/smallvec

    Affected ranges

    Type: SEMVER

    Events:

    Introduced- 0.6.3
    Fixed -0.6.10

    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