{"id":"CVE-2021-28031","published":"2021-03-05T08:40:15Z","modified":"2024-08-03T21:33:17Z","title":"An issue was discovered in the scratchpad crate before 1.3.1 for Rust","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.01364,"percentile":0.72482,"provenance":"source"},"cwes":[],"references":[{"url":"https://rustsec.org/advisories/RUSTSEC-2021-0030.html","tags":["x_refsource_MISC"]}],"priority":{"score":14.5,"factors":[{"name":"EPSS percentile","points":14.5}]},"affected":[{"ecosystem":"crates.io","package":"scratchpad","vulnerableRanges":["<1.3.1",">=0.0.0-0, <1.3.1"],"patched":["1.3.1"],"from":["GHSA-3qm2-rfqw-fmrw","RUSTSEC-2021-0030"],"provenance":"source"}],"summary":{"text":"The flaw lies in the move_elements function of the scratchpad crate for Rust, affecting versions before 1.3.1. The function can trigger a double-free when a user-provided f function panics.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:48:47Z"},"euvd":{"id":"EUVD-2022-2235","exploited":false,"provenance":"source"}}