logo

GHSA-pfjq-935c-4895 v9

Package

Manager: cargo
Name: v9
Vulnerable Version: >=0 <0.1.43

Severity

Level: High

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

CVSS v4.0: CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

EPSS: N/A pctlN/A

Details

Data races in v9 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`.

Metadata

Created: 2021-08-25T21:00:37Z
Modified: 2023-06-13T22:27:40Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/08/GHSA-pfjq-935c-4895/GHSA-pfjq-935c-4895.json
CWE IDs: ["CWE-362"]
Alternative ID: N/A
Finding: F124
Auto approve: 1