Advisory record · GHSA-3qm2-rfqw-fmrw

move_elements can double-free objects on panic

CVSS 9.8 CriticalCriticalEPSS 0.014 · 72nd percentile

Critical, because:

  • CVSS score 9.8: 9.0 or more.

How we decide what’s critical

Published by the GitHub Advisory Database at 24 May 2022, 17:43 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
scratchpadcrates.io<1.3.11.3.1
Identifiers
GHSA-3qm2-rfqw-fmrw · CVE-2021-28031 · RUSTSEC-2021-0030
Weakness (CWE)
CWE-415
Published
24 May 2022
Updated
8 Nov 2023

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

The scratchpad crate, versions before 1.3.1, has a flaw in its move_elements function. It reads elements with ptr::read while calling a user-supplied function on them, so a panic inside that function can cause a double free during unwinding. The source does not state what an attacker must do to trigger it. Upgrade scratchpad to version 1.3.1 or later, which fixes the issue.

Written 9 Nov 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
9.8 Critical 3.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H GitHub Advisory Database
  • CISA KEV Not listed.
  • EPSS 0.014, the 72nd percentile, on 22 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 31 Oct 2026, 15:21 UTC First seen by agentprime
  2. 31 Oct 2026, 15:21 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.