An issue was discovered in the scratchpad crate before 1.3.1 for Rust.
Priority MEDIUM 45CWE-415Published · Updated
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub. Impact type from CWE-415 and the CVSS impact.
Summary
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.
Why it matters now
EPSS 0.01364 71st percentileScored 2026-11-07
Fix Fixed scratchpad (crates.io): 1.3.1
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
| — | scratchpad (crates.io) | before 1.3.1 | 1.3.1 | Patch available | GHSA-3qm2-rfqw-fmrw |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
- scratchpad (crates.io) Vendor— Affected before 1.3.1 Fixed in 1.3.1 Patch available GHSA-3qm2-rfqw-fmrw
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:scratchpad_project:scratchpad:*:*:*:*:*:rust:*:* | before 1.3.1 | Vulnerable | Scratchpad Project |
- cpe:2.3:a:scratchpad_project:scratchpad:*:*:*:*:*:rust:*:* Versions before 1.3.1 Vulnerable ·Scratchpad Project
Remediation
- Fix · GHSA-3qm2-rfqw-fmrw scratchpad (crates.io) Fixed in 1.3.1 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2021-28031
- 2026-10-03 Alias added: GHSA-3qm2-rfqw-fmrw
References
Sources
- CVE-2021-28031 · CVE Program
- CVE-2021-28031 · NVD
- FIRST EPSS
- GHSA-3qm2-rfqw-fmrw · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences