RUSTSEC-2020-0102

Source
https://rustsec.org/advisories/RUSTSEC-2020-0102
Import Source
https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2020-0102.json
JSON Data
https://api.osv.dev/v1/vulns/RUSTSEC-2020-0102
Aliases
Published
2020-11-10T12:00:00Z
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
LateStatic has incorrect Sync bound
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
{
    "license": "CC0-1.0"
}
References

Affected packages

crates.io / late-static

Package

Affected ranges

Type
SEMVER
Events
Introduced
0.0.0-0
Fixed
0.4.0

Ecosystem specific

{
    "affected_functions": null,
    "affects": {
        "os": [],
        "functions": [],
        "arch": []
    }
}

Database specific

{
    "cvss": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H",
    "informational": null,
    "categories": [
        "memory-corruption",
        "thread-safety"
    ]
}