GitHub Advisoryadvisory · crates.io
GHSA-83r8-p8v6-6gfm Slock<T> allows sending non-Send types across thread boundaries
HIGH
Official page ↗
- Ecosystem
- crates.io
- Packages
- slock
- Severity
- High
- CVSS vector
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
- Weaknesses
- CWE-362
- Reviewed
- 2021-08-06
Affected packages
• crates.io slock: < 0.2.0 → fixed in 0.2.0
Description
`Slock` unconditionally implements `Send`/`Sync`.
Affected versions of this crate allows sending non-Send types to other threads,
which can lead to data races and memory corruption due to the data race.
Related
Weakness · CWE (1)
- CWE-362 Concurrent Execution using Shared Resource with Improper Synchronization weakness