HistoryEditJSON (OSV)

RUSTSEC-2025-0045

ConstStaticCell could have been used to pass non-Send values to another thread

Reported
Issued
Package
static_cell (crates.io)
Type
INFO Unsound
Categories
Keywords
#send #thread-safety
References
Patched
  • >=2.1.1
Unaffected
  • <=2.0.0
Affected Functions
Version
static_cell::ConstStaticCell::new
  • =2.1.0

Description

ConstStaticCell<T> could have been used to pass non-Send values to another thread, because T was not required to be Send while ConstStaticCell is Send.

This was corrected by introducing a T: Send bound.

Advisory available under CC0-1.0 license.