{"id":"RUSTSEC-2019-0009","revision":"f9e3166c66684412a89bd5dc25f81b85","records":[{"revision":"f9e3166c66684412a89bd5dc25f81b85","observedAt":"2026-10-24T13:19:54.901+00:00","statement":{"source":"osv","id":"RUSTSEC-2019-0009","aliases":["CVE-2019-15551","GHSA-mm7v-vpv8-xfc3"],"title":"Double-free and use-after-free in SmallVec::grow()","description":"Attempting to call `grow` on a spilled SmallVec with a value equal to the current capacity causes it to free the existing data. This performs a double free immediately and may lead to use-after-free on subsequent accesses to the SmallVec contents.\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.","state":0,"publishedAt":"2019-06-06T12:00:00+00:00","modifiedAt":"2026-07-17T16:00:03.2041936+00:00","affected":[{"ecosystem":"crates.io","name":"smallvec","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0.6.5"},{"kind":"fixed","version":"0.6.10"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":null,"severity":null}],"references":["https://crates.io/crates/smallvec","https://rustsec.org/advisories/RUSTSEC-2019-0009.html","https://github.com/servo/rust-smallvec/issues/148"],"sourceUrl":"https://osv.dev/vulnerability/RUSTSEC-2019-0009","license":"OSV · upstream source license applies","key":"osv:RUSTSEC-2019-0009","identifiers":["RUSTSEC-2019-0009","CVE-2019-15551","GHSA-mm7v-vpv8-xfc3"]},"retained":false,"historicalAffected":[]}],"coverage":[]}