{"id":"RUSTSEC-2019-0012","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.\n\nAn attacker that controls the value passed to `grow` may exploit this flaw to obtain memory contents or gain remote code execution.\n\nCredits to [@ehuss](https://github.com/ehuss) for discovering, reporting and fixing the bug.","aliases":["CVE-2019-15554","GHSA-69gw-hgj3-45m7"],"modified":"2026-07-17T16:00:03.225430317Z","published":"2019-07-19T12:00:00Z","database_specific":{"license":"CC0-1.0"},"references":[{"type":"PACKAGE","url":"https://crates.io/crates/smallvec"},{"type":"ADVISORY","url":"https://rustsec.org/advisories/RUSTSEC-2019-0012.html"},{"type":"REPORT","url":"https://github.com/servo/rust-smallvec/issues/149"}],"affected":[{"package":{"name":"smallvec","ecosystem":"crates.io","purl":"pkg:cargo/smallvec"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0.6.3"},{"fixed":"0.6.10"}]}],"ecosystem_specific":{"affects":{"functions":["smallvec::SmallVec::grow"],"arch":[],"os":[]},"affected_functions":null},"database_specific":{"categories":["code-execution","memory-corruption"],"cvss":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","informational":null,"source":"https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2019-0012.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}