Vulnerability DatabaseRUSTSEC-2024-0005

RUSTSEC-2024-0005
Rust vulnerability analysis and mitigation

Overview

The RUSTSEC-2024-0005 vulnerability affects the threadalone crate for Rust programming language. The vulnerability allows unsound sending of non-Send types across threads, which can lead to data races and potential segmentation faults in safe code. The issue was discovered and reported on January 9, 2024 (GitHub Issue).

Technical details

The vulnerability stems from an improper implementation of the Drop trait that fails to properly handle thread safety guarantees. The Drop implementation attempts to prevent dropping objects on incorrect threads, but due to the use of eprintln! macro which can panic when stderr is not writable, it creates a condition where non-Send types can be unsafely dropped on incorrect threads. This occurs because if stderr is not writable, the abort mechanism fails and allows the drop to proceed, potentially causing data races (GitHub Issue).

Impact

When exploited, this vulnerability can lead to data races and segmentation faults in programs using the threadalone crate. The issue is particularly severe as it can cause memory corruption in safe Rust code, which violates Rust's core safety guarantees (GitHub Issue).

Mitigation and workarounds

The issue requires modification of the Drop implementation to use a non-panicking method for handling incorrect thread detection and abortion. The correct implementation should ensure that the abort mechanism works reliably regardless of stderr writeability (GitHub Issue).

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