RUSTSEC-2021-0036

Source
https://rustsec.org/advisories/RUSTSEC-2021-0036
Import Source
https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2021-0036.json
JSON Data
https://api.osv.dev/v1/vulns/RUSTSEC-2021-0036
Aliases
Published
2021-03-03T12:00:00Z
Modified
2023-11-08T04:05:28.032734Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
Intern<T>: Data race allowed on T
Details

Affected versions of this crate unconditionally implements Sync for Intern<T>. This allows users to create data race on T: !Sync, which may lead to undefined behavior (for example, memory corruption).

The flaw was corrected in commit 2928a87 by adding the trait bound T: Sync in the Sync impl of Intern<T>.

Database specific
{
    "license": "CC0-1.0"
}
References

Affected packages

crates.io / internment

Package

Affected ranges

Type
SEMVER
Events
Introduced
0.0.0-0
Fixed
0.4.2

Ecosystem specific

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

Database specific

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