Vulnerability DatabaseGHSA-w59h-378f-2frm

GHSA-w59h-378f-2frm
Rust vulnerability analysis and mitigation

Overview

The vulnerability (GHSA-w59h-378f-2frm) affects the threadalone Rust crate versions prior to 0.2.1, discovered and disclosed in January 2024. The issue allows non-Send types to be unsoundly sent across threads, potentially leading to undefined behavior. This vulnerability was identified when stderr write operations performed by the threadalone crate fail, such as when stderr is redirected to a full filesystem or when stderr is a closed pipe (GitHub Advisory, RustSec Advisory).

Technical details

The vulnerability stems from a flaw in the Drop implementation where non-Send types can be executed on a different thread than where they were created. The issue manifests when stderr write operations fail, bypassing the intended thread safety checks. The Drop implementation was designed to either drop T if on the correct thread or print and abort if on an incorrect thread, but due to the use of eprintln! macro which can panic, the actual behavior allows dropping T and unwinding when stderr is not writable on an incorrect thread (GitHub Issue).

Impact

The vulnerability can lead to undefined behavior in several scenarios. When used with pthread-based MutexGuard, it results in undefined behavior. Similarly, when used with Rc types, it can cause data races on reference counts, also leading to undefined behavior. These issues can potentially result in memory corruption and segmentation faults in safe Rust code (RustSec Advisory).

Mitigation and workarounds

The vulnerability has been patched in version 0.2.1 of the threadalone crate. Users are advised to upgrade to this version or later to address the issue (GitHub 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-22863CRITICAL9.2
  • RustRust
  • deno
NoYesJan 15, 2026
CVE-2026-23519HIGH8.9
  • RustRust
  • yazi
NoYesJan 15, 2026
RUSTSEC-2026-0003HIGH8.9
  • RustRust
  • cmov
NoYesJan 14, 2026
CVE-2026-22864HIGH8.1
  • RustRust
  • deno
NoYesJan 15, 2026
CVE-2026-22782LOW2.9
  • RustRust
  • rustfs
NoYesJan 16, 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