Advisory

RUSTSEC-2019-0012

Also known as: CVE-2019-15554, GHSA-69gw-hgj3-45m7

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 for discovering, reporting and fixing the bug.

Severity

Critical Basis: CVSS v3 score 9.8, vector CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Dates

Published
2019-07-19 12:00 UTC
Modified
2026-07-17 16:00 UTC

Affected packages and fixes

smallvec

crates.io · All systems

Affected

  • introduced 0.6.3, fixed 0.6.10 (semver)

Fixed versions

0.6.10

Fix

  • Fixed version 0.6.10
    cargo update -p smallvec --precise 0.6.10

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: RustSec Advisory Database · CC0-1.0

Sources & licences