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

Not scored Published

Concurrent initialization failures in spin-rs can cause undefined behavior, potentially allowing arbitrary code execution in applications using the library.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Not stated
Victim action needed
Not needed
Fix
Available

What is GHSA-2qv5-7mw5-j3cg?

GHSA-2qv5-7mw5-j3cg is a vulnerability in spin, published on 31 Mar 2023.

Official description

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

Which versions are affected by GHSA-2qv5-7mw5-j3cg?

3 open source packages ship an affected version, including spin.

PackageAffectedFixed in
spin crates.ioFrom 0.9.30.9.8
spin crates.ioFrom 0.9.30.9.8
spin crates.ioFrom 0.9.30.9.8

How do I fix GHSA-2qv5-7mw5-j3cg?

Upgrade spin to 0.9.8 or later.

Is GHSA-2qv5-7mw5-j3cg being exploited?

There is no known exploitation of GHSA-2qv5-7mw5-j3cg in the wild and no public exploit code.

Sources

Also known as RUSTSEC-2023-0031.

Is GHSA-2qv5-7mw5-j3cg in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free