RUSTSEC-2020-0122

Source
https://rustsec.org/advisories/RUSTSEC-2020-0122
Import Source
https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2020-0122.json
JSON Data
https://api.osv.dev/v1/vulns/RUSTSEC-2020-0122
Aliases
Published
2020-10-28T12:00:00Z
Modified
2023-11-08T04:03:45.086282Z
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
beef::Cow lacks a Sync bound on its Send trait allowing for data races
Details

Affected versions of this crate did not have a T: Sync bound in the Send impl for Cow<'_, T, U>. This allows users to create data races by making Cow contain types that are (Send && !Sync) like Cell<_> or RefCell<_>.

Such data races can lead to memory corruption.

The flaw was corrected in commit d1c7658 by adding trait bounds T: Sync and T::Owned: Send to the Send impl for Cow<'_, T, U>.

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

Affected packages

crates.io / beef

Package

Affected ranges

Type
SEMVER
Events
Introduced
0.0.0-0
Fixed
0.5.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:H/I:H/A:H",
    "informational": null,
    "categories": [
        "memory-corruption",
        "thread-safety"
    ]
}