Live threats

All CVEs / Scratchpad Project

CVE-2021-28031Scratchpad Project Scratchpad

Critical 9.8 No auth needed

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Scratchpad.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
scratchpad_projectscratchpad< 1.3.1

Official sources

References

Links published by the sources. Open them with care.