GHSA-3837-87vh-xq3w

Suggest an improvement
Source
https://github.com/advisories/GHSA-3837-87vh-xq3w
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/08/GHSA-3837-87vh-xq3w/GHSA-3837-87vh-xq3w.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-3837-87vh-xq3w
Aliases
Published
2021-08-25T20:57:07Z
Modified
2023-11-08T04:03:45.399019Z
Severity
  • 8.1 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
Data race in v9
Details

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.

Database specific
{
    "nvd_published_at": "2021-08-08T06:15:00Z",
    "cwe_ids": [
        "CWE-77"
    ],
    "severity": "HIGH",
    "github_reviewed": true,
    "github_reviewed_at": "2021-08-18T20:31:57Z"
}
References

Affected packages

crates.io / v9

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.1.43