Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. v9
  4. ›
  5. GHSA-pfjq-935c-4895

GHSA-pfjq-935c-4895: Data races in v9

August 25, 2021 (updated June 13, 2023)

Affected versions of this crate unconditionally implement Sync for SyncRef<T>. This definition allows data races if &T is accessible through &SyncRef.

SyncRef<T> derives Clone and Debug, and the default implementations of those traits access &T by invoking T::clone() & T::fmt(). It is possible to create data races & undefined behavior by concurrently invoking SyncRef<T>::clone() or SyncRef<T>::fmt() from multiple threads with T: !Sync.

References

  • github.com/advisories/GHSA-pfjq-935c-4895
  • github.com/purpleposeidon/v9/issues/1
  • rustsec.org/advisories/RUSTSEC-2020-0127.html

Code Behaviors & Features

Detect and mitigate GHSA-pfjq-935c-4895 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.1.43

Fixed versions

  • 0.1.43

Solution

Upgrade to version 0.1.43 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/v9/GHSA-pfjq-935c-4895.yml

Spotted a mistake? Edit the file on GitLab.

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

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