# GHSA-2qv5-7mw5-j3cg: spin-rs initialisation failure in `Once::try_call_once` can lead to undefined behaviour for other initialisers

- Severity: Medium (rating, scored by GitHub)
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2023-03-31T12:00:00.000Z
- Modified: 2026-09-10T03:49:53.155Z
- Also known as: RUSTSEC-2023-0031

## Description

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

(As written by GitHub Advisory Database.)

## Affected

- spin (crates.io): from 0.9.3 before 0.9.8

## References

- <https://github.com/mvdnes/spin-rs/issues/148> (report, web)
- <https://github.com/mvdnes/spin-rs> (package)
- <https://rustsec.org/advisories/RUSTSEC-2023-0031.html> (advisory, web)
- <https://crates.io/crates/spin> (package)

## Sources

- GitHub Advisory Database: [GHSA-2qv5-7mw5-j3cg](https://github.com/advisories/GHSA-2qv5-7mw5-j3cg), CC-BY-4.0, modified 2026-09-10
- RustSec Advisory Database: [RUSTSEC-2023-0031](https://rustsec.org/advisories/RUSTSEC-2023-0031.html), CC0-1.0, modified 2023-11-08

---

Page: https://cve.day/GHSA-2qv5-7mw5-j3cg · Whole record: https://cve.day/GHSA-2qv5-7mw5-j3cg.json · Rebuilt by cve.day 2026-11-25T22:56:43.146Z
