RUSTSEC-2020-0101

conquer-once's OnceCell lacks Send bound for its Sync trait.

Issued
Package
conquer-once (crates.io)
Type
Vulnerability
Categories
  • memory-corruption
  • thread-safety
Aliases
Details
https://github.com/oliver-giersch/conquer-once/issues/3
Patched
  • >=0.3.2
Keywords
  • concurrency

Description

Affected versions of conquer-once implements Sync for its OnceCell type without restricting it to Sendable types.

This allows non-Send but Sync types such as MutexGuard to be sent across threads leading to undefined behavior and memory corruption in concurrent programs.

The issue was fixed by adding a Send constraint to OnceCell.

More