Vulnerability DatabaseGHSA-2qv5-7mw5-j3cg

GHSA-2qv5-7mw5-j3cg
Rust vulnerability analysis and mitigation

Overview

A moderate severity vulnerability was discovered in the spin-rs Rust package affecting versions 0.9.3 through 0.9.8. The vulnerability, identified as GHSA-2qv5-7mw5-j3cg, involves unsoundness in the Once::try_call_once function when it is invoked concurrently and initialization fails. The issue was published and reviewed on April 3, 2023 (GitHub Advisory, RustSec Advisory).

Technical details

The vulnerability occurs in the Once::try_call_once function when multiple threads attempt to access the Once instance simultaneously and initialization fails. The function incorrectly assumes that the state can only transition from running to either complete or panicked, failing to account for scenarios where the once function returns an error and reverts to an incomplete state. In debug builds, this results in a panic, while in release builds it leads to undefined behavior through an unreachable() call (Spin-RS Issue).

Impact

When exploited, this vulnerability can lead to undefined behavior in release builds of applications using the affected versions of spin-rs. This is particularly concerning in concurrent scenarios where multiple threads attempt initialization, and any initialization attempt fails (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in version 0.9.8 of the spin-rs package. Users are advised to upgrade to this version or later to address the issue. Versions prior to 0.9.3 are not affected by this vulnerability (RustSec Advisory).

Additional resources


SourceThis report was generated using AI

Related Rust vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-22257HIGH8.8
  • RustRust
  • salvo
NoYesJan 08, 2026
CVE-2026-22698HIGH8.7
  • RustRust
  • sm2
NoNoJan 10, 2026
CVE-2026-22699HIGH7.5
  • RustRust
  • sm2
NoNoJan 10, 2026
GHSA-g59m-gf8j-gjf5LOW3.7
  • RustRust
  • aws-sdk-neptunedata
NoYesJan 08, 2026
GHSA-585q-cm62-757jLOW2
  • RustRust
  • mnl
NoNoJan 09, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management