CVE-2021-28031Scratchpad Project Scratchpad
Critical 9.8 No auth needed
Follow: this CVE · Scratchpad Project · Scratchpad Project Scratchpad We alert you by email or Slack (account required).
- Priority
- 74
- CVSS 3.1
- 9.8
- EPSS
- 1.4% probability of exploitation in 30 days · percentile 72
- Auth required
- No
- Published
- Mar 5, 2021
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-415
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Scratchpad.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| crates.io | scratchpad |
< 1.3.1 |
1.3.1 |
cargo update -p scratchpad --precise 1.3.1 |
| crates.io | scratchpad |
≥ 0.0.0-0 < 1.3.1 |
1.3.1 |
cargo update -p scratchpad --precise 1.3.1 |
Per OSV / GitHub Advisories (GHSA-3qm2-rfqw-fmrw, RUSTSEC-2021-0030). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| scratchpad_project | scratchpad | < 1.3.1 |
Official sources
References
Links published by the sources. Open them with care.
- rustsec.org Patch Third Party Advisory