scratchpad
Affected
- introduced
0.0.0-0, fixed1.3.1(semver)
Fixed versions
1.3.1
Fix
- Fixed version
1.3.1cargo update -p scratchpad --precise 1.3.1
Advisory
Also known as: CVE-2021-28031, GHSA-3qm2-rfqw-fmrw
move_elements can double-free objects on panic
Affected versions of scratchpad used ptr::read to read elements while
calling a user provided function f on them.
Since the pointer read duplicates ownership, a panic inside the user providedf function could cause a double free when unwinding.
The flaw was fixed in commit 891561bea by removing the unsafe block and using
a plain iterator.
Critical Basis: CVSS v3 score 9.8, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
0.0.0-0, fixed 1.3.1 (semver)1.3.1
1.3.1cargo update -p scratchpad --precise 1.3.1Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: RustSec Advisory Database · CC0-1.0