Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. slock
  4. ›
  5. GHSA-83r8-p8v6-6gfm

GHSA-83r8-p8v6-6gfm: Slock<T> allows sending non-Send types across thread boundaries

August 25, 2021 (updated June 14, 2022)

Slock<T> 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.

References

  • github.com/BrokenLamp/slock-rs
  • github.com/BrokenLamp/slock-rs/issues/2
  • github.com/advisories/GHSA-83r8-p8v6-6gfm
  • rustsec.org/advisories/RUSTSEC-2020-0135.html

Code Behaviors & Features

Detect and mitigate GHSA-83r8-p8v6-6gfm with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.2.0

Fixed versions

  • 0.2.0

Solution

Upgrade to version 0.2.0 or above.

Impact 8.1 HIGH

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')

Source file

cargo/slock/GHSA-83r8-p8v6-6gfm.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:45 +0000.