RUSTSEC-2020-0113

Source
https://rustsec.org/advisories/RUSTSEC-2020-0113
Import Source
https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2020-0113.json
JSON Data
https://api.osv.dev/v1/vulns/RUSTSEC-2020-0113
Aliases
Published
2020-10-31T12:00:00Z
Modified
2023-11-08T04:03:42.214536Z
Severity
  • 5.9 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
AtomicOption should have Send + Sync bound on its type argument.
Details

In the affected versions of this crate, AtomicOption<T> unconditionally implements Sync.

This allows programmers to move non-Sync types across thread boundaries (e.g. Rc<T>, Arc<Cell<T>>), which can lead to data races and undefined behavior. It is also possible to send non-Send types like std::sync::MutexGuard to other threads, which can lead to undefined behavior.

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

Affected packages

crates.io / atomic-option

Package

Name
atomic-option
View open source insights on deps.dev
Purl
pkg:cargo/atomic-option

Affected ranges

Type
SEMVER
Events
Introduced
0.0.0-0

Ecosystem specific

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

Database specific

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