Advisory

GHSA-2qv5-7mw5-j3cg

Also known as: RUSTSEC-2023-0031

Summary

spin-rs initialisation failure in Once::try_call_once can lead to undefined behaviour for other initialisers

Details

Once::try_call_once is unsound if invoked more than once concurrently and any call fails to initialise successfully.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2023-04-03 22:53 UTC
Modified
2026-09-10 03:49 UTC

Affected packages and fixes

spin

crates.io · All systems

Affected

  • introduced 0.9.3, fixed 0.9.8 (semver)

Fixed versions

0.9.8

Fix

  • Fixed version 0.9.8
    cargo update -p spin --precise 0.9.8

Fix 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

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences