mirror of
https://github.com/rustsec/advisory-db.git
synced 2026-11-30 10:34:31 -06:00
76 lines
2.1 KiB
JSON
76 lines
2.1 KiB
JSON
[
|
|
{
|
|
"id": "RUSTSEC-2020-0122",
|
|
"modified": "2023-06-13T13:10:24Z",
|
|
"published": "2020-10-28T12:00:00Z",
|
|
"aliases": [
|
|
"CVE-2020-36442",
|
|
"GHSA-m7w4-8wp8-m2xq"
|
|
],
|
|
"related": [],
|
|
"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<_>`.\n\nSuch data races can lead to memory corruption.\n\nThe flaw was corrected in commit d1c7658 by adding trait bounds `T: Sync` and `T::Owned: Send` to the `Send` impl for `Cow<'_, T, U>`.",
|
|
"severity": [
|
|
{
|
|
"type": "CVSS_V3",
|
|
"score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"
|
|
}
|
|
],
|
|
"affected": [
|
|
{
|
|
"package": {
|
|
"ecosystem": "crates.io",
|
|
"name": "beef",
|
|
"purl": "pkg:cargo/beef"
|
|
},
|
|
"ecosystem_specific": {
|
|
"affects": {
|
|
"arch": [],
|
|
"os": [],
|
|
"functions": []
|
|
},
|
|
"affected_functions": null
|
|
},
|
|
"database_specific": {
|
|
"categories": [
|
|
"memory-corruption",
|
|
"thread-safety"
|
|
],
|
|
"cvss": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H",
|
|
"informational": null
|
|
},
|
|
"ranges": [
|
|
{
|
|
"type": "SEMVER",
|
|
"events": [
|
|
{
|
|
"introduced": "0.0.0-0"
|
|
},
|
|
{
|
|
"fixed": "0.5.0"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"versions": []
|
|
}
|
|
],
|
|
"references": [
|
|
{
|
|
"type": "PACKAGE",
|
|
"url": "https://crates.io/crates/beef"
|
|
},
|
|
{
|
|
"type": "ADVISORY",
|
|
"url": "https://rustsec.org/advisories/RUSTSEC-2020-0122.html"
|
|
},
|
|
{
|
|
"type": "REPORT",
|
|
"url": "https://github.com/maciejhirsz/beef/issues/37"
|
|
}
|
|
],
|
|
"database_specific": {
|
|
"license": "CC0-1.0"
|
|
}
|
|
}
|
|
] |