Files
advisory-db/packages/array-queue.json
T
2025-10-28 06:02:30 +00:00

139 lines
4.2 KiB
JSON

[
{
"id": "RUSTSEC-2025-0054",
"modified": "2025-10-28T06:02:18Z",
"published": "2025-08-14T12:00:00Z",
"aliases": [
"GHSA-xqjr-wfx3-gmxv"
],
"related": [],
"summary": "ArrayQueue::push_front is not panic-safe",
"details": "The safe API `array_queue::ArrayQueue::push_front` can lead to deallocating uninitialized memory if a panic occurs while invoking the `clone` method on the passed argument.\n\nSpecifically, `push_front` receives an argument that is intended to be cloned and pushed, whose type implements the `Clone` trait. Furthermore, the method updates the queue's `start` index before initializing the slot for the newly pushed element. User-defined implementations of `Clone` may include a `clone` method that can panic. If such a panic occurs during initialization, the structure is left with an advanced `start` index pointing to an uninitialized slot. When `ArrayQueue` is later dropped, its destructor treats that slot as initialized and attempts to drop it, resulting in an attempt to free uninitialized memory.\n\nThe bug was fixed in commit `728fe1b`.",
"severity": [],
"affected": [
{
"package": {
"ecosystem": "crates.io",
"name": "array-queue",
"purl": "pkg:cargo/array-queue"
},
"ecosystem_specific": {
"affects": {
"arch": [],
"os": [],
"functions": [
"array_queue::ArrayQueue::push_front"
]
},
"affected_functions": null
},
"database_specific": {
"categories": [
"memory-corruption"
],
"cvss": null,
"informational": null
},
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0.3.0"
},
{
"fixed": "0.4.0"
}
]
}
],
"versions": []
}
],
"references": [
{
"type": "PACKAGE",
"url": "https://crates.io/crates/array-queue"
},
{
"type": "ADVISORY",
"url": "https://rustsec.org/advisories/RUSTSEC-2025-0054.html"
},
{
"type": "REPORT",
"url": "https://github.com/raviqqe/array-queue/issues/3"
}
],
"database_specific": {
"license": "CC0-1.0"
}
},
{
"id": "RUSTSEC-2020-0047",
"modified": "2023-06-13T13:10:24Z",
"published": "2020-09-26T12:00:00Z",
"aliases": [
"CVE-2020-35900",
"GHSA-75cq-g75g-rxff"
],
"related": [],
"summary": "array_queue pop_back() may cause a use-after-free",
"details": "array_queue implements a circular queue that wraps around an array. However, it\nfails to properly index into the array in the `pop_back` function allowing the\nreading of previously dropped or uninitialized memory.",
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N"
}
],
"affected": [
{
"package": {
"ecosystem": "crates.io",
"name": "array-queue",
"purl": "pkg:cargo/array-queue"
},
"ecosystem_specific": {
"affects": {
"arch": [],
"os": [],
"functions": []
},
"affected_functions": null
},
"database_specific": {
"categories": [],
"cvss": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N",
"informational": null
},
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0.3.0"
}
]
}
],
"versions": []
}
],
"references": [
{
"type": "PACKAGE",
"url": "https://crates.io/crates/array-queue"
},
{
"type": "ADVISORY",
"url": "https://rustsec.org/advisories/RUSTSEC-2020-0047.html"
},
{
"type": "REPORT",
"url": "https://github.com/raviqqe/array-queue/issues/2"
}
],
"database_specific": {
"license": "CC0-1.0"
}
}
]