GHSA-wr55-mf5c-hhwm

Suggest an improvement
Source
https://github.com/advisories/GHSA-wr55-mf5c-hhwm
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/08/GHSA-wr55-mf5c-hhwm/GHSA-wr55-mf5c-hhwm.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-wr55-mf5c-hhwm
Aliases
Published
2021-08-25T20:50:44Z
Modified
2023-11-08T04:03:41.659377Z
Severity
  • 7.0 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
Data races in late-static
Details

Affected versions of this crate implemented Sync for LateStatic with T: Send, so that it is possible to create a data race to a type T: Send + !Sync (e.g. Cell<T>).

This can result in a memory corruption or other kinds of undefined behavior.

The flaw was corrected in commit 11f396c by replacing the T: Send bound to T: Sync bound in the Sync impl for LateStatic<T>.

Database specific
{
    "nvd_published_at": null,
    "cwe_ids": [
        "CWE-662"
    ],
    "severity": "HIGH",
    "github_reviewed": true,
    "github_reviewed_at": "2021-08-19T18:52:13Z"
}
References

Affected packages

crates.io / late-static

Package

Affected ranges

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