Files
advisory-db/packages/slice-deque.json
T
2026-08-18 06:11:25 +00:00

276 lines
8.4 KiB
JSON

[
{
"id": "RUSTSEC-2020-0158",
"modified": "2021-11-18T14:04:01Z",
"published": "2020-02-10T12:00:00Z",
"aliases": [],
"related": [],
"summary": "slice-deque is unmaintained",
"details": "The author of the `slice-deque` crate is unresponsive and is not receiving security patches.\n\nMaintained alternatives:\n\n- [`slice-ring-buffer`](https://crates.io/crates/slice-ring-buffer)",
"severity": [],
"affected": [
{
"package": {
"ecosystem": "crates.io",
"name": "slice-deque",
"purl": "pkg:cargo/slice-deque"
},
"ecosystem_specific": {
"affects": {
"arch": [],
"os": [],
"functions": []
},
"affected_functions": null
},
"database_specific": {
"categories": [],
"cvss": null,
"informational": "unmaintained"
},
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0.0.0-0"
}
]
}
],
"versions": []
}
],
"references": [
{
"type": "PACKAGE",
"url": "https://crates.io/crates/slice-deque"
},
{
"type": "ADVISORY",
"url": "https://rustsec.org/advisories/RUSTSEC-2020-0158.html"
},
{
"type": "REPORT",
"url": "https://github.com/gnzlbg/slice_deque/issues/94"
}
],
"database_specific": {
"license": "CC0-1.0"
}
},
{
"id": "RUSTSEC-2021-0047",
"modified": "2023-06-13T13:10:24Z",
"published": "2021-02-19T12:00:00Z",
"aliases": [
"CVE-2021-29938",
"GHSA-p9gf-gmfv-398m"
],
"related": [],
"summary": "SliceDeque::drain_filter can double drop an element if the predicate panics",
"details": "Affected versions of the crate incremented the current index of the drain filter\niterator *before* calling the predicate function `self.pred`.\n\nIf the predicate function panics, it is possible for the last element in the\niterator to be dropped twice.",
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
}
],
"affected": [
{
"package": {
"ecosystem": "crates.io",
"name": "slice-deque",
"purl": "pkg:cargo/slice-deque"
},
"ecosystem_specific": {
"affects": {
"arch": [],
"os": [],
"functions": []
},
"affected_functions": null
},
"database_specific": {
"categories": [
"memory-corruption"
],
"cvss": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
"informational": null
},
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0.0.0-0"
}
]
}
],
"versions": []
}
],
"references": [
{
"type": "PACKAGE",
"url": "https://crates.io/crates/slice-deque"
},
{
"type": "ADVISORY",
"url": "https://rustsec.org/advisories/RUSTSEC-2021-0047.html"
},
{
"type": "REPORT",
"url": "https://github.com/gnzlbg/slice_deque/issues/90"
}
],
"database_specific": {
"license": "CC0-1.0"
}
},
{
"id": "RUSTSEC-2019-0002",
"modified": "2023-06-13T13:10:24Z",
"published": "2019-05-07T12:00:00Z",
"aliases": [
"CVE-2019-15543",
"GHSA-c3m3-c39q-pv23"
],
"related": [
"RUSTSEC-2018-0008"
],
"summary": "Bug in SliceDeque::move_head_unchecked corrupts its memory",
"details": "Affected versions of this crate entered a corrupted state if\n`mem::size_of::<T>() % allocation_granularity() != 0` and a specific allocation\npattern was used: sufficiently shifting the deque elements over the mirrored\npage boundary.\n\nThis allows an attacker that controls controls both element insertion and\nremoval to corrupt the deque, such that reading elements from it would read\nbytes corresponding to other elements in the deque. (e.g. a read of T could read\nsome bytes from one value and some bytes from an adjacent one, resulting in a T\nwhose value representation is not meaningful). This is undefined behavior.\n \nThe flaw was corrected by using a pair of pointers to track the head and tail of\nthe deque instead of a pair of indices. This pair of pointers are represented\nusing a Rust slice.",
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"package": {
"ecosystem": "crates.io",
"name": "slice-deque",
"purl": "pkg:cargo/slice-deque"
},
"ecosystem_specific": {
"affects": {
"arch": [],
"os": [],
"functions": []
},
"affected_functions": null
},
"database_specific": {
"categories": [],
"cvss": "CVSS:3.0/AV:N/AC:L/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.2.0"
}
]
}
],
"versions": []
}
],
"references": [
{
"type": "PACKAGE",
"url": "https://crates.io/crates/slice-deque"
},
{
"type": "ADVISORY",
"url": "https://rustsec.org/advisories/RUSTSEC-2019-0002.html"
},
{
"type": "REPORT",
"url": "https://github.com/gnzlbg/slice_deque/issues/57"
}
],
"database_specific": {
"license": "CC0-1.0"
}
},
{
"id": "RUSTSEC-2018-0008",
"modified": "2023-06-13T13:10:24Z",
"published": "2018-12-05T12:00:00Z",
"aliases": [
"CVE-2018-20995",
"GHSA-hr3c-6mmp-6m39"
],
"related": [],
"summary": "Bug in SliceDeque::move_head_unchecked allows read of corrupted memory",
"details": "Affected versions of this crate did not properly update the\nhead and tail of the deque when inserting and removing elements from the front\nif, before insertion or removal, the tail of the deque was in the mirrored\nmemory region, and if, after insertion or removal, the head of the deque is\nexactly at the beginning of the mirrored memory region.\n\nAn attacker that controls both element insertion and removal into the deque\ncould put it in a corrupted state. Once the deque enters such an state, its head\nand tail are corrupted, but in bounds of the allocated memory. This can result\nin partial reads and writes, reads of uninitialized memory, reads of memory\ncontaining previously dropped objects, etc. An attacker could exploit this to\nalter program execution.\n\nThe flaw was corrected by properly updating the head and tail of the deque in\nthis case.",
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"package": {
"ecosystem": "crates.io",
"name": "slice-deque",
"purl": "pkg:cargo/slice-deque"
},
"ecosystem_specific": {
"affects": {
"arch": [],
"os": [],
"functions": []
},
"affected_functions": null
},
"database_specific": {
"categories": [],
"cvss": "CVSS:3.0/AV:N/AC:L/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.1.16"
}
]
}
],
"versions": []
}
],
"references": [
{
"type": "PACKAGE",
"url": "https://crates.io/crates/slice-deque"
},
{
"type": "ADVISORY",
"url": "https://rustsec.org/advisories/RUSTSEC-2018-0008.html"
},
{
"type": "REPORT",
"url": "https://github.com/gnzlbg/slice_deque/issues/57"
}
],
"database_specific": {
"license": "CC0-1.0"
}
}
]