{"id":"CVE-2021-29933","aliases":["EUVD-2021-1508","GHSA-29hg-r7c7-54fr","RUSTSEC-2021-0042"],"status":"published","title":"Double free in insert_many","description":"An issue was discovered in the insert_many crate through 2021-01-26 for Rust. Elements may be dropped twice if a .next() method panics.","severity":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-10","score":0.01175,"percentile":0.67824,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"cwes":["CWE-415"],"published":"2021-01-26T12:00:00Z","modified":"2026-06-17T03:48:27Z","affected":[{"source":"ghsa","ecosystem":"crates.io","package":"insert_many","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"0.1.1"}]}]},{"source":"osv","ecosystem":"crates.io","package":"insert_many","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"last_affected":"0.1.1"}]}]},{"source":"osv","ecosystem":"crates.io","package":"insert_many","ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.0-0"}]}]}],"products":[{"vendor":"insert_many_project","product":"insert_many"}],"references":[{"url":"https://rustsec.org/advisories/RUSTSEC-2021-0042.html","tags":["x_refsource_MISC","x_transferred","Exploit","Vendor Advisory","web","advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-29933","tags":["advisory"]},{"url":"https://github.com/rphmeier/insert_many/issues/1","tags":["web","report"]},{"url":"https://github.com/advisories/GHSA-29hg-r7c7-54fr"},{"url":"https://github.com/rphmeier/insert_many","tags":["package"]},{"url":"https://crates.io/crates/insert_many","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2021-29933","description":"An issue was discovered in the insert_many crate through 2021-01-26 for Rust. Elements may be dropped twice if a .next() method panics.","status":"published","published":"2021-04-01T04:24:27Z","modified":"2024-08-03T22:18:03.26Z","updated_at":"2026-11-02T14:33:06.32268Z"}],"euvd":[{"id":"EUVD-2021-1508","description":"An issue was discovered in the insert_many crate through 2021-01-26 for Rust. Elements may be dropped twice if a .next() method panics.","status":"published","published":"2021-04-01T04:24:27Z","modified":"2024-08-03T22:18:03Z","updated_at":"2026-11-03T03:24:43.965438Z"}],"ghsa":[{"id":"GHSA-29hg-r7c7-54fr","title":"Double free in insert_many","description":"An issue was discovered in the insert_many crate through 2021-01-26 for Rust. Elements may be dropped twice if a .next() method panics.","status":"published","published":"2021-08-25T20:55:06Z","modified":"2023-01-09T05:05:06Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"cwes":["CWE-415"],"updated_at":"2026-11-02T14:36:11.367194Z"}],"nvd":[{"id":"CVE-2021-29933","description":"An issue was discovered in the insert_many crate through 2021-01-26 for Rust. Elements may be dropped twice if a .next() method panics.","status":"published","published":"2021-04-01T05:15:14.483Z","modified":"2026-06-17T03:48:27.96Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high","assessor":"primary"},{"version":"2.0","score":5,"vector":"AV:N/AC:L/Au:N/C:N/I:N/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-415"],"updated_at":"2026-11-02T14:06:51.197859Z"}],"osv":[{"id":"GHSA-29hg-r7c7-54fr","title":"Double free in insert_many","description":"An issue was discovered in the insert_many crate through 2021-01-26 for Rust. Elements may be dropped twice if a .next() method panics.","status":"published","published":"2021-08-25T20:55:06Z","modified":"2023-11-08T04:05:43.697683Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"cwes":["CWE-415"],"updated_at":"2026-11-02T15:46:33.956911Z"},{"id":"RUSTSEC-2021-0042","title":"insert_many can drop elements twice on panic","description":"Affected versions of `insert_many` used `ptr::copy` to move over items in a\nvector to make space before inserting, duplicating their ownership. It then\niterated over a provided `Iterator` to insert the new items.\n\nIf the iterator's `.next()` method panics then the vector would drop the same\nelements twice.","status":"published","published":"2021-01-26T12:00:00Z","modified":"2023-11-08T04:05:43.697683Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-02T15:53:39.492624Z"}]}}
