{"id":"CVE-2021-28031","details":"An issue was discovered in the scratchpad crate before 1.3.1 for Rust. The move_elements function can have a double-free upon a panic in a user-provided f function.","aliases":["GHSA-3qm2-rfqw-fmrw","RUSTSEC-2021-0030"],"modified":"2026-03-14T10:50:09.682426Z","published":"2021-03-05T09:15:14.037Z","references":[{"type":"FIX","url":"https://rustsec.org/advisories/RUSTSEC-2021-0030.html"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/okready/scratchpad","events":[{"introduced":"0"},{"fixed":"c97b1855e98bbcf12ec1b746bf4f5fce5c865b9c"}],"database_specific":{"versions":[{"introduced":"0"},{"fixed":"1.3.1"}]}}],"versions":["0.1.0","0.1.1","0.2.0","0.3.0","v1.0.0","v1.0.0-beta.1","v1.0.0-beta.2","v1.0.1","v1.1.0","v1.2.0","v1.3.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-28031.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}