Critical severity9.8NVD Advisory· Published Mar 5, 2021· Updated Jun 17, 2026
CVE-2021-28031
CVE-2021-28031
Description
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
scratchpadcrates.io | < 1.3.1 | 1.3.1 |
Affected products
3- cpe:2.3:a:scratchpad_project:scratchpad:*:*:*:*:*:rust:*:*Range: <1.3.1
- Rust/scratchpaddescription
Patches
Vulnerability mechanics
References
5- rustsec.org/advisories/RUSTSEC-2021-0030.htmlnvdPatchThird Party AdvisoryWEB
- github.com/advisories/GHSA-3qm2-rfqw-fmrwghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2021-28031ghsaADVISORY
- github.com/okready/scratchpad/commit/891561beaghsaWEB
- github.com/okready/scratchpad/issues/1ghsaWEB
News mentions
0No linked articles in our index yet.